comparison build-aux/texinfo.tex @ 9041:e73ec05f3a47

update from texinfo
author Karl Berry <karl@freefriends.org>
date Wed, 04 Jul 2007 00:08:29 +0000
parents 67d6e62c3540
children 01955222b832
comparison
equal deleted inserted replaced
9040:45826531b132 9041:e73ec05f3a47
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-07-02.23} 6 \def\texinfoversion{2007-07-03.23}
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 %
1260 output) for that.)} 1260 output) for that.)}
1261 1261
1262 \ifpdf 1262 \ifpdf
1263 % 1263 %
1264 % Color manipulation macros from pdfcolor.tex. 1264 % Color manipulation macros from pdfcolor.tex.
1265 \def\cmykBrickRed{0 0.89 0.94 0.28} 1265 \def\cmykDarkRed{0.28 1 1 0.35}
1266 \def\cmykBlack{0 0 0 1} 1266 \def\cmykBlack{0 0 0 1}
1267 %
1268 \def\BrickRed{\pdfsetcolor{\cmykBrickRed}}
1269 \def\Black{\pdfsetcolor{\cmykBlack}}
1270 % 1267 %
1271 \def\pdfsetcolor#1{\pdfliteral{#1 k}} 1268 \def\pdfsetcolor#1{\pdfliteral{#1 k}}
1272 \def\setcolor#1{\mark{#1}\pdfsetcolor{#1}} 1269 \def\setcolor#1{\mark{#1}\pdfsetcolor{#1}}
1273 % 1270 %
1274 \def\maincolor{\cmykBlack} 1271 \def\maincolor{\cmykBlack}
1351 % used to mark target names; must be expandable. 1348 % used to mark target names; must be expandable.
1352 \def\pdfmkpgn#1{#1} 1349 \def\pdfmkpgn#1{#1}
1353 % 1350 %
1354 % by default, use a color that is dark enough to print on paper as 1351 % by default, use a color that is dark enough to print on paper as
1355 % nearly black, but still distinguishable for online viewing. 1352 % nearly black, but still distinguishable for online viewing.
1356 \let\urlcolor = \BrickRed 1353 \def\urlcolor{\cmykDarkRed}
1357 \let\linkcolor = \BrickRed 1354 \def\linkcolor{\cmykDarkRed}
1358 \def\endlink{\Black\pdfendlink} 1355 \def\endlink{\setcolor{\maincolor}\pdfendlink}
1359 % 1356 %
1360 % Adding outlines to PDF; macros for calculating structure of outlines 1357 % Adding outlines to PDF; macros for calculating structure of outlines
1361 % come from Petr Olsak 1358 % come from Petr Olsak
1362 \def\expnumber#1{\expandafter\ifx\csname#1\endcsname\relax 0% 1359 \def\expnumber#1{\expandafter\ifx\csname#1\endcsname\relax 0%
1363 \else \csname#1\endcsname \fi} 1360 \else \csname#1\endcsname \fi}
1486 % 1483 %
1487 \normalturnoffactive 1484 \normalturnoffactive
1488 \def\@{@}% 1485 \def\@{@}%
1489 \let\/=\empty 1486 \let\/=\empty
1490 \makevalueexpandable 1487 \makevalueexpandable
1491 \leavevmode\urlcolor 1488 \leavevmode\setcolor{\urlcolor}%
1492 \startlink attr{/Border [0 0 0]}% 1489 \startlink attr{/Border [0 0 0]}%
1493 user{/Subtype /Link /A << /S /URI /URI (#1) >>}% 1490 user{/Subtype /Link /A << /S /URI /URI (#1) >>}%
1494 \endgroup} 1491 \endgroup}
1495 \def\pdfgettoks#1.{\setbox\boxA=\hbox{\toksA={#1.}\toksB={}\maketoks}} 1492 \def\pdfgettoks#1.{\setbox\boxA=\hbox{\toksA={#1.}\toksB={}\maketoks}}
1496 \def\addtokens#1#2{\edef\addtoks{\noexpand#1={\the#1#2}}\addtoks} 1493 \def\addtokens#1#2{\edef\addtoks{\noexpand#1={\the#1#2}}\addtoks}
1513 \next} 1510 \next}
1514 \def\makelink{\addtokens{\toksB}% 1511 \def\makelink{\addtokens{\toksB}%
1515 {\noexpand\pdflink{\the\toksC}}\toksC={}\global\countA=0} 1512 {\noexpand\pdflink{\the\toksC}}\toksC={}\global\countA=0}
1516 \def\pdflink#1{% 1513 \def\pdflink#1{%
1517 \startlink attr{/Border [0 0 0]} goto name{\pdfmkpgn{#1}} 1514 \startlink attr{/Border [0 0 0]} goto name{\pdfmkpgn{#1}}
1518 \linkcolor #1\endlink} 1515 \setcolor{\linkcolor}#1\endlink}
1519 \def\done{\edef\st{\global\noexpand\toksA={\the\toksB}}\st} 1516 \def\done{\edef\st{\global\noexpand\toksA={\the\toksB}}\st}
1520 \else 1517 \else
1521 \let\pdfmkdest = \gobble 1518 \let\pdfmkdest = \gobble
1522 \let\pdfurl = \gobble 1519 \let\pdfurl = \gobble
1523 \let\endlink = \relax 1520 \let\endlink = \relax
1524 \let\linkcolor = \relax 1521 \let\setcolor = \gobble
1522 \let\pdfsetcolor = \gobble
1525 \let\pdfmakeoutlines = \relax 1523 \let\pdfmakeoutlines = \relax
1526 \fi % \ifx\pdfoutput 1524 \fi % \ifx\pdfoutput
1527 1525
1528 1526
1529 \message{fonts,} 1527 \message{fonts,}
6716 \else 6714 \else
6717 \startlink attr{/Border [0 0 0]}% 6715 \startlink attr{/Border [0 0 0]}%
6718 goto name{\pdfmkpgn{\pdfxrefdest}}% 6716 goto name{\pdfmkpgn{\pdfxrefdest}}%
6719 \fi 6717 \fi
6720 }% 6718 }%
6721 \linkcolor 6719 \setcolor{\linkcolor}%
6722 \fi 6720 \fi
6723 % 6721 %
6724 % Float references are printed completely differently: "Figure 1.2" 6722 % Float references are printed completely differently: "Figure 1.2"
6725 % instead of "[somenode], p.3". We distinguish them by the 6723 % instead of "[somenode], p.3". We distinguish them by the
6726 % LABEL-title being set to a magic string. 6724 % LABEL-title being set to a magic string.