aboutsummaryrefslogtreecommitdiffstats
path: root/doc/it/texinfo.tex
diff options
context:
space:
mode:
authorAntonio Giovanni Colombo <azc100@gmail.com>2020-07-29 15:16:24 +0200
committerAntonio Giovanni Colombo <azc100@gmail.com>2020-07-29 15:16:24 +0200
commite726fc2b262e62f0e8bcbb6e40764d966e91e169 (patch)
treedaa6b164cf518d7ebf8aa91528306b540056989c /doc/it/texinfo.tex
parent4964fa6b821bc7e6c9214019e24955169fd7d3be (diff)
downloadegawk-e726fc2b262e62f0e8bcbb6e40764d966e91e169.tar.gz
egawk-e726fc2b262e62f0e8bcbb6e40764d966e91e169.tar.bz2
egawk-e726fc2b262e62f0e8bcbb6e40764d966e91e169.zip
2020-07-29 Antonio Giovanni Colombo <azc100@gmail.com>
* gawk.1: Updated. * gawktexi.in: Updated. * texinfo.tex: Updated.
Diffstat (limited to 'doc/it/texinfo.tex')
-rwxr-xr-x[-rw-r--r--]doc/it/texinfo.tex36
1 files changed, 31 insertions, 5 deletions
diff --git a/doc/it/texinfo.tex b/doc/it/texinfo.tex
index 3f595ba0..96f4f116 100644..100755
--- a/doc/it/texinfo.tex
+++ b/doc/it/texinfo.tex
@@ -3,7 +3,7 @@
% Load plain if necessary, i.e., if running under initex.
\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
%
-\def\texinfoversion{2020-05-22.11}
+\def\texinfoversion{2020-06-25.17}
%
% Copyright 1985, 1986, 1988, 1990-2020 Free Software Foundation, Inc.
%
@@ -4938,7 +4938,7 @@ end
% like the previous two, but they put @code around the argument.
\def\docodeindex#1{\edef\indexname{#1}\parsearg\docodeindexxxx}
-\def\docodeindexxxx #1{\doind{\indexname}{\code{#1}}}
+\def\docodeindexxxx #1{\docind{\indexname}{#1}}
% Used for the aux, toc and index files to prevent expansion of Texinfo
@@ -5310,6 +5310,20 @@ end
\fi
}
+% Same as \doind, but for code indices
+\def\docind#1#2{%
+ \iflinks
+ {%
+ %
+ \requireopenindexfile{#1}%
+ \edef\writeto{\csname#1indfile\endcsname}%
+ %
+ \def\indextext{#2}%
+ \safewhatsit\docindwrite
+ }%
+ \fi
+}
+
% Check if an index file has been opened, and if not, open it.
\def\requireopenindexfile#1{%
\ifnum\csname #1indfile\endcsname=0
@@ -5379,6 +5393,9 @@ end
% trim spaces.
\edef\trimmed{\segment}%
\edef\trimmed{\expandafter\eatspaces\expandafter{\trimmed}}%
+ \ifincodeindex
+ \edef\trimmed{\noexpand\code{\trimmed}}%
+ \fi
%
\xdef\bracedtext{\bracedtext{\trimmed}}%
%
@@ -5444,7 +5461,12 @@ end
% Write the entry in \indextext to the index file.
%
-\def\doindwrite{%
+
+\newif\ifincodeindex
+\def\doindwrite{\incodeindexfalse\doindwritex}
+\def\docindwrite{\incodeindextrue\doindwritex}
+
+\def\doindwritex{%
\maybemarginindex
%
\atdummies
@@ -5664,7 +5686,11 @@ might help (with 'rm \jobname.?? \jobname.??s')%
\else
\begindoublecolumns
\catcode`\\=0\relax
- \catcode`\@=12\relax
+ %
+ % Make @ an escape character to give macros a chance to work. This
+ % should work because we (hopefully) don't otherwise use @ in index files.
+ %\catcode`\@=12\relax
+ \catcode`\@=0\relax
\input \jobname.\indexname s
\enddoublecolumns
\fi
@@ -7581,7 +7607,7 @@ might help (with 'rm \jobname.?? \jobname.??s')%
\let\nonarrowing = t%
\nonfillstart
\tt % easiest (and conventionally used) font for verbatim
- \def\par{\egroup\box\verbbox\endgraf\starttabbox}%
+ \def\par{\egroup\leavevmode\box\verbbox\endgraf\starttabbox}%
\tabexpand
\setupmarkupstyle{verbatim}%
% Respect line breaks,