Changeset d3b0fe08 in rtems for texinfo.tex
- Timestamp:
- 11/21/12 03:23:42 (11 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 5adf02e5
- Parents:
- a12f7e9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
texinfo.tex
ra12f7e9 rd3b0fe08 4 4 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi 5 5 % 6 \def\texinfoversion{2012- 09-04.17}6 \def\texinfoversion{2012-11-08.11} 7 7 % 8 8 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, … … 2273 2273 \gdef\markupsetcodequoteleft{\let`\codequoteleft} 2274 2274 \gdef\markupsetcodequoteright{\let'\codequoteright} 2275 2276 \gdef\markupsetnoligaturesquoteleft{\let`\noligaturesquoteleft}2277 2275 } 2278 2276 … … 2283 2281 \let\markupsetuprqexample \markupsetcodequoteright 2284 2282 % 2283 \let\markupsetuplqkbd \markupsetcodequoteleft 2284 \let\markupsetuprqkbd \markupsetcodequoteright 2285 % 2285 2286 \let\markupsetuplqsamp \markupsetcodequoteleft 2286 2287 \let\markupsetuprqsamp \markupsetcodequoteright … … 2291 2292 \let\markupsetuplqverbatim \markupsetcodequoteleft 2292 2293 \let\markupsetuprqverbatim \markupsetcodequoteright 2293 2294 \let\markupsetuplqkbd \markupsetnoligaturesquoteleft2295 2294 2296 2295 % Allow an option to not use regular directed right quote/apostrophe … … 2383 2382 } 2384 2383 2385 % like \smartslanted except unconditionally uses \ttsl, and no ic. 2386 % @var is set to this for defun arguments. 2384 % Unconditional use \ttsl, and no ic. @var is set to this for defuns. 2387 2385 \def\ttslanted#1{{\ttsl #1}} 2388 2386 … … 2696 2694 \fi 2697 2695 2698 % @kbd is like @code, except that if the argument is just one @key command,2699 % then @kbd has no effect.2700 \def\kbd#1{{\setupmarkupstyle{kbd}\def\look{#1}\expandafter\kbdfoo\look??\par}}2701 2702 2696 % @kbdinputstyle -- arg is `distinct' (@kbd uses slanted tty font always), 2703 2697 % `example' (@kbd uses ttsl only inside of @example and friends), … … 2723 2717 \kbdinputstyle distinct 2724 2718 2719 % @kbd is like @code, except that if the argument is just one @key command, 2720 % then @kbd has no effect. 2721 \def\kbd#1{{\def\look{#1}\expandafter\kbdsub\look??\par}} 2722 2725 2723 \def\xkey{\key} 2726 \def\kbdfoo#1#2#3\par{\def\one{#1}\def\three{#3}\def\threex{??}% 2727 \ifx\one\xkey\ifx\threex\three \key{#2}% 2728 \else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi 2729 \else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi} 2724 \def\kbdsub#1#2#3\par{% 2725 \def\one{#1}\def\three{#3}\def\threex{??}% 2726 \ifx\one\xkey\ifx\threex\three \key{#2}% 2727 \else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi 2728 \else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi 2729 } 2730 2730 2731 2731 % definition of @key that produces a lozenge. Doesn't adjust to text size. … … 3273 3273 % don't worry much about spacing, ragged right. This should be used 3274 3274 % inside a \vbox, and fonts need to be set appropriately first. Because 3275 % it is always used for titles, nothing else, we call \rmisbold. 3275 % it is always used for titles, nothing else, we call \rmisbold. \par 3276 % should be specified before the end of the \vbox, since a vbox is a group. 3276 3277 % 3277 3278 \def\raggedtitlesettings{% … … 3290 3291 \parseargdef\title{% 3291 3292 \checkenv\titlepage 3292 \vbox{\titlefonts \raggedtitlesettings #1 }3293 \vbox{\titlefonts \raggedtitlesettings #1\par}% 3293 3294 % print a rule at the page bottom also. 3294 3295 \finishedtitlepagefalse … … 4257 4258 \def\ifcmddefinedfail{\doignore{ifcommanddefined}} 4258 4259 4259 % @ifcommandnotdefined CMD ... handl ded similar to @ifclear above.4260 % @ifcommandnotdefined CMD ... handled similar to @ifclear above. 4260 4261 \makecond{ifcommandnotdefined} 4261 4262 \def\ifcommandnotdefined{% … … 5593 5594 % Define @majorheading, @heading and @subheading 5594 5595 5595 % NOTE on use of \vbox for chapter headings, section headings, and such:5596 % 1) We use \vbox rather than the earlier \line to permit5597 % overlong headings to fold.5598 % 2) \hyphenpenalty is set to 10000 because hyphenation in a5599 % heading is obnoxious; this forbids it.5600 % 3) Likewise, headings look best if no \parindent is used, and5601 % if justification is not attempted. Hence \raggedright.5602 5603 5596 \def\majorheading{% 5604 5597 {\advance\chapheadingskip by 10pt \chapbreak }% … … 5608 5601 \def\chapheading{\chapbreak \parsearg\chapheadingzzz} 5609 5602 \def\chapheadingzzz#1{% 5610 {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 5611 \parindent=0pt\ptexraggedright 5612 \rmisbold #1\hfill}}% 5613 \bigskip \par\penalty 200\relax 5603 \vbox{\chapfonts \raggedtitlesettings #1\par}% 5604 \nobreak\bigskip \nobreak 5614 5605 \suppressfirstparagraphindent 5615 5606 } … … 5770 5761 % Typeset the actual heading. 5771 5762 \nobreak % Avoid page breaks at the interline glue. 5772 \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \ptexraggedright 5773 \hangindent=\wd0 \centerparametersmaybe 5763 \vbox{\raggedtitlesettings \hangindent=\wd0 \centerparametersmaybe 5774 5764 \unhbox0 #1\par}% 5775 5765 }% … … 5793 5783 % 5794 5784 \def\unnchfopen #1{% 5795 \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 5796 \parindent=0pt\ptexraggedright5797 \rmisbold #1\hfill}}\bigskip \par\nobreak5785 \chapoddpage 5786 \vbox{\chapfonts \raggedtitlesettings #1\par}% 5787 \nobreak\bigskip\nobreak 5798 5788 } 5799 5789 \def\chfopen #1#2{\chapoddpage {\chapfonts … … 5802 5792 } 5803 5793 \def\centerchfopen #1{% 5804 \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 5805 \parindent=0pt5806 \hfill {\rmisbold #1}\hfill}}\bigskip \par\nobreak5794 \chapoddpage 5795 \vbox{\chapfonts \raggedtitlesettings \hfill #1\hfill}% 5796 \nobreak\bigskip \nobreak 5807 5797 } 5808 5798 \def\CHAPFopen{% … … 6570 6560 % 6571 6561 \def\quotationstart{% 6572 {\parskip=0pt \aboveenvbreak}% because \aboveenvbreak inserts \parskip 6573 \parindent=0pt 6574 % 6575 % @cartouche defines \nonarrowing to inhibit narrowing at next level down. 6562 \indentedblockstart % same as \indentedblock, but increase right margin too. 6576 6563 \ifx\nonarrowing\relax 6577 \advance\leftskip by \lispnarrowing6578 6564 \advance\rightskip by \lispnarrowing 6579 \exdentamount = \lispnarrowing6580 \else6581 \let\nonarrowing = \relax6582 6565 \fi 6583 6566 \parsearg\quotationlabel … … 6604 6587 \fi 6605 6588 } 6589 6590 % @indentedblock is like @quotation, but indents only on the left and 6591 % has no optional argument. 6592 % 6593 \makedispenvdef{indentedblock}{\indentedblockstart} 6594 % 6595 \def\indentedblockstart{% 6596 {\parskip=0pt \aboveenvbreak}% because \aboveenvbreak inserts \parskip 6597 \parindent=0pt 6598 % 6599 % @cartouche defines \nonarrowing to inhibit narrowing at next level down. 6600 \ifx\nonarrowing\relax 6601 \advance\leftskip by \lispnarrowing 6602 \exdentamount = \lispnarrowing 6603 \else 6604 \let\nonarrowing = \relax 6605 \fi 6606 } 6607 6608 % Keep a nonzero parskip for the environment, since we're doing normal filling. 6609 % 6610 \def\Eindentedblock{% 6611 \par 6612 {\parskip=0pt \afterenvbreak}% 6613 } 6614 \def\Esmallindentedblock{\Eindentedblock} 6606 6615 6607 6616 … … 7083 7092 % 7084 7093 % On the other hand, if an argument has two dashes (for instance), we 7085 % want a way to get ttsl. Let's try @var for that. 7094 % want a way to get ttsl. We used to recommend @var for that, so 7095 % leave the code in, but it's strange for @var to lead to typewriter. 7096 % Nowadays we recommend @code, since the difference between a ttsl hyphen 7097 % and a tt hyphen is pretty tiny. @code also disables ?` !`. 7086 7098 \def\var##1{{\setupmarkupstyle{var}\ttslanted{##1}}}% 7087 7099 #1%
Note: See TracChangeset
for help on using the changeset viewer.