bug-texinfo
[Top][All Lists]
Advanced

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

Re: Using \\ in a texinfo macro argument generates \ in html, but \\ in


From: Reinhold Kainhofer
Subject: Re: Using \\ in a texinfo macro argument generates \ in html, but \\ in pdf
Date: Mon, 31 Mar 2008 22:00:06 +0200
User-agent: KMail/1.9.6

Am Montag, 31. März 2008 schrieb Karl Berry:
> Reinhold Kainhofer wrote:
>  >   Nope, does not work. The backslashes are still doubled by texi2pdf
>  >   (i.e. not understood as one backslash).
>
> How about
> @set backslash \
> and then using @value{backslash} in the actual argument?
>
> Or
>
> @macro backslash
> \\
> @end macro
> and then @backslash{}?
>
> Do either of those work?

Yes, thanks, both of them work fine (the second one is easier to read, 
though).

Graham (that's one of our Lilypond documentation team), which one is better 
for lilypond?

> Or we could define a new command @backslash{} similar to @comma{}.

@backslash seems already defined and gives a TeX error when used (somehow it 
seems to be only allowed in math mode or so):

./escaping_slashes_in_macros_answer.texi:19: Missing $ inserted.
<inserted text>
                $
<to be read again>
                   @delimiter
@backslash ->@delimiter
                        "26E30F


Anyway, the @bs macro or the @set{bs} approach, both solve our problem.

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/




reply via email to

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