Mercurial > gnulib
comparison build-aux/texinfo.tex @ 18257:8b8119876a81
update from texinfo
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Sun, 21 Feb 2016 08:26:17 -0800 |
parents | 6f416831409f |
children | 21a53f24c390 |
comparison
equal
deleted
inserted
replaced
18256:6492e1ca2d5b | 18257:8b8119876a81 |
---|---|
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{2016-02-16.15} | 6 \def\texinfoversion{2016-02-20.23} |
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, 2011, 2012, 2013, 2014, 2015, 2016 | 10 % 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 |
11 % Free Software Foundation, Inc. | 11 % Free Software Foundation, Inc. |
3475 | 3475 |
3476 % First the title page. Must do @settitle before @titlepage. | 3476 % First the title page. Must do @settitle before @titlepage. |
3477 \newif\ifseenauthor | 3477 \newif\ifseenauthor |
3478 \newif\iffinishedtitlepage | 3478 \newif\iffinishedtitlepage |
3479 | 3479 |
3480 % Do an implicit @contents or @shortcontents after @end titlepage if the | 3480 % @setcontentsaftertitlepage used to do an implicit @contents or |
3481 % user says @setcontentsaftertitlepage or @setshortcontentsaftertitlepage. | 3481 % @shortcontents after @end titlepage, but it is now obsolete. |
3482 % | 3482 \def\setcontentsaftertitlepage{% |
3483 \newif\ifsetcontentsaftertitlepage | 3483 \errmessage{@setcontentsaftertitlepage has been removed as a Texinfo |
3484 \let\setcontentsaftertitlepage = \setcontentsaftertitlepagetrue | 3484 command; move your @contents command if you want the contents |
3485 \newif\ifsetshortcontentsaftertitlepage | 3485 after the title page.}}% |
3486 \let\setshortcontentsaftertitlepage = \setshortcontentsaftertitlepagetrue | 3486 \def\setshortcontentsaftertitlepage{% |
3487 \errmessage{@setshortcontentsaftertitlepage has been removed as a Texinfo | |
3488 command; move your @shortcontents and @contents commands if you | |
3489 want the contents after the title page.}}% | |
3487 | 3490 |
3488 \parseargdef\shorttitlepage{% | 3491 \parseargdef\shorttitlepage{% |
3489 \begingroup \hbox{}\vskip 1.5in \chaprm \centerline{#1}% | 3492 \begingroup \hbox{}\vskip 1.5in \chaprm \centerline{#1}% |
3490 \endgroup\page\hbox{}\page} | 3493 \endgroup\page\hbox{}\page} |
3491 | 3494 |
3523 \endgroup | 3526 \endgroup |
3524 % | 3527 % |
3525 % Need this before the \...aftertitlepage checks so that if they are | 3528 % Need this before the \...aftertitlepage checks so that if they are |
3526 % in effect the toc pages will come out with page numbers. | 3529 % in effect the toc pages will come out with page numbers. |
3527 \HEADINGSon | 3530 \HEADINGSon |
3528 % | |
3529 % If they want short, they certainly want long too. | |
3530 \ifsetshortcontentsaftertitlepage | |
3531 \shortcontents | |
3532 \contents | |
3533 \global\let\shortcontents = \relax | |
3534 \global\let\contents = \relax | |
3535 \fi | |
3536 % | |
3537 \ifsetcontentsaftertitlepage | |
3538 \contents | |
3539 \global\let\contents = \relax | |
3540 \global\let\shortcontents = \relax | |
3541 \fi | |
3542 } | 3531 } |
3543 | 3532 |
3544 \def\finishtitlepage{% | 3533 \def\finishtitlepage{% |
3545 \vskip4pt \hrule height 2pt width \hsize | 3534 \vskip4pt \hrule height 2pt width \hsize |
3546 \vskip\titlepagebottomglue | 3535 \vskip\titlepagebottomglue |
6367 \def\centerparameters{% | 6356 \def\centerparameters{% |
6368 \advance\rightskip by 3\rightskip | 6357 \advance\rightskip by 3\rightskip |
6369 \leftskip = \rightskip | 6358 \leftskip = \rightskip |
6370 \parfillskip = 0pt | 6359 \parfillskip = 0pt |
6371 } | 6360 } |
6372 | |
6373 | |
6374 % I don't think this chapter style is supported any more, so I'm not | |
6375 % updating it with the new noderef stuff. We'll see. --karl, 11aug03. | |
6376 % | |
6377 \parseargdef\setchapterstyle{\csname CHAPF#1\endcsname} | |
6378 % | |
6379 \def\unnchfopen #1{% | |
6380 \chapoddpage | |
6381 \vbox{\chapfonts \raggedtitlesettings #1\par}% | |
6382 \nobreak\bigskip\nobreak | |
6383 } | |
6384 \def\chfopen #1#2{\chapoddpage {\chapfonts | |
6385 \vbox to 3in{\vfil \hbox to\hsize{\hfil #2} \hbox to\hsize{\hfil #1} \vfil}}% | |
6386 \par\penalty 5000 % | |
6387 } | |
6388 \def\centerchfopen #1{% | |
6389 \chapoddpage | |
6390 \vbox{\chapfonts \raggedtitlesettings \hfill #1\hfill}% | |
6391 \nobreak\bigskip \nobreak | |
6392 } | |
6393 \def\CHAPFopen{% | |
6394 \global\let\chapmacro=\chfopen | |
6395 \global\let\centerchapmacro=\centerchfopen} | |
6396 | 6361 |
6397 | 6362 |
6398 % Section titles. These macros combine the section number parts and | 6363 % Section titles. These macros combine the section number parts and |
6399 % call the generic \sectionheading to do the printing. | 6364 % call the generic \sectionheading to do the printing. |
6400 % | 6365 % |