Home | History | Annotate | Download | only in util

Lines Matching refs:TeX

42 Run each Texinfo or LaTeX FILE through TeX in turn until all
47 Makeinfo is used to perform Texinfo macro expansion before running TeX
62 TeX tuning:
68 -r, --recode call recode before TeX to translate input characters
73 TEX (or PDFTEX), TEXINDEX, and THUMBPDF environment variables are used
95 textra= # Extra TeX commands to insert in the input file.
99 txiprereq=19990129 # minimum texinfo.tex version with macro expansion
196 -t | --tex* | --com* ) shift; textra="$textra\\
235 # We can't do much without tex.
237 if findprog ${TEX:-tex}; then :; else cat <<EOM
238 You don't have a working TeX binary (${TEX:-tex}) installed anywhere in
240 this script, you'll need to install TeX (if you don't have it) or change
241 your PATH or TEX environment variable (if you do). See the --help
244 For information about obtaining TeX, please see http://www.tug.org. If
257 # End up with the TEX and PDFTEX variables set to what we are going to use.
258 if test -z "$TEX"; then
259 if findprog etex; then TEX=etex; else TEX=tex; fi
281 # iftex sections only. We want to remove non TeX sections, and comment
282 # (with `@c texi2dvi') TeX sections so that makeinfo does not try to
283 # parse them. Nevertheless, while commenting TeX sections, don't
286 # (yet), makeinfo can't parse the TeX commands, so work around with sed.
290 /^@tex/,/^@end tex/{
374 # If the COMMAND_LINE_FILENAME is not absolute (e.g., --debug.tex),
380 # though the user may be able to reenter a valid filename at the tex
437 # Empty path components are meaningful to tex. We rewrite them
495 [lL]a[tT]e[xX] | *.ltx | *.tex)
504 tex=${LATEX:-latex}
506 tex=${PDFLATEX:-pdflatex}
512 # Assume a Texinfo file. Texinfo files need makeinfo, texindex and tex.
518 # MetaPost also uses the TEX environment variable. If the user
519 # has set TEX=latex for that reason, don't bomb out.
520 if echo $TEX | grep 'latex$' >/dev/null; then
521 tex=tex # don't bother trying to find etex
523 tex=$TEX
526 tex=$PDFTEX
529 # if texinfo.tex is too old.
533 # Check if texinfo.tex performs macro expansion by looking for
541 echo '\input texinfo.tex @bye' >txiversion.tex
542 # Be sure that if tex wants to fail, it is not interactive:
544 $tex txiversion.tex </dev/null
549 fatal "texinfo.tex appears to be broken, quitting."
552 $verbose "texinfo.tex preloaded as \`$txiformat', version is \`$txiversion' ..."
558 # As long as we had to run TeX, offer the user this convenience:
567 tex_help=`cd $tmpdir >/dev/null && $tex --help </dev/null 2>&1`
569 # If possible, make TeX report error locations in GNU format.
575 # Tell TeX to be batch if requested. (\batchmode does not show
582 # Discard main info output, the user asked to run TeX, not makeinfo.
684 # already exist, and after running TeX a first time the index
685 # files don't change, then there's no reason to run TeX again.
694 # Finally, run TeX.
695 cmd="$tex $tex_args"
698 echo "$0: TeX failed. If the above said 'tex: not found', " >&2
699 echo "$0: you may need to install TeX;" >&2
701 echo "$0: If TeX is installed, make sure it is in your $PATH, or" >&2
702 echo "$0: set the environment variable $TEX to its location." >&2
703 echo "$0: $tex exited with bad status, quitting." >&2
740 # differs, because we'll have to run texindex & tex again no
755 # and TeX one last time.
766 echo "$0: $tex exited with bad status, quitting." >&2