bug-texinfo
[Top][All Lists]
Advanced

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

Re: backslashes, macros, indexes, texinfo


From: Gavin Smith
Subject: Re: backslashes, macros, indexes, texinfo
Date: Mon, 10 Aug 2015 19:47:03 +0100

On 10 August 2015 at 18:07, David Kastrup <address@hidden> wrote:
>> Here's a change that I think's nicer, which does the expansion of the
>> active backslash earlier as an extra stage of expansion.
>
> Well, this is an interesting one...
>
> \entry{Tiny examples}{90}{\code {Tiny examples}}
> ] [91]
> /usr/local/tmp/lilypond/Documentation/contributor/issues.itexi:275: Undefined 
> c
> ontrol sequence.
> <argument> @empty address@hidden @voidb
>                                        @x @penalty @tiepenalty @ 
> address@hidden
>

> l.275 @qq{Simple tasks -- Documentation}
>                                          on:
> ?
> /usr/local/tmp/lilypond/Documentation/contributor/issues.itexi:275: Emergency 
> s
> top.

> With the definition
>
> @macro qq{TEXT}
> @address@hidden
> @end macro

I didn't reproduce this at first. I had downloaded the LilyPond
sources a couple of days ago, although couldn't build the
documentation because of numerous missing dependencies. I thought I'd
have a look at the source and found that the macro use was in an
@example environment. Trying this, I got the same error.

Tracing the macros gives this:

@arg ->Simple address@hidden

 ->@leavevmode @penalty @tiepenalty @

The space itself is being expanded. Since space was \let equal to \tie
with \sepspaces when \example was opened, the space is expanding to
the definition of \tie.

Adding an extra line

\catcode`\ =\other

eliminates this expansion.

Attachment: macroargbs-no-active-space.diff
Description: Text document

Attachment: quotedblleft.texi
Description: TeXInfo document


reply via email to

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