bug-texinfo
[Top][All Lists]
Advanced

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

Re: ampersand issue with texi2dvi


From: Gavin Smith
Subject: Re: ampersand issue with texi2dvi
Date: Wed, 5 Sep 2018 20:30:39 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Wed, Sep 05, 2018 at 06:27:53PM +0200, Heiko Stamer wrote:
> Dear texinfo developers,
> 
> I run into an issue with texi2dvi (see attached example file) that
> results in the following error messages:
> 
> $ texi2dvi libTMCG_bug.texi
> This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017)
> (preloaded format=etex)
>  restricted \write18 enabled.
> entering extended mode
> (./libTMCG_bug.texi (/usr/share/texmf-dist/tex/texinfo/texinfo.tex
> Loading texinfo [version 2016-09-18.18]: pdf, fonts, markup, glyphs,
> page headings, tables, conditionals, indexing, sectioning, toc,
> environments,
> defuns, macros, cross references, insertions,
> (/usr/share/texmf-dist/tex/generic/epsf/epsf.tex
> This is `epsf.tex' v2.7.4 <14 February 2011>
> ) localization, formatting, and turning on texinfo input format.) [1] [2]
> [-1] Chapter 1
> Writing index file libTMCG_bug.cp
> Writing index file libTMCG_bug.tp
> Writing index file libTMCG_bug.fn
> ./libTMCG_bug.texi:86: Argument of & has an extra }.
> <inserted text>
>                 @par
> <to be read again>
>                    }
> @tclose ...n @rawbackslash @plainfrenchspacing #1}
>                                                   @null
> @codex #1->@tclose {#1}
>                        @endgroup
> <argument> ..._in, @code {const std::vector<int>&}
>                                                    fd_in_in, @code
> {const st...
> 
> @defunargs ...arkupstyle address@hidden {##1}}}#1
>                                                   @sl @hyphenchar @font =45
> ...
> l.86 ...st bool} aio_is_encrypted_in @code{=true})
> 
> How can I avoid this error without adding an extra space at the end of
> the @code-block?

It is a bug. I simplified the input to

@defop {Constructor} a b (@code{const std::vector<int>&})
@end defop

to get an error. It is due to some code in texinfo.tex to change
the font used for parentheses if an & is seen in the line - something to 
do with documentation of functions in Lisp. (See \ifampseen conditional 
in texinfo.tex.) I haven't worked out what the point of this was yet. If 
there is no point, it would be easy to fix by ripping the code out.



reply via email to

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