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
25 % As a special exception, when this file is read by TeX when processing
29 % Please try the latest version of texinfo.tex before submitting bug
34 % The texinfo.tex in any given distribution could well be out
41 % To process a Texinfo manual with TeX, it's most reliable to use the
44 % tex foo.texi
46 % tex foo.texi
47 % tex foo.texi
49 % The extra TeX runs get the cross-reference information correct.
53 % It is possible to adapt texinfo.tex for other languages, to some
71 % For @tex, we can use \tabalign.
74 % 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.
423 % macro which expects an ordinary undelimited TeX argument.
485 % favourite TeX trick. --kasal, 16nov03
516 % Define the framework for environments in texinfo.tex. It's used like this:
627 % beginning of a paragraph, when TeX is still in vertical mode, would
632 % it in a TeX vbox. We use \vtop instead of \vbox to construct the box
644 % percent of a page (\vfilllimit can be changed inside of @tex).
666 % The \vtop produces a box with normal height and large depth; thus, TeX puts
692 % TeX puts in an \escapechar (i.e., `@') at the beginning of the help
720 % TeX does not even consider page breaks if a penalty added to the
726 % There is an extremely small chance that TeX will actually break the
729 % almost-but-not-quite fill up a page, TeX will have a hard time doing
854 \wlog{texinfo.tex: doing @include of #1^^J}%
1047 % Open the new aux file. TeX will close it automatically at exit.
1112 % related messages. The final outcome is that it is up to the TeX user
1132 be supported due to the design of the PDF format; use regular TeX (DVI
1137 % Color manipulation macros based on pdfcolor.tex,
1467 % Texinfo sort of supports the sans serif font style, which plain TeX does not.
1516 %%BeginResource: CMap (TeX-OT1-0)
1517 %%Title: (TeX-OT1-0 TeX OT1 0)
1524 << /Registry (TeX)
1528 /CMapName /TeX-OT1-0 def
1602 %%BeginResource: CMap (TeX-OT1IT-0)
1603 %%Title: (TeX-OT1IT-0 TeX OT1IT 0)
1610 << /Registry (TeX)
1614 /CMapName /TeX-OT1IT-0 def
1690 %%BeginResource: CMap (TeX-OT1TT-0)
1691 %%Title: (TeX-OT1TT-0 TeX OT1TT 0)
1698 << /Registry (TeX)
1702 /CMapName /TeX-OT1TT-0 def
1782 % before you read in texinfo.tex.
2075 % Set \globaldefs so that documents can use this inside @tex, since
2232 \newif\ifmarkuptex % @tex (and part of @math, for now).
2480 % Unfortunately, TeX uses one parameter (\hyphenchar) to control
2812 % FYI, plain.tex uses \\ as a temporary control sequence (for no
2819 \tex
2835 \def\finishmath#1{#1$\endgroup} % Close the group opened by \tex.
2860 % Ignore unless FMTNAME == tex; then it is like @iftex and @tex,
2863 \def\outfmtnametex{tex}
2870 % For raw, must switch into @tex before parsing the argument, to avoid
2878 \long\def\inlineraw{\tex \doinlineraw}
2883 \endgroup % close group opened by \tex.
2917 % Others are defined by plain TeX: @` @' @" @^ @~ @= @u @v @H.
2926 % Plain TeX defines: @AA @AE @O @OE @L (plus lowercase versions) @ss.
2943 % The \TeX{} logo, as in plain, but resetting the spacing so that a
2946 \edef\TeX{\TeX \spacefactor=1000 }
2970 \TeX
3051 % It is available from http://www.ctan.org/tex-archive/fonts/eurosym.
3166 % Adapted from the plain.tex definition of \copyright.
3328 % Now make TeX use those variables
3469 % Only define if not already defined, in case a txi-??.tex file has set
3470 % up a different format (e.g., txi-cs.tex does this).
3705 % We need the \relax at the end of the \ifnum lines to stop TeX from
3990 % blank line, when TeX decides to break the line at the space before the
4243 % TeX level, so something like `mathcode' is going to considered
4271 % which this file should belong to. Ignore this in TeX.
4281 % Define \newwrite to be identical to plain tex's \newwrite
4375 % complicated, when \tex is in effect and \{ is a \delimiter again.
4392 % Sample source (mac-idx3.tex, reported by Graham Percival to
4486 \definedummyword\TeX
4620 % Likewise with the other plain tex font commands.
4659 \def\TeX{TeX}%
4703 % to take a single TeX argument. The case of a macro invocation that
4897 % as its first line, TeX doesn't complain about mismatched braces
4910 % false. We have to make TeX try to read something from the file, so
5038 % The `\ ' here is removed by the implicit \unskip that TeX does as
5052 % Like plain.tex's \dotfill, except uses up at least 1 em.
5075 % the manmac.tex format used to print the TeXbook itself.
5091 % runs and this will be a no-op. See the indexspread.tex test case.
5179 % the output routine finishes, TeX starts reconsidering the page
5182 % goal. When TeX sees \eject from below which follows the final
5479 % This used to be simply \message{#1}, but TeX fully expands the
5480 % argument to \message. Therefore, if #1 contained @-commands, TeX
5481 % expanded them. For example, in `@unnumbered The @cite{Book}', TeX
5487 % \the<toks register> to achieve this: TeX expands \the<toks> only once,
6239 % @tex ... @end tex escapes into raw TeX temporarily.
6240 % One exception: @ is still an escape character, so that @end tex works.
6243 \envdef\tex{%
6244 \setupmarkupstyle{tex}%
6531 % justification. From plain.tex.
6759 \wlog{texinfo.tex: doing @verbatiminclude of #1^^J}%
7116 % so TeX would otherwise complain about undefined control sequence.
7193 % To do this right we need a feature of e-TeX, \scantokens,
7194 % which we arrange to emulate with a temporary file in ordinary TeX.
7223 % cases (untried: maybe e-TeX's \everyeof could help, though plain TeX
7429 % defined `a la TeX in the macro body.
7449 % If you compile with TeX (not eTeX), and you have macros with 10 or more
7798 % @node's only job in TeX is to define \lastnode, which is used in
7941 % etc. don't get their TeX definitions. This ignores all spaces in
7993 % If we use \unhbox to print the node names, TeX does not insert
7998 % again, so it is as if TeX is seeing it for the first time.
8045 % But, this being TeX, we can't easily compare our node name against the
8120 \message{Cross reference values unknown; you must run TeX again.}%
8303 % Don't bother with the trickery in plain.tex to not require the
8341 % provide a place where TeX can split the footnote.
8344 % Invoke rest of plain TeX footnote routine.
8410 % @image. We use the macros from epsf.tex to support this.
8411 % If epsf.tex is not installed and @image is used, we complain.
8413 % Check for and read epsf.tex up front. If we read it only at @image
8416 \openin 1 = epsf.tex
8418 % Do not bother showing banner with epsf.tex v2.7k (available in
8419 % doc/epsf.tex and on ctan).
8421 \input epsf.tex
8425 % We will only complain once about lack of epsf.tex.
8427 \newhelp\noepsfhelp{epsf.tex must be installed for images to
8429 it from ftp://tug.org/tex/epsf.tex.}
8435 \errmessage{epsf.tex not found, images will be ignored}%
8774 \tex % read txi-??.tex file in plain TeX.
8776 \openin 1 txi-#1.tex
8781 \input txi-#1.tex
8784 \endgroup % end raw TeX
8787 % If they passed de_DE, and txi-de_DE.tex doesn't exist,
8788 % try txi-de.tex.
8791 \openin 1 txi-#1.tex
8794 \errmessage{Cannot read language file txi-#1.tex}%
8797 \input txi-#1.tex
8807 % This macro is called from txi-??.tex files; the first argument is the
8815 % With TeX Live 2008, etex now includes hyphenation patterns for all
8822 % do not set the language if the name is undefined in the current TeX.
8905 % correctly categorized when TeX reads the replacement text of
9681 % Use TeX 3.0's \emergencystretch to help line breaking, but if we're
9682 % using an old version of TeX, don't do anything. We want the amount of
9794 % @tex
9797 % @end tex
9978 % in math mode uses the \mathcode, and plain.tex sets