bug-texinfo
[Top][All Lists]
Advanced

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

use of @macro inside @example block causes unwanted line break


From: Jim Meyering
Subject: use of @macro inside @example block causes unwanted line break
Date: Tue, 07 Feb 2006 17:40:50 +0100

Hello,

Using a @macro-defined symbol inside an @example block causes an
unwanted line break.  Is there some way to avoid that?

The documentation (Defining Macros) seems to be at odds with this behavior:

    The newlines after the address@hidden' line and before the address@hidden 
macro' line
    are ignored, that is, not included in the macro body.  All other
    whitespace is treated according to the usual Texinfo rules.

Here's an example:

cat > k.texi <<\EOF
\input texinfo

@macro fn{name}
@code{\name\()}
@end macro

@example
foo @fn{stat} bar
@end example
@bye
EOF

Run this to see how it's rendered:

texi2pdf k.texi && xpdf k.pdf

The dvi and pdf output looks like this:

foo stat()
 bar

I expected this:

foo stat() bar

And, if I replace address@hidden' with the macro expansion, address@hidden()}'
I do get what I want.

texi2pdf and texi2dvi produced identical output.
The ones I'm using come from (GNU Texinfo 4.8) 1.34.

Thanks,
Jim




reply via email to

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