DH_INSTALLTEX(1)
π NAME π
dh_installtex β bestie, this one registers Type 1 fonts, hyphenation patterns, or formats with TeX. That's the whole vibe. π
β¨ SYNOPSIS β¨
dh_installtex [debhelper options] [-n] [--flavor=flavor[,flavor]]
[map=MixedMap,file.map] [map=Map,file.map] [map=KanjiMap,file.map]
[mapfile=file.cfg] [hyphen=lang,file[,lhm=n][,rhm=n][,synonym=syn,...]]
[hyphenfile=file.cnf] [format=format,engine,hyphenfile,rest args]
[formatfile=file.cnf]
π¦ DESCRIPTION π¦
okay so dh_installtex is a debhelper program, and its whole job β its main character energy, if you will β is updating the ls-R databases, registering map files, new formats, and new hyphenation patterns with TeX. π
Your package should depend on an appropriate version of tex-common so that the update-* commands are available. (Good news: this program adds that dependency to ${misc:Depends} for you, no cap.) π
β οΈ WARNING β οΈ This program does not check for the actual existence of any input files in TEXMF trees. If you call it without any further specification on which packages to work on (using-por-N) it will add calls to management functions to all packages. In this case don't forget to add${misc:Depends}to all packages' dependencies. Not me forgetting that and then spending three hours debugging π
πΈ SIMPLE USAGE: Registering Files πΈ
If you only install files into /usr/share/texmf, literally nothing has to be done. tex-common will automatically detect changes and run mktexlsr. slay, it's free real estate. β¨
π§ COMPLEX USAGE: Registering fonts, hyphenation patterns and formats π§
If in addition you have to install map files, hyphenation patterns for additional languages, or format definitions, you can use three different methods to specify what should be installed:
- Pre made config files: These files can be specified with the different
typefile=options.typecan be one ofmap,formatandhyphen, and these files will be installed into/var/lib/tex-common/configdir/for the respective type (fontmap-cfgfor map files,hyphen-cnffor hyphenation patterns, andfmtutil-cnffor format definitions).
Example:
dh_installtex mapfile=foo.cfg formatfile=debian/bar.cnf
would install foo.cfg as /var/lib/tex-common/fontmap-cfg/texmf/foo.cfg, and debian/bar.cnf as /var/lib/tex-common/fmtutil-cnf/texmf/bar.cnf.
- Directly on the cmd line: You can specify maps, formats, and hyphenations on the cmd line. The items are stored in the respective config file
20package
Example:
dh_installtex map=Map,foo.map hyphen=ngerman-x-2011-07-01,\
dehyphn-x-2011-07-01.tex,hyph-de-1996.pat.txt,lhm=2,\
rhm=2,synonym=ngerman-x-latest,exceptions=hyph-de-1996.hyp.txt
would install a file /var/lib/tex-common/fontmap-cfg/texmf/package.cfg containing the line
Map foo.map
and a file /var/lib/tex-common/hyphen-cnf/texmf/package.cnf containing the lines
name=ngerman-x-2011-07-01 file=dehyphn-x-2011-07-01.tex file_patterns=hyph-de-1996.pat.txt lefthyphenmin=2 righthyphenmin=2 synonym=ngerman-x-latest file_exceptions=hyph-de-1996.hyp.txt
- Package files: You create a file
debian/package.mapsordebian/maps,debian/package.hyphensordebian/hyphens,debian/package.formatsordebian/formats. These files are installed with the name of the package. Each of these files will be installed into the first packagedh_installtexis told to act on. By default this is the first binary package indebian/control, but if you use-p,-i, or-aflags, it will be the first package specified by those flags. π«Ά
Example:
dh_installtex
would install a present debian/package.formats file as /var/lib/tex-common/fmtutil-cnf/texmf/package.cnf.
π Mixing the different variants π
The command line items (Variant 2) are merged into the debian/package.maps (debian/package.hyphens, debian/package.formats) file. If you specify an additional package.cfg/cnf (Variant 1) this will raise an error since both files would be installed as package.cfg/cnf. Pick a lane bestie, you cannot do both π
π OPTIONS π
-n,--noscriptsβ Do not modifypostinst/prermscripts. Hands off, respectfully. π--flavor=flavor[,flavor]β This option is used to select a different tree than the default/usr/share/texmf, and to switch on additional options. The argument specifies a list of flavors to be selected. At the moment you can select from the following list of flavors:tree:texlive,map:config_for_active_maps,map:config_for_all_maps,format:add_one:formatname.tree:texlivewill select the tree/usr/share/texlive/texmf-distand should only be used for files installed into this tree.map:config_for_active_mapswill create a fileconfig.barfor each active (i.e. uncommented) map in each of the cfg file generated by one of the three methods described above. These files are installed in/usr/share/texmf/dvips/config/.- If you select
map:config_for_all_mapsthe script will generateconfig.bareven for those map files which are present in a cfg file, but deactivated by a comment. living dangerously, we love that π - The file
config.baris used when called bydvips -Pbar .... Thus it allows the activation of single map files even if they are not automatically activated via theupdmap(-sys)mechanism. - Default is not to generate any config files.
format:add_one:formatnameallows one to add the generation of a specific format without actually providing it (in a cnf file). This is useful if a package adds hyphenation patterns to an existing formats.format:no_links: Usually, for every format that is specified in a configuration file,dh_installtexwill create a symlink/usr/bin/formatthat points to the corresponding engine. For example,/usr/bin/latexwould be created as a symlink topdftex.- The flavor
format:no_linksinhibits this. If a link already exists,dh_installtexwill skip this format with an informational message, even if this option is not given. iconic behaviour tbh β
π NOTES π
dh_installtex adds a dependency relation onto tex-common to misc:Depends.
π¨ Note that this command is not idempotent.dh_clean -kshould be called between invocations of this command, unless using the-noption. Otherwise, it may cause multiple instances of the same text to be added to maintainer scripts. And nobody wants the same paragraph showing up six times, fr fr π
Please refer to the Debian TeX policy for details about fonts configuration for TeX by Debian packages. iykyk π
π SEE ALSO π
π AUTHOR π
This program and its documentation was written by Norbert Preining for the Debian Operating System and both are licensed under the GNU General Public License Version 2 or later. π
and that's the whole page bestie!! π«Ά this was written by the perl v5.40.1 girlies on 2025-12-05 β mwah, go register some fonts, you ate π β¨
π¦ where this page comes from
- ubuntu resolute: tex-common 6.20 Β· GPL-2.0-or-later
- ubuntu stonking: tex-common 6.20 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms