comparison build-aux/texinfo.tex @ 13254:95ecca09cc1e

update from texinfo
author Karl Berry <karl@freefriends.org>
date Thu, 22 Apr 2010 09:25:24 -0700
parents 7aaa97d4cc50
children becb13be04d7
comparison
equal deleted inserted replaced
13253:51e653bb55dd 13254:95ecca09cc1e
1 % texinfo.tex -- TeX macros to handle Texinfo files. 1 % texinfo.tex -- TeX macros to handle Texinfo files.
2 % 2 %
3 % Load plain if necessary, i.e., if running under initex. 3 % Load plain if necessary, i.e., if running under initex.
4 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi 4 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
5 % 5 %
6 \def\texinfoversion{2010-04-18.09} 6 \def\texinfoversion{2010-04-22.18}
7 % 7 %
8 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, 8 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
9 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 9 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
10 % 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 10 % 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
11 % 11 %
2718 \def\@{\char64 } 2718 \def\@{\char64 }
2719 2719
2720 % Used to generate quoted braces. Unless we're in typewriter, use 2720 % Used to generate quoted braces. Unless we're in typewriter, use
2721 % \ecfont because the CM text fonts do not have braces, and we don't 2721 % \ecfont because the CM text fonts do not have braces, and we don't
2722 % want to switch into math. 2722 % want to switch into math.
2723 \def\mylbrace {{\ifmonospace\else\ecfont\fi \char123}} 2723 \def\mylbrace{{\ifmonospace\else\ecfont\fi \char123}}
2724 \def\myrbrace {{\ifmonospace\else\ecfont\fi \char125}} 2724 \def\myrbrace{{\ifmonospace\else\ecfont\fi \char125}}
2725 \let\{=\mylbrace 2725 \let\{=\mylbrace
2726 \let\}=\myrbrace 2726 \let\}=\myrbrace
2727 \begingroup 2727 \begingroup
2728 % Definitions to produce \{ and \} commands for indices, 2728 % Definitions to produce \{ and \} commands for indices,
2729 % and @{ and @} for the aux/toc files. 2729 % and @{ and @} for the aux/toc files.
4134 \def\indexdummies{% 4134 \def\indexdummies{%
4135 \escapechar = `\\ % use backslash in output files. 4135 \escapechar = `\\ % use backslash in output files.
4136 \def\@{@}% change to @@ when we switch to @ as escape char in index files. 4136 \def\@{@}% change to @@ when we switch to @ as escape char in index files.
4137 \def\ {\realbackslash\space }% 4137 \def\ {\realbackslash\space }%
4138 % 4138 %
4139 % Need these in case \tex is in effect and \{ is a \delimiter again. 4139 % Need these unexpandable (because we define \tt as a dummy)
4140 % But can't use \lbracecmd and \rbracecmd because texindex assumes 4140 % definitions when @{ or @} appear in index entry text. Also, more
4141 % braces and backslashes are used only as delimiters. 4141 % complicated, when \tex is in effect and \{ is a \delimiter again.
4142 \let\{ = \mylbrace 4142 % We can't use \lbracecmd and \rbracecmd because texindex assumes
4143 \let\} = \myrbrace 4143 % braces and backslashes are used only as delimiters. Perhaps we
4144 % should define @lbrace and @rbrace commands a la @comma.
4145 \def\{{{\tt\char123}}%
4146 \def\}{{\tt\char125}}%
4144 % 4147 %
4145 % I don't entirely understand this, but when an index entry is 4148 % I don't entirely understand this, but when an index entry is
4146 % generated from a macro call, the \endinput which \scanmacro inserts 4149 % generated from a macro call, the \endinput which \scanmacro inserts
4147 % causes processing to be prematurely terminated. This is, 4150 % causes processing to be prematurely terminated. This is,
4148 % apparently, because \indexsorttmp is fully expanded, and \endinput 4151 % apparently, because \indexsorttmp is fully expanded, and \endinput