bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS texi2dvi and --pdf and @include


From: Stepan Kasal
Subject: Re: CVS texi2dvi and --pdf and @include
Date: Tue, 16 Mar 2004 17:50:26 +0100
User-agent: Mutt/1.4.1i

Hello,

On Tue, Mar 16, 2004 at 01:38:46PM +0100, Akim Demaille wrote:
> @macro gotw{num}
> @uref{http://www.gotw.ca/gotw/\num\.htm, @acronym{GotW\num\}}
> @end macro
...
> @address@hidden

I'd just say that this is not good texinfo source, as
        http://www.gotw.ca/gotw/@var{n}.htm
is not valid URL.

Well, you are lucky and the DVI output contains the meta-URL you
ask for.  But don't rely on it that much...

But when you create PDF, a hyperlink with that URL is to be created,
which causes problems.

The concrete problem is that pdftex expands the URL, and @var is not
fully expandable.  The problem could perhaps be solved by inserting
\indexnofonts into \pdfurl definition, but I see no point in doing it,
as the resulting pdf file would contain broken links.

(And, of course, it has no sognificance that you have spotted special
condition, under which it seems to work.)

I suggest something like this:

@macro gotw{num}
@uref{http://www.gotw.ca/gotw/\num\.htm, @address@hidden
@end macro

@cindex GotW
@gotw{n}

Have a nice day,
        Stepan Kasal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]