bug-texinfo
[Top][All Lists]
Advanced

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

Re: Double hyphens in variable names.


From: Andreas Schwab
Subject: Re: Double hyphens in variable names.
Date: Thu, 02 Oct 2003 18:54:40 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux)

Lute Kamstra <address@hidden> writes:

> Luc Teirlinck <address@hidden> writes:
>
>>    Still, even if it had worked, wouldn't it be best that the @defvr
>>    macro treats multiple hyphens like @code does?
>>
>> Maybe, but what about 
>>
>> @defvar address@hidden|--|}index-alist
>>
>> I had my suspicions about using space, even though it would be OK
>> according to the Texinfo manual, because LaTeX does _not_ allow space.
>
> Identical results:
>
>   ! Undefined control sequence.
>   \tabeightspaces ->\catcode `\^^I=\active \def ^^I
>                                                    {\ \ \ \ \ \ \ \ }
>   \setupverb ...catcode `\`=\active \tabeightspaces 
>                                                     \obeylines 
> \uncatcodespeci...
>
>   \verb ->\begingroup \setupverb 
>                                  \doverb 
>   <argument> imenu\verb 
>                         {|--|}index-alist
>   \code #1->#1
>
>   \dosubind ...e \toks 0}\xdef \indexsorttmp {\temp 
                            ^^^^

This is the reason.  It tries to fully expand macros, but \verb is
special (not protected, in LaTeX terms).

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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