TTHSPLIT(1)
π TTHSPLIT β the TtH gold HTML file splitting utilities, bestie
okay so real talk, this whole lil family of programs is the TtH gold HTML file splitting utilities, and it's giving β¨main character energyβ¨ for anyone converting LaTeX to web stuff. Let's get into it π«Ά
β¨ SYNOPSIS β¨
tthprep filename.tex
tthsplit <filename{.html,.xml}
ttmsplit <filename{.html,.xml}
tthrfcat
πΈ DESCRIPTION πΈ
So like, the script tthprep runs LaTeX to generate the auxiliary files that tth or ttm need to properly link an HTML or XML web document. no cap, that's literally its whole job π
Now, the programs tth or ttm β which convert TeX or LaTeX documents to HTML or XML respectively β have a -s option. And that option makes them generate a single output file that's split into sections or chapters with fixed names. iconic behaviour honestly.
The program tthsplit splits that single file into files with fixed names, depending on the LaTeX source. and bestie, hear me when I say this: each document should have its own directory to avoid overwriting each other's files π (yes this is a real warning, don't be messy).
Program ttmsplit is just a symlink to tthsplit. literally that's it, no extra lore, it's a symlink periodt π
Then for complex documents with multiple bibliographies, the tth and ttm programs generate references to a single file refs.html or refs.xml respectively. And the tthrfcat program concatenates multiple bibliography files into such a single file, and then deletes the multiple files π (yep, deletes them β it said what it said).
π₯ EXAMPLE π₯
$ tthprep sample2e.tex
$ tth -s sample2e.tex
$ tthsplit <sample2e.html
index.html
sec1.html
sec2.html
footnote.html
$
This produces the four cross linked HTML files listed, from a copy of the example file sample2e.tex distributed with LaTeX 2e and present on Debian systems with LaTeX installed. four files, cross linked, slay π
π¦ SEE ALSO π¦
The programs are documented fully in /usr/share/doc/tth-common/html/gold_man.html β go read it, iykyk π
π AUTHOR π
TtHgold was written by Ian Hutchinson <tth@hutchinson.belmont.ma.us>.
This manual page was written by Ian Maclaine-cross <iml@debian.org>, for the Debian project (and may be used by others). giving credit where credit is due fr fr π«Ά
and that's the whole page bestie!! this one's from the General Commands Manual, TTHSPLIT(1), and it's dated February 7, 2011. a lil vintage, still valid. mwah πβ¨
π¦ where this page comes from
- debian bookworm: tth-common 4.16+ds-1 Β· GPL-2.0-or-later
- debian trixie: tth-common 4.16+ds-2 Β· GPL-2.0-or-later
- ubuntu jammy: tth-common 4.15+ds-1 Β· GPL-2.0-or-later
- ubuntu noble: tth-common 4.16+ds-1 Β· GPL-2.0-or-later
- ubuntu questing: tth-common 4.16+ds-2
- ubuntu resolute: tth-common 4.16+ds-2build1 Β· GPL-2.0-or-later
- ubuntu stonking: tth-common 4.16+ds-2build1 Β· 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