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.
384 % macro which expects an ordinary undelimited TeX argument.
447 % favourite TeX trick. --kasal, 16nov03
478 % Define the framework for environments in texinfo.tex. It's used like this:
577 % Others are defined by plain TeX: @` @' @" @^ @~ @= @u @v @H.
586 % Plain TeX defines: @AA @AE @O @OE @L (plus lowercase versions) @ss.
603 % The \TeX{} logo, as in plain, but resetting the spacing so that a
606 \edef\TeX{\TeX \spacefactor=1000 }
619 \TeX
668 % beginning of a paragraph, when TeX is still in vertical mode, would
673 % it in a TeX vbox. We use \vtop instead of \vbox to construct the box
685 % percent of a page (\vfilllimit can be changed inside of @tex).
707 % The \vtop produces a box with normal height and large depth; thus, TeX puts
733 % TeX puts in an \escapechar (i.e., `@') at the beginning of the help
747 %% This method tries to make TeX break the page naturally
770 % TeX does not even consider page breaks if a penalty added to the
776 % There is an extremely small chance that TeX will actually break the
779 % almost-but-not-quite fill up a page, TeX will have a hard time doing
1050 % FYI, plain.tex uses \\ as a temporary control sequence (why?), but
1058 \tex
1064 \def\finishmath#1{#1$\endgroup} % Close the group opened by \tex.
1129 % Open the new aux file. TeX will close it automatically at exit.
1194 % (and related messages, the final outcome is that it is up to the TeX
1466 % Texinfo sort of supports the sans serif font style, which plain TeX does not.
1503 % before you read in texinfo.tex.
1763 %% serif) and @ii for TeX italic
1873 % Unfortunately, TeX uses one parameter (\hyphenchar) to control
2075 % It is available from http://www.ctan.org/tex-archive/fonts/eurosym.
2121 % Adapted from the plain.tex definition of \copyright.
2261 % Now make TeX use those variables
2371 % Only define if not already defined, in case a txi-??.tex file has set
2372 % up a different format (e.g., txi-cs.tex does this).
2597 % We need the \relax at the end of the \ifnum lines to stop TeX from
2875 % blank line, when TeX decides to break the line at the space before the
3127 % which this file should belong to. Ignore this in TeX.
3137 % Define \newwrite to be identical to plain tex's \newwrite
3228 % Need these in case \tex is in effect and \{ is a \delimiter again.
3307 \definedummyword\TeX
3413 % Likewise with the other plain tex font commands.
3439 \def\TeX{TeX}%
3466 % to take a single TeX argument. The case of a macro invocation that
3654 % as its first line, TeX doesn't complain about mismatched braces
3667 % false. We have to make TeX try to read something from the file, so
3792 % The `\ ' here is removed by the implicit \unskip that TeX does as
3829 % the manmac.tex format used to print the TeXbook itself.
3845 % runs and this will be a no-op. See the indexspread.tex test case.
4181 % This used to be simply \message{#1}, but TeX fully expands the
4182 % argument to \message. Therefore, if #1 contained @-commands, TeX
4183 % expanded them. For example, in `@unnumbered The @cite{Book}', TeX
4189 % \the<toks register> to achieve this: TeX expands \the<toks> only once,
4854 % @tex ... @end tex escapes into raw Tex temporarily.
4855 % One exception: @ is still an escape character, so that @end tex works.
4856 % But \@ or @@ will get a plain tex @ character.
4858 \envdef\tex{%
5497 % (plain.tex says that \dimen1 should be used only as global.)
5562 % so TeX would otherwise complain about undefined control sequence.
5637 % To do this right we need a feature of e-TeX, \scantokens,
5638 % which we arrange to emulate with a temporary file in ordinary TeX.
5663 % Append \endinput to make sure that TeX does not see the ending newline.
5665 % I've verified that it is necessary both for e-TeX and for ordinary TeX
5965 % @node's only job in TeX is to define \lastnode, which is used in
6113 % If we use \unhbox0 and \unhbox1 to print the node names, TeX does not
6118 % is as if TeX is seeing it for the first time.
6200 \message{Cross reference values unknown; you must run TeX again.}%
6373 % Don't bother with the trickery in plain.tex to not require the
6411 % provide a place where TeX can split the footnote.
6478 % @image. We use the macros from epsf.tex to support this.
6479 % If epsf.tex is not installed and @image is used, we complain.
6481 % Check for and read epsf.tex up front. If we read it only at @image
6484 \openin 1 = epsf.tex
6486 % Do not bother showing banner with epsf.tex v2.7k (available in
6487 % doc/epsf.tex and on ctan).
6489 \input epsf.tex
6493 % We will only complain once about lack of epsf.tex.
6495 \newhelp\noepsfhelp{epsf.tex must be installed for images to
6497 it from ftp://tug.org/tex/epsf.tex.}
6503 \errmessage{epsf.tex not found, images will be ignored}%
6821 \tex % read txi-??.tex file in plain TeX.
6823 \openin 1 txi-#1.tex
6826 \errmessage{Cannot read language file txi-#1.tex}%
6828 \input txi-#1.tex
6838 % @documentencoding should change something in TeX eventually, most
6861 % Use TeX 3.0's \emergencystretch to help line breaking, but if we're
6862 % using an old version of TeX, don't do anything. We want the amount of
6970 % @tex
6973 % @end tex