On Tue, Nov 03, 2026 at 01:08:23PM +0100, Arash Esbati wrote:
> Hi all,
> 
> I tried to run pdftex on auctex.texi and it fails; it used to work.  To
> reproduce, try:
> 
> --8<---------------cut here---------------start------------->8---
> $ git clone --depth 1 https://git.savannah.gnu.org/git/auctex.git
> $ cd auctex
> $ make doc/version.texi && cd doc && \
>   pdftex auctex.texi && pdftex auctex.texi
> --8<---------------cut here---------------end--------------->8---
> 
> This is the error after the second pdftex run:

It took me two attempts and several minutes to clone the git repo.  First
attempt:

$ git clone --depth 1 https://git.savannah.gnu.org/git/auctex.git
Cloning into 'auctex'...
fatal: unable to access 'https://git.savannah.gnu.org/git/auctex.git/': The 
requested URL returned error: 500

I tried running a second time and it completed, but again taking several
minutes.

> It seems TeX is not happy with this line in auctex.texi (line breaks
> added for legibility):
> 
> --8<---------------cut here---------------start------------->8---
> @xrshad{One Command for L@kern -.36em@raise .3ex@hbox {@sc {a}}
> @kern -.15em@TeX {}, helpers, viewers, and printing-title}
> {One Command for @LaTeX {}, helpers, viewers, and printing}
> --8<---------------cut here---------------end--------------->8---

It's very unlikely that that was a line in auctex.texi.

The line where the problem started is almost certainly quickstart.texi:197:

    @subsection One Command for @LaTeX{}, helpers, viewers, and printing

As you may know, on the first run of pdftex TeX writes out auctex.aux and
this is read in the second time that auctex.texi is read in.  The line
beginning @xrshad{... is output from this @subsection line.

This is due to changes for sectioning commands such as this, which does
not have an associated @node line.  In context:

    @node Processing Facilities
    @section Creating and viewing output, debugging
    
    @subsection One Command for @LaTeX{}, helpers, viewers, and printing
    
    If you have typed some text and want to run @LaTeX{} (or @TeX{}, or
    other programs---see below) on it, type @kbd{C-c C-c}.  If applicable,

I used "ln -s ../../../doc/texinfo.tex ." inside the "doc" subdirectory
to get the development version of texinfo.tex (version 2026-10-30.17),
then ran pdftex twice following the instructions above.  This reproduced
the error.

> This is the definition in doc/macros.texi:
> 
>   \gdef\LaTeX#{%
>       L\kern-.36em\raise.3ex\hbox{\sc{a}}\kern-.15em\TeX}
> 
> which hasn't changed for a long time.  Any hints?

Bascially using sequences defined with TeX primitives like \gdef isn't
guaranteed to work in Texinfo when processing with TeX.

The argument to @subsection is now being written into the .aux file.
When this happens AucTeX's own definition of \LaTeX is expanded, which causes
this bug.

If I comment out the definition of \LaTeX from doc/macros.texi, and then
delete auctex.aux, then pdftex succeeds when run two further times:

diff --git a/doc/macros.texi b/doc/macros.texi
index 478ac18..ac0e754 100644
--- a/doc/macros.texi
+++ b/doc/macros.texi
@@ -51,8 +51,8 @@ font-latex
 @tex
 \global\let\savedTeX\TeX
 \gdef\TeX#{\savedTeX}
-\gdef\LaTeX#{%
-    L\kern-.36em\raise.3ex\hbox{\sc{a}}\kern-.15em\TeX}
+%\gdef\LaTeX#{%
+%    L\kern-.36em\raise.3ex\hbox{\sc{a}}\kern-.15em\TeX}
 \gdef\previewlatex#{%
     {\textsf preview-latex}}
 \gdef\fontlatex#{%


texinfo.tex has its own definition of @LaTeX{}, which works correctly
in this context.

The PDF output looks good to me after this change, although I notice
some of the links in the table of contents don't work, which I will
investigate.

> 
> Best, Arash
> 
> P.S. I'm not subscribed to this list, please keep me in Cc, TIA.
> 

Reply via email to