Home | History | Annotate | Download | only in docs

Lines Matching refs:TeX

1 % texinfo.tex -- TeX macros to handle Texinfo files.
12 % This texinfo.tex file is free software; you can redistribute it and/or
17 % This texinfo.tex file is distributed in the hope that it will be
23 % along with this texinfo.tex file; see the file COPYING. If not, write
27 % As a special exception, when this file is read by TeX when processing
31 % Please try the latest version of texinfo.tex before submitting bug
34 % ftp://tug.org/tex/texinfo.tex
36 % The texinfo.tex in any given distribution could well be out
43 % To process a Texinfo manual with TeX, it's most reliable to use the
46 % tex foo.texi
48 % tex foo.texi
49 % tex foo.texi
51 % The extra TeX runs get the cross-reference information correct.
55 % It is possible to adapt texinfo.tex for other languages, to some
74 % For @tex, we can use \tabalign.
77 % Save some plain tex macros whose names we will redefine.
107 % Use TeX 3.0's \inputlineno to get the line number, for better error
108 % messages, but if we're using an old version of TeX, don't do anything.
390 % macro which expects an ordinary undelimited TeX argument.
453 % favourite TeX trick. --kasal, 16nov03
484 % Define the framework for environments in texinfo.tex. It's used like this:
583 % Others are defined by plain TeX: @` @' @" @^ @~ @= @u @v @H.
592 % Plain TeX defines: @AA @AE @O @OE @L (plus lowercase versions) @ss.
609 % The \TeX{} logo, as in plain, but resetting the spacing so that a
612 \edef\TeX{\TeX \spacefactor=1000 }
625 \TeX
659 % beginning of a paragraph, when TeX is still in vertical mode, would
664 % it in a TeX vbox. We use \vtop instead of \vbox to construct the box
676 % percent of a page (\vfilllimit can be changed inside of @tex).
698 % The \vtop produces a box with normal height and large depth; thus, TeX puts
724 % TeX puts in an \escapechar (i.e., `@') at the beginning of the help
738 %% This method tries to make TeX break the page naturally
761 % TeX does not even consider page breaks if a penalty added to the
767 % There is an extremely small chance that TeX will actually break the
770 % almost-but-not-quite fill up a page, TeX will have a hard time doing
1041 % FYI, plain.tex uses \\ as a temporary control sequence (why?), but
1049 \tex
1055 \def\finishmath#1{#1$\endgroup} % Close the group opened by \tex.
1120 % Open the new aux file. TeX will close it automatically at exit.
1413 % Texinfo sort of supports the sans serif font style, which plain TeX does not.
1450 % before you read in texinfo.tex.
1710 %% serif) and @ii for TeX italic
1806 % Unfortunately, TeX uses one parameter (\hyphenchar) to control
1980 % It is available from http://www.ctan.org/tex-archive/fonts/eurosym.
2026 % Adapted from the plain.tex definition of \copyright.
2166 % Now make TeX use those variables
2276 % Only define if not already defined, in case a txi-??.tex file has set
2277 % up a different format (e.g., txi-cs.tex does this).
2502 % We need the \relax at the end of the \ifnum lines to stop TeX from
2780 % blank line, when TeX decides to break the line at the space before the
3026 TeX.
3036 % Define \newwrite to be identical to plain tex's \newwrite
3126 % Need these in case \tex is in effect and \{ is a \delimiter again.
3219 \definedummyword{TeX}%
3331 % Likewise with the other plain tex font commands.
3357 \def\TeX{TeX}%
3564 % as its first line, TeX doesn't complain about mismatched braces
3577 % false. We have to make TeX try to read something from the file, so
3702 % The `\ ' here is removed by the implicit \unskip that TeX does as
3739 % the manmac.tex format used to print the TeXbook itself.
3755 % runs and this will be a no-op. See the indexspread.tex test case.
4091 % This used to be simply \message{#1}, but TeX fully expands the
4092 % argument to \message. Therefore, if #1 contained @-commands, TeX
4093 % expanded them. For example, in `@unnumbered The @cite{Book}', TeX
4099 % \the<toks register> to achieve this: TeX expands \the<toks> only once,
4735 % @tex ... @end tex escapes into raw Tex temporarily.
4736 % One exception: @ is still an escape character, so that @end tex works.
4737 % But \@ or @@ will get a plain tex @ character.
4739 \envdef\tex{%
5375 % (plain.tex says that \dimen1 should be used only as global.)
5440 % so TeX would otherwise complain about undefined control sequence.
5515 % To do this right we need a feature of e-TeX, \scantokens,
5516 % which we arrange to emulate with a temporary file in ordinary TeX.
5541 % Append \endinput to make sure that TeX does not see the ending newline.
5543 % I've verified that it is necessary both for e-TeX and for ordinary TeX
5819 % to take a single TeX argument. The case of a macro invocation that
5853 % @node's only job in TeX is to define \lastnode, which is used in
6000 % If we use \unhbox0 and \unhbox1 to print the node names, TeX does not
6005 % is as if TeX is seeing it for the first time.
6087 \message{Cross reference values unknown; you must run TeX again.}%
6257 % Don't bother with the trickery in plain.tex to not require the
6295 % provide a place where TeX can split the footnote.
6362 % @image. We use the macros from epsf.tex to support this.
6363 % If epsf.tex is not installed and @image is used, we complain.
6365 % Check for and read epsf.tex up front. If we read it only at @image
6368 \openin 1 = epsf.tex
6370 % Do not bother showing banner with epsf.tex v2.7k (available in
6371 % doc/epsf.tex and on ctan).
6373 \input epsf.tex
6377 % We will only complain once about lack of epsf.tex.
6379 \newhelp\noepsfhelp{epsf.tex must be installed for images to
6381 it from ftp://tug.org/tex/epsf.tex.}
6387 \errmessage{epsf.tex not found, images will be ignored}%
6703 \tex % read txi-??.tex file in plain TeX.
6705 \openin 1 txi-#1.tex
6708 \errmessage{Cannot read language file txi-#1.tex}%
6710 \input txi-#1.tex
6720 % @documentencoding should change something in TeX eventually, most
6743 % Use TeX 3.0's \emergencystretch to help line breaking, but if we're
6744 % using an old version of TeX, don't do anything. We want the amount of
6834 % @tex
6837 % @end tex