TEXI2DVI(1)

✨ TEXI2DVI(1) ✨

okay bestie, so this is texi2dvi, a little user command from the GNU Texinfo fam that takes your Texinfo documents and turns them into DVI or PDF. literally iconic behavior. πŸ’…


🌸 NAME 🌸

texi2dvi β€” convert Texinfo documents to DVI or PDF πŸ¦‹


πŸ’– SYNOPSIS πŸ’–

texi2dvi [OPTION]... FILE...
texi2pdf [OPTION]... FILE...
pdftexi2dvi [OPTION]... FILE...

πŸŽ€ DESCRIPTION πŸŽ€

So the way this works is: it runs each Texinfo or (La)TeX FILE through TeX in turn, over and over, until all the cross-references are resolved and all the indices are built. it's giving persistence, honestly. 🫢

The directory containing each FILE is searched for included files. The suffix of FILE is what determines its language β€” either (La)TeX or Texinfo. And if you wanna process (e)plain TeX files? no problem bestie, just set the environment variable LATEX=tex. slay.

When it's invoked as texi2pdf, or when you hand it the --pdf option, it generates PDF output. Otherwise? you're getting DVI. that's the deal. πŸ’«

πŸ’… General options:

  • -D, --debug β€” turn on shell debugging (basically set -x, so you can watch it do its thing)
  • -h, --help β€” display this help and exit successfully ✨
  • -o, --output=OFILE β€” leave the output in OFILE. careful though: only one input FILE is allowed with this one
  • -q, --quiet β€” no output unless there are errors 🀫
  • -v, --version β€” display version information and exit successfully
  • -V, --verbose β€” report on what is done, like a little narrator keeping you posted
  • --max-iterations=N β€” don't process files more than N times [7]
  • --mostly-clean β€” remove auxiliary files or directories from previous runs (but not the output, bestie)

🌈 Output format:

  • --dvi β€” output a DVI file [default]
  • --dvipdf β€” output a PDF file via DVI (using a dvi-to-pdf program)
  • -p, --pdf β€” use pdftex or pdflatex for processing
  • --ps β€” output a PostScript file via DVI (using dvips)

🧚 TeX tuning:

  • -E, --expand β€” macro expansion using makeinfo
  • -I DIR β€” search DIR for Texinfo files
  • -l, --language=LANG β€” specify LANG for FILE, either latex or texinfo
  • --no-line-error β€” do not pass --file-line-error to TeX
  • --shell-escape β€” pass --shell-escape to TeX
  • --src-specials β€” pass --src-specials to TeX
  • --translate-file=FILE β€” use given charset translation file for TeX
  • -t, --command=CMD β€” insert CMD in copy of input file

⭐ Build modes:

  • --build=MODE β€” specify the treatment of auxiliary files [local]
  • --tidy β€” same as --build=tidy
  • -c, --clean β€” same as --build=clean
  • --build-dir=DIR β€” specify where the tidy compilation is performed; implies --tidy

The MODE specifies where the TeX compilation takes place, and, as a consequence, how auxiliary files are treated. πŸ‘‘

πŸ¦‹ Valid values of MODE are:

  • local β€” compile in the current directory, leaving all the auxiliary files around. This is the traditional TeX use.
  • tidy β€” compile in a local *.t2d directory, where the auxiliary files are left. Output files are copied back to the original file.
  • clean β€” same as tidy, but remove the auxiliary directory afterwards. Every compilation therefore requires the full cycle. it's thorough, okay?

The build mode can also be set using the environment variable TEXI2DVI_BUILD_MODE. The tidy build directory can also be set using the environment variable TEXI2DVI_BUILD_DIRECTORY. 🌸

The values of these environment variables are used to run the corresponding commands, if they are set:

BIBER BIBTEX DVIPDF DVIPS EGREP LATEX MAKEINDEX MAKEINFO PDFLATEX
PDFTEX SED TEX TEXINDEX TEXINDY THUMBPDF_CMD

Regarding --dvipdf, if DVIPDF is not set in the environment, the following programs are looked for (in this order): dvipdfmx dvipdfm dvipdf dvi2pdf dvitopdf.

If Texinfo is installed on your site, then the command

info texi2dvi

should give you access to more documentation. πŸ“š


😭 REPORTING BUGS 😭

Report bugs to bug-texinfo@gnu.org, general questions and discussion to help-texinfo@gnu.org.

GNU Texinfo home page: <https://www.gnu.org/software/texinfo/>

General help using GNU software: <http://www.gnu.org/gethelp/>


Copyright Β© 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. (yes bestie, zero, none, nada β€” read the license, it's real)

πŸ’œ SEE ALSO πŸ’œ

The full documentation for texi2dvi is maintained as a Texinfo manual. If the info and texi2dvi programs are properly installed at your site, the command

info texi2dvi

should give you access to the complete manual. go read it, it's giving lore. πŸ“–


and that's the whole page, bestie β€” brought to you by texi2dvi (GNU Texinfo 7.3), dated March 2026. mwah. πŸ’…βœ¨

πŸ“¦ where this page comes from