Mercurial > gnulib
comparison build-aux/texinfo.tex @ 9937:adf13947ae6c
update from texinfo
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Fri, 18 Apr 2008 10:41:18 -0700 |
parents | 08e89df21156 |
children | 591ae6a784d9 |
comparison
equal
deleted
inserted
replaced
9936:a1060fe09596 | 9937:adf13947ae6c |
---|---|
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{2008-04-09.09} | 6 \def\texinfoversion{2008-04-18.10} |
7 % | 7 % |
8 % Copyright (C) 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, | 8 % Copyright (C) 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 Free Software Foundation, Inc. | 10 % 2007, 2008 Free Software Foundation, Inc. |
11 % | 11 % |
648 % Dotless i and dotless j, used for accents. | 648 % Dotless i and dotless j, used for accents. |
649 \def\imacro{i} | 649 \def\imacro{i} |
650 \def\jmacro{j} | 650 \def\jmacro{j} |
651 \def\dotless#1{% | 651 \def\dotless#1{% |
652 \def\temp{#1}% | 652 \def\temp{#1}% |
653 \ifx\temp\imacro \ptexi | 653 \ifx\temp\imacro \ifmmode\imath \else\ptexi \fi |
654 \else\ifx\temp\jmacro \j | 654 \else\ifx\temp\jmacro \ifmmode\jmath \else\j \fi |
655 \else \errmessage{@dotless can be used only with i or j}% | 655 \else \errmessage{@dotless can be used only with i or j}% |
656 \fi\fi | 656 \fi\fi |
657 } | 657 } |
658 | 658 |
659 % The \TeX{} logo, as in plain, but resetting the spacing so that a | 659 % The \TeX{} logo, as in plain, but resetting the spacing so that a |
1117 \def\math{% | 1117 \def\math{% |
1118 \tex | 1118 \tex |
1119 \mathunderscore | 1119 \mathunderscore |
1120 \let\\ = \mathbackslash | 1120 \let\\ = \mathbackslash |
1121 \mathactive | 1121 \mathactive |
1122 % make the texinfo accent commands work in math mode | |
1123 \let\"=\ddot | |
1124 \let\'=\acute | |
1125 \let\==\bar | |
1126 \let\^=\hat | |
1127 \let\`=\grave | |
1128 \let\u=\breve | |
1129 \let\v=\check | |
1130 \let\~=\tilde | |
1131 \let\dotaccent=\dot | |
1122 $\finishmath | 1132 $\finishmath |
1123 } | 1133 } |
1124 \def\finishmath#1{#1$\endgroup} % Close the group opened by \tex. | 1134 \def\finishmath#1{#1$\endgroup} % Close the group opened by \tex. |
1125 | 1135 |
1126 % Some active characters (such as <) are spaced differently in math. | 1136 % Some active characters (such as <) are spaced differently in math. |