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 (basicallyset -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β usepdftexorpdflatexfor processing--psβ output a PostScript file via DVI (usingdvips)
π§ TeX tuning:
-E,--expandβ macro expansion usingmakeinfo-I DIRβ search DIR for Texinfo files-l,--language=LANGβ specify LANG for FILE, eitherlatexortexinfo--no-line-errorβ do not pass--file-line-errorto TeX--shell-escapeβ pass--shell-escapeto TeX--src-specialsβ pass--src-specialsto 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*.t2ddirectory, where the auxiliary files are left. Output files are copied back to the original file.cleanβ same astidy, 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 π
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
- alpine 3.24: texinfo-doc 7.3-r0 Β· GPL-3.0-or-later
- arch rolling: texinfo 7.3-1
- arch rolling: texinfo 7.3-3 Β· GPL3
- nixpkgs unstable: texinfo 7.3
- nixpkgs unstable: texinfo-interactive 7.3
- ubuntu stonking: texinfo 7.3-2build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms