bug-texinfo
[Top][All Lists]
Advanced

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

Re: Different base URL for @xref?


From: Patrice Dumas
Subject: Re: Different base URL for @xref?
Date: Tue, 12 May 2009 09:25:17 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, May 12, 2009 at 02:25:34AM -0400, Alfred M. Szmidt wrote:
> Is it possible to supply a different base URL when using @xref?
> 
> @xref{argp, , Parsing Program Options with Argp, libc, The GNU C
> Library Reference Manual}, for details.
> 
> Currently, I'm doing ugly things like:
> 
> @ifhtml
> See @url{http://www.gnu.org/s/libc/manual/html_node/Argp.html,Parsing Program 
> Options with Argp}, for details. 
> @end ifhtml
> @ifnothtml
> @xref{argp, , Parsing Program Options with Argp, libc, The GNU C Library 
> Reference Manual}, for details.
> @end ifnothtml
> 
> And would like to make it a bit nicer.

Maybe you could define a @macro, like (untested):

@macro @urlref{url, ref}
@ifhtml
See @url{\url\}
@end ifhtml
@ifnothtml
@xref{\ref\}
@end ifnothtml
@end macro

--
Pat




reply via email to

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