[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Running pdftex on auctex.texi with texinfo 2023-01-02.21 fails
From: |
David Kastrup |
Subject: |
Re: Running pdftex on auctex.texi with texinfo 2023-01-02.21 fails |
Date: |
Sat, 07 Jan 2023 17:13:25 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Arash Esbati <arash@gnu.org> writes:
> David Kastrup <dak@gnu.org> writes:
>
>> It needs to be written AUC@TeX{} . Maybe the toc code errouneously
>> strips the braces? ... Oops. In doc/macros.texi, we have
>>
>> \global\let\savedTeX\TeX
>> \gdef\TeX#1{\savedTeX#1}
>>
>> This would indeed cause this problem. Maybe try
>>
>> \gdef\TeX#{\savedTeX}
>
> Thanks for your response. This is what I get with your suggestion:
>
> [2] [-1] (Executive Summary)
> ! Use of @TeX doesn't match its definition.
> @ConTeXt #1->Con@TeX t
> #1
> l.76 ...vironment for editing @LaTeX{}, @ConTeXt{}
> ,
> ?
>
> Any other idea?
Without too much of a clue and research, this appears to do the trick
for me:
>From 8f354890af4c45753b7c7b620b0d56007a435631 Mon Sep 17 00:00:00 2001
From: David Kastrup <dak@gnu.org>
Date: Sat, 7 Jan 2023 17:11:49 +0100
Subject: [PATCH] Preserve braces after @TeX and similar macros.
---
doc/macros.texi | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/doc/macros.texi b/doc/macros.texi
index 4162d052..5c509572 100644
--- a/doc/macros.texi
+++ b/doc/macros.texi
@@ -50,30 +50,30 @@ font-latex
@end ifset
@tex
\global\let\savedTeX\TeX
-\gdef\TeX#1{\savedTeX#1}
-\gdef\LaTeX{%
+\gdef\TeX#{\savedTeX}
+\gdef\LaTeX#{%
L\kern-.36em\raise.3ex\hbox{\sc{a}}\kern-.15em\TeX}
-\gdef\previewlatex#1{%
- {\sf preview-latex}#1}
-\gdef\fontlatex#1{%
- {\sf font-latex}#1}
-\gdef\AUCTeX{AUC\TeX}
-\gdef\ConTeXt#1{%
- Con\TeX t#1}
+\gdef\previewlatex#{%
+ {\sf preview-latex}}
+\gdef\fontlatex#{%
+ {\sf font-latex}}
+\gdef\AUCTeX#{AUC\TeX}
+\gdef\ConTeXt#{%
+ Con\TeX{}t}
\toks0\expandafter{\indexnofonts
- \def\TeX#1{TeX#1}%
- \def\LaTeX#1{LaTeX#1}\def\previewlatex#1{preview-latex#1}}
+ \def\TeX#{TeX}%
+ \def\LaTeX#{LaTeX}\def\previewlatex#{preview-latex}}
\xdef\indexnofonts{\the\toks0}
\ifx\commondummies\undefined \else
\toks0\expandafter{\commondummies
- \def\TeX#1{TeX#1}%
- \def\LaTeX#1{LaTeX#1}\def\previewlatex#1{preview-latex#1}}
+ \def\TeX#{TeX}%
+ \def\LaTeX#1{LaTeX}\def\previewlatex#1{preview-latex}}
\xdef\commondummies{\the\toks0}
\fi
\ifx\definedummies\undefined \else
\toks0\expandafter{\definedummies
- \def\TeX#1{TeX#1}%
- \def\LaTeX#1{LaTeX#1}\def\previewlatex#1{preview-latex#1}}
+ \def\TeX#{TeX}%
+ \def\LaTeX#{LaTeX}\def\previewlatex#{preview-latex}}
\xdef\definedummies{\the\toks0}
\fi
\ifx\acronym\undefined \gdef\acronym#1{{\smallcaps \lowercase{#1}}} \fi
--
2.37.2
--
David Kastrup
- Running pdftex on auctex.texi with texinfo 2023-01-02.21 fails, Arash Esbati, 2023/01/07
- Re: Running pdftex on auctex.texi with texinfo 2023-01-02.21 fails, David Kastrup, 2023/01/07
- Re: Running pdftex on auctex.texi with texinfo 2023-01-02.21 fails, Arash Esbati, 2023/01/07
- Re: Running pdftex on auctex.texi with texinfo 2023-01-02.21 fails,
David Kastrup <=
- Re: Running pdftex on auctex.texi with texinfo 2023-01-02.21 fails, Arash Esbati, 2023/01/07
- Re: Running pdftex on auctex.texi with texinfo 2023-01-02.21 fails, David Kastrup, 2023/01/07
- Re: Running pdftex on auctex.texi with texinfo 2023-01-02.21 fails, Arash Esbati, 2023/01/07
- Re: Running pdftex on auctex.texi with texinfo 2023-01-02.21 fails, David Kastrup, 2023/01/07
- Re: Running pdftex on auctex.texi with texinfo 2023-01-02.21 fails, Arash Esbati, 2023/01/07
- Re: Running pdftex on auctex.texi with texinfo 2023-01-02.21 fails, David Kastrup, 2023/01/07
- Re: Running pdftex on auctex.texi with texinfo 2023-01-02.21 fails, Arash Esbati, 2023/01/08