mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-14 04:18:48 +08:00
*** empty log message ***
This commit is contained in:
parent
9bb12a2a33
commit
304728fb95
@ -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{2003-01-08.14}
|
||||
\def\texinfoversion{2003-01-10.08}
|
||||
%
|
||||
% Copyright (C) 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
|
||||
% 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
@ -290,7 +290,7 @@
|
||||
\egroup % \vbox from first cropmarks clause
|
||||
\fi
|
||||
}% end of \shipout\vbox
|
||||
}% end of group with \turnoffactive
|
||||
}% end of group with \normalturnoffactive
|
||||
\advancepageno
|
||||
\ifnum\outputpenalty>-20000 \else\dosupereject\fi
|
||||
}
|
||||
@ -487,7 +487,7 @@
|
||||
\let\udotaccent = \d
|
||||
|
||||
% Other special characters: @questiondown @exclamdown
|
||||
% Plain TeX defines: @AA @AE @O @OE @L (and lowercase versions) @ss.
|
||||
% Plain TeX defines: @AA @AE @O @OE @L (plus lowercase versions) @ss.
|
||||
\def\questiondown{?`}
|
||||
\def\exclamdown{!`}
|
||||
|
||||
@ -2877,7 +2877,7 @@ width0pt\relax} \fi
|
||||
\def\_{{\realbackslash _}}%
|
||||
\normalturnoffactive
|
||||
%
|
||||
% Take care of the plain tex accent commands.
|
||||
% Accents.
|
||||
\def\,##1{\realbackslash ,{##1}}%
|
||||
\def\"{\realbackslash "}%
|
||||
\def\`{\realbackslash `}%
|
||||
@ -2891,8 +2891,13 @@ width0pt\relax} \fi
|
||||
\def\u{\realbackslash u}%
|
||||
\def\v{\realbackslash v}%
|
||||
\def\H{\realbackslash H}%
|
||||
\def\dotaccent##1{\realbackslash dotaccent {##1}}%
|
||||
\def\ringaccent##1{\realbackslash ringaccent {##1}}%
|
||||
\def\tieaccent##1{\realbackslash tieaccent {##1}}%
|
||||
\def\ubaraccent##1{\realbackslash ubaraccent {##1}}%
|
||||
\def\udotaccent##1{\realbackslash udotaccent {##1}}%
|
||||
\def\dotless##1{\realbackslash dotless {##1}}%
|
||||
% Take care of the plain tex special European modified letters.
|
||||
% Other non-English letters.
|
||||
\def\AA{\realbackslash AA}%
|
||||
\def\AE{\realbackslash AE}%
|
||||
\def\L{\realbackslash L}%
|
||||
@ -2918,9 +2923,9 @@ width0pt\relax} \fi
|
||||
%
|
||||
\def\b##1{\realbackslash b {##1}}%
|
||||
\def\i##1{\realbackslash i {##1}}%
|
||||
\def\r##1{\realbackslash r {##1}}%
|
||||
\def\sc##1{\realbackslash sc {##1}}%
|
||||
\def\t##1{\realbackslash t {##1}}%
|
||||
\def\r##1{\realbackslash r {##1}}%
|
||||
%
|
||||
\def\TeX{\realbackslash TeX}%
|
||||
\def\acronym##1{\realbackslash acronym {##1}}%
|
||||
@ -2970,29 +2975,34 @@ width0pt\relax} \fi
|
||||
|
||||
% \indexnofonts no-ops all font-change commands.
|
||||
% This is used when outputting the strings to sort the index by.
|
||||
\def\indexdummyfont#1{#1}
|
||||
\def\indexdummytex{TeX}
|
||||
\def\indexdummydots{...}
|
||||
|
||||
\def\indexnofonts{%
|
||||
\def\ { }%
|
||||
\def\@{@}%
|
||||
% how to handle braces?
|
||||
\def\_{\normalunderscore}%
|
||||
%
|
||||
\let\,=\indexdummyfont
|
||||
\let\"=\indexdummyfont
|
||||
\let\`=\indexdummyfont
|
||||
\let\'=\indexdummyfont
|
||||
\let\^=\indexdummyfont
|
||||
\let\~=\indexdummyfont
|
||||
\let\==\indexdummyfont
|
||||
\let\b=\indexdummyfont
|
||||
\let\c=\indexdummyfont
|
||||
\let\d=\indexdummyfont
|
||||
\let\u=\indexdummyfont
|
||||
\let\v=\indexdummyfont
|
||||
\let\H=\indexdummyfont
|
||||
\let\dotless=\indexdummyfont
|
||||
\let\,=\asis
|
||||
\let\"=\asis
|
||||
\let\`=\asis
|
||||
\let\'=\asis
|
||||
\let\^=\asis
|
||||
\let\~=\asis
|
||||
\let\==\asis
|
||||
\let\b=\asis
|
||||
\let\c=\asis
|
||||
\let\d=\asis
|
||||
\let\u=\asis
|
||||
\let\v=\asis
|
||||
\let\H=\asis
|
||||
\let\dotaccent=\asis
|
||||
\let\ringaccent=\asis
|
||||
\let\tieaccent=\asis
|
||||
\let\ubaraccent=\asis
|
||||
\let\udotaccent=\asis
|
||||
\let\dotless=\asis
|
||||
% Take care of the plain tex special European modified letters.
|
||||
\def\AA{AA}%
|
||||
\def\AE{AE}%
|
||||
@ -3009,34 +3019,34 @@ width0pt\relax} \fi
|
||||
% Don't no-op \tt, since it isn't a user-level command
|
||||
% and is used in the definitions of the active chars like <, >, |, etc.
|
||||
% Likewise with the other plain tex font commands.
|
||||
%\let\tt=\indexdummyfont
|
||||
%\let\tt=\asis
|
||||
%
|
||||
\let\b=\indexdummyfont
|
||||
\let\i=\indexdummyfont
|
||||
\let\r=\indexdummyfont
|
||||
\let\sc=\indexdummyfont
|
||||
\let\t=\indexdummyfont
|
||||
\let\b=\asis
|
||||
\let\i=\asis
|
||||
\let\r=\asis
|
||||
\let\sc=\asis
|
||||
\let\t=\asis
|
||||
%
|
||||
\let\TeX=\indexdummytex
|
||||
\let\acronym=\indexdummyfont
|
||||
\let\cite=\indexdummyfont
|
||||
\let\code=\indexdummyfont
|
||||
\let\command=\indexdummyfont
|
||||
\let\dfn=\indexdummyfont
|
||||
\let\acronym=\asis
|
||||
\let\cite=\asis
|
||||
\let\code=\asis
|
||||
\let\command=\asis
|
||||
\let\dfn=\asis
|
||||
\let\dots=\indexdummydots
|
||||
\let\emph=\indexdummyfont
|
||||
\let\env=\indexdummyfont
|
||||
\let\file=\indexdummyfont
|
||||
\let\kbd=\indexdummyfont
|
||||
\let\key=\indexdummyfont
|
||||
\let\math=\indexdummyfont
|
||||
\let\option=\indexdummyfont
|
||||
\let\samp=\indexdummyfont
|
||||
\let\strong=\indexdummyfont
|
||||
\let\uref=\indexdummyfont
|
||||
\let\url=\indexdummyfont
|
||||
\let\var=\indexdummyfont
|
||||
\let\w=\indexdummyfont
|
||||
\let\emph=\asis
|
||||
\let\env=\asis
|
||||
\let\file=\asis
|
||||
\let\kbd=\asis
|
||||
\let\key=\asis
|
||||
\let\math=\asis
|
||||
\let\option=\asis
|
||||
\let\samp=\asis
|
||||
\let\strong=\asis
|
||||
\let\uref=\asis
|
||||
\let\url=\asis
|
||||
\let\var=\asis
|
||||
\let\w=\asis
|
||||
}
|
||||
|
||||
% To define \realbackslash, we must make \ not be an escape.
|
||||
@ -3617,10 +3627,7 @@ width0pt\relax} \fi
|
||||
% We don't substitute the actual chapter name into \thischapter
|
||||
% because we don't want its macros evaluated now.
|
||||
\xdef\thischapter{\putwordChapter{} \the\chapno: \noexpand\thischaptername}%
|
||||
\toks0 = {#1}%
|
||||
\edef\temp{\noexpand\writetocentry{\realbackslash chapentry{\the\toks0}%
|
||||
{\the\chapno}}}%
|
||||
\temp
|
||||
\writetocentry{chap}{#1}{{\the\chapno}}
|
||||
\donoderef
|
||||
\global\let\section = \numberedsec
|
||||
\global\let\subsection = \numberedsubsec
|
||||
@ -3642,10 +3649,7 @@ width0pt\relax} \fi
|
||||
\gdef\thissection{#1}%
|
||||
\gdef\thischaptername{#1}%
|
||||
\xdef\thischapter{\putwordAppendix{} \appendixletter: \noexpand\thischaptername}%
|
||||
\toks0 = {#1}%
|
||||
\edef\temp{\noexpand\writetocentry{\realbackslash appendixentry{\the\toks0}%
|
||||
{\appendixletter}}}%
|
||||
\temp
|
||||
\writetocentry{appendix}{#1}{{\appendixletter}}
|
||||
\appendixnoderef
|
||||
\global\let\section = \appendixsec
|
||||
\global\let\subsection = \appendixsubsec
|
||||
@ -3679,9 +3683,7 @@ width0pt\relax} \fi
|
||||
%
|
||||
\unnumbchapmacro {#1}%
|
||||
\gdef\thischapter{#1}\gdef\thissection{#1}%
|
||||
\toks0 = {#1}%
|
||||
\edef\temp{\noexpand\writetocentry{\realbackslash unnumbchapentry{\the\toks0}{\the\chapno}}}%
|
||||
\temp
|
||||
\writetocentry{unnumbchap}{#1}{{\the\chapno}}
|
||||
\unnumbnoderef
|
||||
\global\let\section = \unnumberedsec
|
||||
\global\let\subsection = \unnumberedsubsec
|
||||
@ -3694,10 +3696,7 @@ width0pt\relax} \fi
|
||||
\def\seczzz #1{%
|
||||
\subsecno=0 \subsubsecno=0 \global\advance \secno by 1 %
|
||||
\gdef\thissection{#1}\secheading {#1}{\the\chapno}{\the\secno}%
|
||||
\toks0 = {#1}%
|
||||
\edef\temp{\noexpand\writetocentry{\realbackslash secentry{\the\toks0}%
|
||||
{\the\chapno}{\the\secno}}}%
|
||||
\temp
|
||||
\writetocentry{sec}{#1}{{\the\chapno}{\the\secno}}
|
||||
\donoderef
|
||||
\nobreak
|
||||
}
|
||||
@ -3708,10 +3707,7 @@ width0pt\relax} \fi
|
||||
\def\appendixsectionzzz #1{%
|
||||
\subsecno=0 \subsubsecno=0 \global\advance \secno by 1 %
|
||||
\gdef\thissection{#1}\secheading {#1}{\appendixletter}{\the\secno}%
|
||||
\toks0 = {#1}%
|
||||
\edef\temp{\noexpand\writetocentry{\realbackslash secentry{\the\toks0}%
|
||||
{\appendixletter}{\the\secno}}}%
|
||||
\temp
|
||||
\writetocentry{sec}{#1}{{\appendixletter}{\the\secno}}
|
||||
\appendixnoderef
|
||||
\nobreak
|
||||
}
|
||||
@ -3720,10 +3716,7 @@ width0pt\relax} \fi
|
||||
\def\unnumberedsecyyy #1{\unnmhead1{#1}} % normally calls unnumberedseczzz
|
||||
\def\unnumberedseczzz #1{%
|
||||
\plainsecheading {#1}\gdef\thissection{#1}%
|
||||
\toks0 = {#1}%
|
||||
\edef\temp{\noexpand\writetocentry{\realbackslash unnumbsecentry%
|
||||
{\the\toks0}{\the\chapno}{\the\secno}}}%
|
||||
\temp
|
||||
\writetocentry{unnumbsec}{#1}{{\the\chapno}{\the\secno}}
|
||||
\unnumbnoderef
|
||||
\nobreak
|
||||
}
|
||||
@ -3734,10 +3727,7 @@ width0pt\relax} \fi
|
||||
\def\numberedsubseczzz #1{%
|
||||
\gdef\thissection{#1}\subsubsecno=0 \global\advance \subsecno by 1 %
|
||||
\subsecheading {#1}{\the\chapno}{\the\secno}{\the\subsecno}%
|
||||
\toks0 = {#1}%
|
||||
\edef\temp{\noexpand\writetocentry{\realbackslash subsecentry{\the\toks0}%
|
||||
{\the\chapno}{\the\secno}{\the\subsecno}}}%
|
||||
\temp
|
||||
\writetocentry{subsec}{#1}{{\the\chapno}{\the\secno}{\the\subsecno}}
|
||||
\donoderef
|
||||
\nobreak
|
||||
}
|
||||
@ -3747,10 +3737,7 @@ width0pt\relax} \fi
|
||||
\def\appendixsubseczzz #1{%
|
||||
\gdef\thissection{#1}\subsubsecno=0 \global\advance \subsecno by 1 %
|
||||
\subsecheading {#1}{\appendixletter}{\the\secno}{\the\subsecno}%
|
||||
\toks0 = {#1}%
|
||||
\edef\temp{\noexpand\writetocentry{\realbackslash subsecentry{\the\toks0}%
|
||||
{\appendixletter}{\the\secno}{\the\subsecno}}}%
|
||||
\temp
|
||||
\writetocentry{subsec}{#1}{{\appendixletter}{\the\secno}{\the\subsecno}}
|
||||
\appendixnoderef
|
||||
\nobreak
|
||||
}
|
||||
@ -3759,10 +3746,7 @@ width0pt\relax} \fi
|
||||
\def\unnumberedsubsecyyy #1{\unnmhead2{#1}} %normally calls unnumberedsubseczzz
|
||||
\def\unnumberedsubseczzz #1{%
|
||||
\plainsubsecheading {#1}\gdef\thissection{#1}%
|
||||
\toks0 = {#1}%
|
||||
\edef\temp{\noexpand\writetocentry{\realbackslash unnumbsubsecentry%
|
||||
{\the\toks0}{\the\chapno}{\the\secno}{\the\subsecno}}}%
|
||||
\temp
|
||||
\writetocentry{unnumbsubsec}{#1}{{\the\chapno}{\the\secno}{\the\subsecno}}
|
||||
\unnumbnoderef
|
||||
\nobreak
|
||||
}
|
||||
@ -3774,10 +3758,7 @@ width0pt\relax} \fi
|
||||
\gdef\thissection{#1}\global\advance \subsubsecno by 1 %
|
||||
\subsubsecheading {#1}
|
||||
{\the\chapno}{\the\secno}{\the\subsecno}{\the\subsubsecno}%
|
||||
\toks0 = {#1}%
|
||||
\edef\temp{\noexpand\writetocentry{\realbackslash subsubsecentry{\the\toks0}%
|
||||
{\the\chapno}{\the\secno}{\the\subsecno}{\the\subsubsecno}}}%
|
||||
\temp
|
||||
\writetocentry{subsubsec}{#1}{{\the\chapno}{\the\secno}{\the\subsecno}{\the\subsubsecno}}
|
||||
\donoderef
|
||||
\nobreak
|
||||
}
|
||||
@ -3788,10 +3769,7 @@ width0pt\relax} \fi
|
||||
\gdef\thissection{#1}\global\advance \subsubsecno by 1 %
|
||||
\subsubsecheading {#1}
|
||||
{\appendixletter}{\the\secno}{\the\subsecno}{\the\subsubsecno}%
|
||||
\toks0 = {#1}%
|
||||
\edef\temp{\noexpand\writetocentry{\realbackslash subsubsecentry{\the\toks0}%
|
||||
{\appendixletter}{\the\secno}{\the\subsecno}{\the\subsubsecno}}}%
|
||||
\temp
|
||||
\writetocentry{subsubsec}{#1}{{\appendixletter}{\the\secno}{\the\subsecno}{\the\subsubsecno}}
|
||||
\appendixnoderef
|
||||
\nobreak
|
||||
}
|
||||
@ -3800,10 +3778,7 @@ width0pt\relax} \fi
|
||||
\def\unnumberedsubsubsecyyy #1{\unnmhead3{#1}} %normally unnumberedsubsubseczzz
|
||||
\def\unnumberedsubsubseczzz #1{%
|
||||
\plainsubsubsecheading {#1}\gdef\thissection{#1}%
|
||||
\toks0 = {#1}%
|
||||
\edef\temp{\noexpand\writetocentry{\realbackslash unnumbsubsubsecentry%
|
||||
{\the\toks0}{\the\chapno}{\the\secno}{\the\subsecno}{\the\subsubsecno}}}%
|
||||
\temp
|
||||
\writetocentry{unnumbsubsubsec}{#1}{{\the\chapno}{\the\secno}{\the\subsecno}{\the\subsubsecno}}
|
||||
\unnumbnoderef
|
||||
\nobreak
|
||||
}
|
||||
@ -4022,16 +3997,22 @@ width0pt\relax} \fi
|
||||
% Called from @chapter, etc. We supply {\folio} at the end of the
|
||||
% argument, which will end up as the last argument to the \...entry macro.
|
||||
%
|
||||
% We open the .toc file here instead of at @setfilename or any other
|
||||
% fixed time so that @contents can be put in the document anywhere.
|
||||
% Usage: \writetocentry{chap}{The Name of The Game}{{\the\chapno}}
|
||||
% We open the .toc file for writing here instead of at @setfilename (or
|
||||
% any other fixed time) so that @contents can be anywhere in the document.
|
||||
%
|
||||
\newif\iftocfileopened
|
||||
\def\writetocentry#1{%
|
||||
\def\writetocentry#1#2#3{%
|
||||
\iftocfileopened\else
|
||||
\immediate\openout\tocfile = \jobname.toc
|
||||
\global\tocfileopenedtrue
|
||||
\fi
|
||||
\iflinks \write\tocfile{#1{\folio}}\fi
|
||||
%
|
||||
\iflinks
|
||||
\toks0 = {#2}%
|
||||
\edef\temp{\write\tocfile{\realbackslash #1entry{\the\toks0}#3{\folio}}}%
|
||||
\temp
|
||||
\fi
|
||||
%
|
||||
% Tell \shipout to create a page destination if we're doing pdf, which
|
||||
% will be the target of the links in the table of contents. We can't
|
||||
|
Loading…
Reference in New Issue
Block a user