Mercurial > emacs
comparison doc/misc/texinfo.tex @ 112329:e36b2f5d36cd
Sync from gnulib.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sun, 16 Jan 2011 18:35:15 -0800 |
parents | 01442958b949 |
children | d3c691ea0839 |
comparison
equal
deleted
inserted
replaced
112328:ba9f26694b92 | 112329:e36b2f5d36cd |
---|---|
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-12-23.17} | 6 \def\texinfoversion{2011-01-15.17} |
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, 2011 Free Software Foundation, Inc. |
11 % | 11 % |
12 % This texinfo.tex file is free software: you can redistribute it and/or | 12 % This texinfo.tex file is free software: you can redistribute it and/or |
13 % modify it under the terms of the GNU General Public License as | 13 % modify it under the terms of the GNU General Public License as |
14 % published by the Free Software Foundation, either version 3 of the | 14 % published by the Free Software Foundation, either version 3 of the |
15 % License, or (at your option) any later version. | 15 % License, or (at your option) any later version. |
847 \def\thisfile{#1}% | 847 \def\thisfile{#1}% |
848 {% | 848 {% |
849 \makevalueexpandable % we want to expand any @value in FILE. | 849 \makevalueexpandable % we want to expand any @value in FILE. |
850 \turnoffactive % and allow special characters in the expansion | 850 \turnoffactive % and allow special characters in the expansion |
851 \indexnofonts % Allow `@@' and other weird things in file names. | 851 \indexnofonts % Allow `@@' and other weird things in file names. |
852 \wlog{texinfo.tex: doing @include of #1^^J}% | |
852 \edef\temp{\noexpand\input #1 }% | 853 \edef\temp{\noexpand\input #1 }% |
853 % | 854 % |
854 % This trickery is to read FILE outside of a group, in case it makes | 855 % This trickery is to read FILE outside of a group, in case it makes |
855 % definitions, etc. | 856 % definitions, etc. |
856 \expandafter | 857 \expandafter |
2068 \def\xword{10} | 2069 \def\xword{10} |
2069 \def\xwordpt{10pt} | 2070 \def\xwordpt{10pt} |
2070 % | 2071 % |
2071 \parseargdef\fonttextsize{% | 2072 \parseargdef\fonttextsize{% |
2072 \def\textsizearg{#1}% | 2073 \def\textsizearg{#1}% |
2073 \wlog{doing @fonttextsize \textsizearg}% | 2074 %\wlog{doing @fonttextsize \textsizearg}% |
2074 % | 2075 % |
2075 % Set \globaldefs so that documents can use this inside @tex, since | 2076 % Set \globaldefs so that documents can use this inside @tex, since |
2076 % makeinfo 4.8 does not support it, but we need it nonetheless. | 2077 % makeinfo 4.8 does not support it, but we need it nonetheless. |
2077 % | 2078 % |
2078 \begingroup \globaldefs=1 | 2079 \begingroup \globaldefs=1 |
6503 \def\doverbatiminclude#1{% | 6504 \def\doverbatiminclude#1{% |
6504 {% | 6505 {% |
6505 \makevalueexpandable | 6506 \makevalueexpandable |
6506 \setupverbatim | 6507 \setupverbatim |
6507 \indexnofonts % Allow `@@' and other weird things in file names. | 6508 \indexnofonts % Allow `@@' and other weird things in file names. |
6509 \wlog{texinfo.tex: doing @verbatiminclude of #1^^J}% | |
6508 \input #1 | 6510 \input #1 |
6509 \afterenvbreak | 6511 \afterenvbreak |
6510 }% | 6512 }% |
6511 } | 6513 } |
6512 | 6514 |
8545 \catcode`\!=12 | 8547 \catcode`\!=12 |
8546 \catcode`\~=13 | 8548 \catcode`\~=13 |
8547 | 8549 |
8548 \gdef\DeclareUnicodeCharacter#1#2{% | 8550 \gdef\DeclareUnicodeCharacter#1#2{% |
8549 \countUTFz = "#1\relax | 8551 \countUTFz = "#1\relax |
8550 \wlog{\space\space defining Unicode char U+#1 (decimal \the\countUTFz)}% | 8552 %\wlog{\space\space defining Unicode char U+#1 (decimal \the\countUTFz)}% |
8551 \begingroup | 8553 \begingroup |
8552 \parseXMLCharref | 8554 \parseXMLCharref |
8553 \def\UTFviiiTwoOctets##1##2{% | 8555 \def\UTFviiiTwoOctets##1##2{% |
8554 \csname u8:##1\string ##2\endcsname}% | 8556 \csname u8:##1\string ##2\endcsname}% |
8555 \def\UTFviiiThreeOctets##1##2##3{% | 8557 \def\UTFviiiThreeOctets##1##2##3{% |