Mercurial > gnulib
comparison build-aux/texinfo.tex @ 9529:27a877457cb9
update from texinfo
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Sat, 15 Dec 2007 06:39:03 -0800 |
parents | 0dfaae9e6fcd |
children | d1f036d390bb |
comparison
equal
deleted
inserted
replaced
9528:77504e34a17d | 9529:27a877457cb9 |
---|---|
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{2007-09-03.05} | 6 \def\texinfoversion{2007-12-02.17} |
7 % | 7 % |
8 % Copyright (C) 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, 2007, | 8 % Copyright (C) 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, 2007, |
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 Free Software Foundation, Inc. | 10 % 2007 Free Software Foundation, Inc. |
11 % | 11 % |
1640 \vrule width0pt height\strutheightpercent\baselineskip | 1640 \vrule width0pt height\strutheightpercent\baselineskip |
1641 depth \strutdepthpercent \baselineskip | 1641 depth \strutdepthpercent \baselineskip |
1642 }% | 1642 }% |
1643 } | 1643 } |
1644 | 1644 |
1645 % | |
1646 % PDF CMaps. See also LaTeX's t1.cmap. | 1645 % PDF CMaps. See also LaTeX's t1.cmap. |
1647 % | 1646 % |
1648 % \cmapOT1 | 1647 % do nothing with this by default. |
1649 \ifpdf | 1648 \expandafter\let\csname cmapOT1\endcsname\gobble |
1649 \expandafter\let\csname cmapOT1IT\endcsname\gobble | |
1650 \expandafter\let\csname cmapOT1TT\endcsname\gobble | |
1651 | |
1652 % if we are producing pdf, and we have \pdffontattr, then define cmaps. | |
1653 % (\pdffontattr was introduced many years ago, but people still run | |
1654 % older pdftex's; it's easy to conditionalize, so we do.) | |
1655 \ifpdf \ifx\pdffontattr\undefined \else | |
1650 \begingroup | 1656 \begingroup |
1651 \catcode`\^^M=\active \def^^M{^^J}% Output line endings as the ^^J char. | 1657 \catcode`\^^M=\active \def^^M{^^J}% Output line endings as the ^^J char. |
1652 \catcode`\%=12 \immediate\pdfobj stream {%!PS-Adobe-3.0 Resource-CMap | 1658 \catcode`\%=12 \immediate\pdfobj stream {%!PS-Adobe-3.0 Resource-CMap |
1653 %%DocumentNeededResources: ProcSet (CIDInit) | 1659 %%DocumentNeededResources: ProcSet (CIDInit) |
1654 %%IncludeResource: ProcSet (CIDInit) | 1660 %%IncludeResource: ProcSet (CIDInit) |
1892 %%EOF | 1898 %%EOF |
1893 }\endgroup | 1899 }\endgroup |
1894 \expandafter\edef\csname cmapOT1TT\endcsname#1{% | 1900 \expandafter\edef\csname cmapOT1TT\endcsname#1{% |
1895 \pdffontattr#1{/ToUnicode \the\pdflastobj\space 0 R}% | 1901 \pdffontattr#1{/ToUnicode \the\pdflastobj\space 0 R}% |
1896 }% | 1902 }% |
1897 \else | 1903 \fi\fi |
1898 \expandafter\let\csname cmapOT1\endcsname\gobble | |
1899 \expandafter\let\csname cmapOT1IT\endcsname\gobble | |
1900 \expandafter\let\csname cmapOT1TT\endcsname\gobble | |
1901 \fi | |
1902 | 1904 |
1903 | 1905 |
1904 % Set the font macro #1 to the font named #2, adding on the | 1906 % Set the font macro #1 to the font named #2, adding on the |
1905 % specified font prefix (normally `cm'). | 1907 % specified font prefix (normally `cm'). |
1906 % #3 is the font's design size, #4 is a scale factor, #5 is the CMap | 1908 % #3 is the font's design size, #4 is a scale factor, #5 is the CMap |
1910 \font#1=\fontprefix#2#3 scaled #4 | 1912 \font#1=\fontprefix#2#3 scaled #4 |
1911 \csname cmap#5\endcsname#1% | 1913 \csname cmap#5\endcsname#1% |
1912 } | 1914 } |
1913 % This is what gets called when #5 of \setfont is empty. | 1915 % This is what gets called when #5 of \setfont is empty. |
1914 \let\cmap\gobble | 1916 \let\cmap\gobble |
1915 | 1917 % emacs-page end of cmaps |
1916 | 1918 |
1917 % Use cm as the default font prefix. | 1919 % Use cm as the default font prefix. |
1918 % To specify the font prefix, you must define \fontprefix | 1920 % To specify the font prefix, you must define \fontprefix |
1919 % before you read in texinfo.tex. | 1921 % before you read in texinfo.tex. |
1920 \ifx\fontprefix\undefined | 1922 \ifx\fontprefix\undefined |
2762 % Quotes. | 2764 % Quotes. |
2763 \chardef\quotedblleft="5C | 2765 \chardef\quotedblleft="5C |
2764 \chardef\quotedblright=`\" | 2766 \chardef\quotedblright=`\" |
2765 \chardef\quoteleft=`\` | 2767 \chardef\quoteleft=`\` |
2766 \chardef\quoteright=`\' | 2768 \chardef\quoteright=`\' |
2769 | |
2767 | 2770 |
2768 \message{page headings,} | 2771 \message{page headings,} |
2769 | 2772 |
2770 \newskip\titlepagetopglue \titlepagetopglue = 1.5in | 2773 \newskip\titlepagetopglue \titlepagetopglue = 1.5in |
2771 \newskip\titlepagebottomglue \titlepagebottomglue = 2pc | 2774 \newskip\titlepagebottomglue \titlepagebottomglue = 2pc |