Your company here — click to reach over 10,000 unique daily visitors

hitex - Man Page

HINT output from TeX


hitex [options] [&format] [file|\commands]


Run the HiT E X typesetter on file, usually creating file.hnt. If the file argument has no extension, ".tex" will be appended to it.  Instead of a file name, a set of HiT E X commands can be given, the first of which must start with a backslash. With a &format argument HiT E X uses a different set of precompiled commands, contained in format.fmt; it is usually better to use the -fmt format option instead.

HiT E X is a version of T E X that creates HINT files. The HINT file format is designed for on-screen reading of documents. Using a HINT viewer (see https://hint.userweb.mwn.de) to display a HINT file its content will dynamically adapt to the available display area.

The typical use of HiT E X is with pre generated formats. The hitex command uses the equivalent of the plain T E X format, and the hilatex command uses the equivalent of the L A T E X format. To generate formats, use the -ini switch.

HiT E X's handling of its command-line arguments is similar to that of of the other T E X programs in the web2c implementation.

HiT E X incorporates the e-T E X extensions (see etex(1)) if used with the -etex switch.

HiT E X incorporates the extensions needed for L A T E X (see latex(1)) if used with the -ltx switch.


This version of HiT E X understands the following command line options.

-cnf-line string

Parse string as a texmf.cnf configuration line.  See the Kpathsea manual.


Enable the use of compression for the HINT file. Compressed files are smaller but require decompression when viewing. Use only for large files if the file size matters.


When writing books, often empty pages are inserted - for example to begin chapters on a right hand side page. These empty pages are a nuisance for on-screen reading where there are no left or right hand side pages. This option keeps empty pages in the output.


This option tries to eliminate empty pages in the output. It is set as a default.


Enable the e-T E X extensions.  This option is only effective in combination with -ini. See etex(1).


Print error messages in the form file:line:error which is similar to the way many compilers format them.


Disable printing error messages in the file:line:error style.

-fmt format

Use format as the name of the format to be used, instead of the name by which HiT E X was called or a %& line.


Print help message and exit.

-hint-debug bitmask

Sets HINT file debugging flags according to the bitmask. See the -hint-debug-help option for details.


Print an explanation of the HINT debugging flags and exit.


T E X will usually not attempt to insert hyphenation points into the first  word of a paragraph. If a HINT file must be displayed on a very small device such hyphenation points might prove necessary. This option is set by default and enables the generation of these hyphenation points.


Disable the automatic insertion of hyphenation points in the first word of a paragraph. Needed only if complete compatibility with T E X is required.


Start in INI mode, which is used to dump formats.  The INI mode can be used for typesetting, but no format is preloaded, and basic initializations like setting catcodes may be required.

-interaction mode

Sets the interaction mode.  The mode can be either batchmode, nonstopmode, scrollmode, and errorstopmode. The meaning of these modes is the same as that of the corresponding \commands.

-jobname name

Use name for the job name, instead of deriving it from the name of the input file.

-kpathsea-debug bitmask

Sets path searching debugging flags according to the bitmask.  See the Kpathsea manual for details.


Enable the L A T E X extensions.  This option is only effective in combination with -ini. See latex(1).

-mfmode mode

Use mode as the Metafont mode when generating missing fonts. See mf(1) for details.

-mktex fmt

Enable mktexfmt, where fmt must be either tex, tfm, fmt, or pk.

-no-mktex fmt

Disable mktexfmt, where fmt must be either tex, tfm, fmt, or pk.

-output-directory directory

Write output files in directory instead of the current directory.  Look up input files in directory first, then along the normal search path.


If the first line of the main input file begins with %& parse it to look for a dump name.


Disable parsing of the first line of the main input file.

-progname name

Pretend to be program name. This affects both the format used and the search paths.

-resolution number

When using Metafont to generate missing pk fonts, use a resolution of number DPI.  See mf(1) for details.


Print version information and exit.


See the Kpathsea library documentation (e.g., the `Path specifications' node) for precise details of how the environment variables are used. The kpsewhich utility can be used to query the values of the variables.

One caveat: In most HiT E X formats, you cannot use ~ in a file name you give directly to HiT E X, because ~ is an active character in T E X, and hence is expanded, not taken as part of the file name. Other programs, such as Metafont, do not have this problem.


Normally, HiT E X puts its output files in the current directory.  If any output file cannot be opened there, it tries to open it in the directory specified in the environment variable TEXMFOUTPUT. There is no default value for that variable.  For example, if you say hitex paper and the current directory is not writable and TEXMFOUTPUT has the value /tmp, HiT E X attempts to create /tmp/paper.log (and /tmp/paper.hnt, if any output is produced.)  TEXMFOUTPUT is also checked for input files, as T E X often generates files that need to be subsequently read; for input, no suffixes (such as “.tex”) are added by default, the input name is simply checked as given.


Search path for \input and \openin files. This normally starts with “.”, so that user files are found before system files.  An empty path component will be replaced with the paths defined in the texmf.cnf file.  For example, set TEXINPUTS to ".:/home/user/tex:" to prepend the current directory and “/home/user/tex” to the standard search path.


Search path for format files.


Search path for font metric (.tfm) files.


If set, its value, taken to be in epoch-seconds, will be used for the creation date and as the reference moment for the time related  primitives of L A T E X. This is useful for making reproducible builds.


If set to the value "1", the time-related T E X primitives (\year, \month, \day, \time) are also initialized from the value of SOURCE_DATE_EPOCH.  This is not recommended if there is any viable alternative.

Many, many more environment variables may be consulted related to path searching.  See the Kpathsea manual.


The location of the files mentioned below varies from system to system.  Use the kpsewhich utility to find their locations.


Metric files for HiT E X's fonts.


Predigested HiT E X format files.

*.pk *.pfb

Font files used by HiT E X.


This manual page is not meant to be exhaustive.  The complete documentation for HiT E X can be found in the HiT E X user manual Further information can be found in the  manual of the Kpathsea library and in HINT: The file format which is available as a book or in electronic form from the  HINT project home page at https://hint.userweb.mwn.de.


This version of HiT E X fails to handle correctly glues and kerns with a  width that depends on \hsize or \vsize. Similarly, when the layout of table entries or mathematical formulas depends on \hsize  or \vsize their output might be distorted.


HiT E X should compile on a large variety of machine architectures and operating systems. HiT E X is part of the T E X Live distribution.

The HiT E X home page is at https://hint.userweb.mwn.de. There you find additional software, most importantly viewers for HINT files, and further information.

See Also

histretch(1), hishrink(1), latex(1), tex(1), kpsewhich(1),


The primary author of HiT E X is Martin Ruckert, with eT E X extensions by Peter Breitenlohner, L A T E X extensions by Thierry Laronde, and the kpathsearch library by Karl Berry.

T E X was designed by Donald E. Knuth, who implemented it using his WEB system for Pascal programs.

Many, many more contributed to the typesetting system now known as T E X; far too many to name all of them here.

Referenced By

hishrink(1), histretch(1).

11 November 2021 Version 1.0