For Programmers: Free Programming Magazines  


Home > Archive > Tex > August 2005 > conflict between url.sty and html.sty (with pdfetex)?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author conflict between url.sty and html.sty (with pdfetex)?
blmblm@myrealbox.com

2005-08-16, 4:02 am

I've noticed that some documents that compile without problems
under the version of LaTeX I've been using don't compile under
a newer version. Before I start trying to plow through .sty
files, perhaps someone here will recognize this as a familiar
problem and suggest a fix or workaround ....

Here's a short example of such a document:

\documentclass{article}
\usepackage{url}
\usepackage{html}
\urldef{\BaseURL}\url{http://something.edu/}
\begin{document}
\noindent
Here is a formatted URL: \url{http://something.edu/~username}.
\end{document}

Under the "old" version of LaTeX, this compiles without problems.
Under the "new" version, I get the following error message:

! Undefined control sequence.
\pdfmark@ ...e \space pdfmark}\else \Hy@colorlink
{\@ifundefined {@\pdf@link...
l.4 \urldef{\BaseURL}\url{http://something.edu/}

If I comment out \usepackage{html.sty}, it again compiles okay under
both versions. If I comment out the \urldef line, again no problems.

"latex --version" for the "old" version reports

TeX (Web2C 7.3.1) 3.14159
kpathsea version 3.3.1

"latex --version" for the "new" version reports

pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4)
kpathsea version 3.5.4

I notice that url.sty has changed between versions, and that while
html.sty doesn't seem to have done so, hyperref.sty (which is pulled
in by html.sty) has also changed.

Anyone recognize this one?

--
| B. L. Massingill
| ObDisclaimer: I don't speak for my employers; they return the favor.
Ulrike Fischer

2005-08-16, 5:11 pm

blmblm@myrealbox.com schrieb:

> I've noticed that some documents that compile without problems
> under the version of LaTeX I've been using don't compile under
> a newer version. Before I start trying to plow through .sty
> files, perhaps someone here will recognize this as a familiar
> problem and suggest a fix or workaround ....
>



html.sty uses a wrong "if pdf" test that no longer works now that also
for dvi-output ("LaTeX") the pdfeTeX-engine is used. The author should
use ifpdf.sty instead.

--
Ulrike Fischer
e-mail: zusätzlich meinen Vornamen vor dem @ einfügen.
e-mail: add my first name between the news and the @.
blmblm@myrealbox.com

2005-08-16, 5:11 pm

In article < Xns96B490D08AA0nililandnililandabcd@nili
land.de>,
Ulrike Fischer <news@nililand.de> wrote:
>blmblm@myrealbox.com schrieb:
>
>
>
>html.sty uses a wrong "if pdf" test that no longer works now that also
>for dvi-output ("LaTeX") the pdfeTeX-engine is used. The author should
>use ifpdf.sty instead.


I'm not following you. Do you mean that the author of the documents
that don't compile any more (me) should replace html.sty with ifpdf.sty,
or that the author of html.sty should make this change (in html.sty)?

--
| B. L. Massingill
| ObDisclaimer: I don't speak for my employers; they return the favor.
Morten Høgholm

2005-08-16, 5:11 pm

On Tue, 16 Aug 2005 17:35:25 +0200, <blmblm@myrealbox.com> wrote:

> In article < Xns96B490D08AA0nililandnililandabcd@nili
land.de>,
> Ulrike Fischer <news@nililand.de> wrote:
>
> I'm not following you. Do you mean that the author of the documents
> that don't compile any more (me) should replace html.sty with ifpdf.sty,
> or that the author of html.sty should make this change (in html.sty)?


A change in html.sty.
--
Morten
blmblm@myrealbox.com

2005-08-16, 5:11 pm

In article <op.svlxmzt7jli536@mortens-ibook.local>,
Morten Høgholm <morten.hoegholm@gmail.com> wrote:
>On Tue, 16 Aug 2005 17:35:25 +0200, <blmblm@myrealbox.com> wrote:
>
>
>A change in html.sty.


And since html.sty appears to be part of latex2html, which hasn't been
updated (as far as I know) in a while, it's not clear the author ....

Well, I waded into html.sty and made the changes that seemed indicated
by Ulrike's comments (replacing all the tests for pdf-something to
use \ifpdf), and with the revised html.sty, I can generate PostScript
and (with latex2html) HTML. No idea what happens if I try to generate
PDF directly, but at least this solves my immediate problem. (Given
that most of what's in html.sty is beyond my knowledge of TeX, the
fact that the revision seems to work is somewhat surprising.)

So -- thanks! (Anyone know if (1) there's an official patch somewhere,
or (2) if not, if anyone would be interested in my revision?)

--
| B. L. Massingill
| ObDisclaimer: I don't speak for my employers; they return the favor.
--
-- blm
Robin Fairbairns

2005-08-28, 7:01 pm

Ulrike Fischer <news@nililand.de> writes:
>html.sty uses a wrong "if pdf" test that no longer works now that also
>for dvi-output ("LaTeX") the pdfeTeX-engine is used. The author should
>use ifpdf.sty instead.


the latex2html maintainer knows about this problem (though it's not
clear to me that he quite understands its severity). it's been
discussed on the l2h list.

more complaints on the list (i've already contributed ;-) wouldn't
come amiss, i reckon...
--
Robin (http://www.tex.ac.uk/faq) Fairbairns, Cambridge
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com