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