On 30 April 2016 at 22:57, Guo Yixuan <culu....@gmail.com> wrote: > The mwe.texi file by Norbert: > > $ cat mwe.texi > \input texinfo @c -*-texinfo-*- > @setfilename min2.info > > What ever > @anchor{@value{cmd1} doc}@anchor{0} > Here we go > @bye >
> ./mwe.aux:1: TeX capacity exceeded, sorry [input stack size=18000]. > @value ->@begingroup @makevalueexpandable > @valuexxx > @makevalueexpandable ->@let @value > = @expandablevalue @catcode `@-=@other > @c... > > @value ->@begingroup @makevalueexpandable > @valuexxx > @makevalueexpandable ->@let @value > = @expandablevalue @catcode `@-=@other > @c... > > @value ->@begingroup @makevalueexpandable > @valuexxx > @makevalueexpandable ->@let @value > = @expandablevalue @catcode `@-=@other > @c... > ... > l.1 ..., used in @value, is not set.} doc-title}{} Appears to be a bug with --tidy. The filename appears to be irrelevant. I haven't researched why --tidy makes a difference. I plan to stop this error by making @value non-expandable when writing to auxiliary files. This would have the effect that the value used would be the value at the time when the auxiliary file was read in, instead of when it was written to, that's when @value worked at all. I think this change would be okay, because this is already the case for @macro and I doubt that many documents would rely on changing a @value in the middle of the document. $ texi2pdf --command="@set cmd1 HELLO" --tidy mwe.texi This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) file:line:error style messages enabled. entering extended mode (/home/g/src/texinfo/PROJ_SVN/util/mwe.texi (/home/g/src/texinfo/PROJ_SVN/util/texinfo.tex Loading texinfo [version 2016-02-20.23]: pdf, fonts, markup, glyphs, page headings, tables, conditionals, indexing, sectioning, toc, environments, defuns, macros, cross references, insertions, (/usr/share/texmf/tex/generic/epsf/epsf.tex This is `epsf.tex' v2.7.4 <14 February 2011> ) localization, formatting, and turning on texinfo input format.) [1{/usr/share /texmf-var/fonts/map/pdftex/updmap/pdftex.map}] )</usr/share/texmf/fonts/type1/ bluesky/cm/cmr10.pfb> Output written on mwe.pdf (1 page, 8835 bytes). Transcript written on mwe.log. This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) file:line:error style messages enabled. entering extended mode (/home/g/src/texinfo/PROJ_SVN/util/mwe.texi (/home/g/src/texinfo/PROJ_SVN/util/texinfo.tex Loading texinfo [version 2016-02-20.23]: pdf, fonts, markup, glyphs, page headings, tables, conditionals, indexing, sectioning, toc, environments, defuns, macros, cross references, insertions, (/usr/share/texmf/tex/generic/epsf/epsf.tex This is `epsf.tex' v2.7.4 <14 February 2011> ) localization, formatting, and turning on texinfo input format.) (./mwe.aux ./mwe.aux:1: TeX capacity exceeded, sorry [input stack size=1500]. @value ->@begingroup @makevalueexpandable @valuexxx @makevalueexpandable ->@let @value = @expandablevalue @catcode `@-=@other @c... @value ->@begingroup @makevalueexpandable @valuexxx @makevalueexpandable ->@let @value = @expandablevalue @catcode `@-=@other @c... @value ->@begingroup @makevalueexpandable @valuexxx @makevalueexpandable ->@let @value = @expandablevalue @catcode `@-=@other @c... ... l.1 ..., used in @value, is not set.} doc-title}{} No pages of output. Transcript written on mwe.log. /usr/local/bin/texi2dvi: pdfetex exited with bad status, quitting. $ rm mwe.t2d/ mwe.aux -r rm: cannot remove 'mwe.aux': No such file or directory $ texi2pdf --command="@set cmd1 HELLO" mwe.texi tar: mwe.aux: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) file:line:error style messages enabled. entering extended mode (/home/g/src/texinfo/PROJ_SVN/util/mwe.t2d/pdf/xtr/mwe.texi (/home/g/src/texinfo/PROJ_SVN/util/texinfo.tex Loading texinfo [version 2016-02-20.23]: pdf, fonts, markup, glyphs, page headings, tables, conditionals, indexing, sectioning, toc, environments, defuns, macros, cross references, insertions, (/usr/share/texmf/tex/generic/epsf/epsf.tex This is `epsf.tex' v2.7.4 <14 February 2011> ) localization, formatting, and turning on texinfo input format.) [1{/usr/share /texmf-var/fonts/map/pdftex/updmap/pdftex.map}] )</usr/share/texmf/fonts/type1/ bluesky/cm/cmr10.pfb> Output written on mwe.pdf (1 page, 8685 bytes). Transcript written on mwe.log. This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) file:line:error style messages enabled. entering extended mode (/home/g/src/texinfo/PROJ_SVN/util/mwe.t2d/pdf/xtr/mwe.texi (/home/g/src/texinfo/PROJ_SVN/util/texinfo.tex Loading texinfo [version 2016-02-20.23]: pdf, fonts, markup, glyphs, page headings, tables, conditionals, indexing, sectioning, toc, environments, defuns, macros, cross references, insertions, (/usr/share/texmf/tex/generic/epsf/epsf.tex This is `epsf.tex' v2.7.4 <14 February 2011> ) localization, formatting, and turning on texinfo input format.) (/home/g/src/texinfo/PROJ_SVN/util/mwe.aux) [1{/usr/share/texmf-var/fonts/map/p dftex/updmap/pdftex.map}] )</usr/share/texmf/fonts/type1/bluesky/cm/cmr10.pfb> Output written on mwe.pdf (1 page, 8688 bytes). Transcript written on mwe.log. $