FINDHYPH(1)
π FINDHYPH π
okay bestie, welcome to findhyph(1) β the little Perl icon that goes through your TeX log and finds every single word TeX decided to hyphenate. yes, really. no cap. π¦
β¨ NAME β¨
findhyph β find words hyphenated by TeX in a document
like. that's it. that's the whole job. and she does it flawlessly. π
π INSTALLATION π
okay so first things first, you gotta get her onto your machine:
- Copy
findhyphorfindhyph.bat(depending on OS used) to a directory included in system PATH. - The Perl interpreter is required to be in
/usr/bin/for Unix-like systems, or in PATH when usingfindhyph.bat.
that's the whole install. no build step, no drama, no ./configure saga. we love a low-maintenance queen. π
π SYNOPSIS π
findhyph [options] foo.log
that's the vibe. log file in, hyphenated words out. periodt. β
π«Ά DESCRIPTION π«Ά
To use this program:
- set
"\tracingparagraphs=1"in a TeX documentfoo.texand run: tex foo.texfindhyph [options] foo.log
literally three steps. that's it. π
now, listen, if you're setting "\looseness=<N>" to optimize paragraphs, you need to pass that information to the file foo.log in a form "@looseness=<N>" (on a separate line). You can use a macro like
\def\setlooseness#1{\looseness=#1 \immediate\write-1{@looseness=#1}}
for this purpose. If the paragraph contains material in display math mode, you need to use the macro in all split parts of the paragraph. don't skip a part, she will notice, and the results will be off. π
π OPTIONS π
-cβ display hyphenated words in context-fβ display font selectors and other strings starting with a backslash character-vβ display program version-pβ generate file containing information about one-letter prepositions and conjunctions left at the end of line-l=STRINGβ use prepositions/conjunctions listed in STRING instead of default list of prepositions and conjunctions"kKsSvVzZoOuUiIA"used for Slovak and Czech language
five options, five little gifts. iykyk. π
π§ OUTPUT FILES π§
foo.hyph
List of hyphenated words. All punctuation characters, parentheses and other character immediately preceding or following displayed words are included in this list. TeX constructs which are too difficult to display ("\hbox{}", "\mark{}" etc.) are shown as "[]". Math mode is indicated by "$" sign.
Page numbers in square brackets refer to LOG file and may occasionally differ from the typeset document. The reason is that TeX may need to break more paragraphs than it would eventually fit on the page in order to find a page break.
Words hyphenated in footnotes are listed before the words hyphenated in the paragraph in which the footnote is referenced.
foo.prep
List of prepositions if option -p is used.
π HISTORY π
1.0 (2001-04-08)
- public release
2.0 (2009-08-10)
- fixes in line breaks detection algorithm; support for the third pass of line breaking algorithm in TeX (positive
"\emergencystretch"); support for discretionary breaks in the first pass - page number detection improved (recognized negative page numbers, compound page numbers when
"\count1"to"\count9"registers are non-zero and"[nn{mapfile}]","[nn<picture>]"and"[nn<newline>"formats used by pdfTeX; false page number detection should be much more rare) - configurable list of prepositions and conjunctions
- hyphenated words can be displayed in context
- suggestions and testing by Pavel StΕΓΕΎ
3.0 (2012-02-01)
- fixed a bug when total paragraph demerits are negative
"\looseness"setting is now taken into account (thanks to Karel HorΓ‘k for identifying the issue)
3.1 (2012-11-03)
- fixed displaying of hyphenated ligatures (bug reported by Karel HorΓ‘k)
3.2 (2012-11-21)
- improved example definition of the
"\setlooseness"macro (thanks to Karl Berry)
3.3 (2013-06-18)
- fixed the manual page as suggested by Eric S. Raymond
3.4 (2015-10-18)
- fixed processing of logs produced using Ξ΅-TeX's
"\lastlinefit"option (bug reported by Karel HorΓ‘k) - fixed cross-platform handling of linebreaks in the input file
look at that changelog. she's been growing and evolving since 2001 and she's still serving. πΈ
π LICENSE π
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.
free as in freedom, bestie. use her, share her, remix her. π«Ά
π¦ AUTHOR π¦
Copyright (c) Martin Budaj <m.b@speleo.sk> 2000, 2001, 2009, 2012, 2015
also fun fact: the manual page itself saysperl v5.20.2and it was last touched on2015-10-18β so that's the version-and-date energy we're closing with. π
okay that's the whole page, mwah, go hyphenate something. πβ¨
π¦ where this page comes from
- arch rolling: texlive-doc 2026.1-1 Β· GPL
- debian bookworm: texlive-extra-utils 2022.20230122-4
- debian trixie: texlive-extra-utils 2024.20250309-2
- fedora 43: texlive-findhyph 11:svn47444-93.fc43 Β· GPL-1.0-or-later
- fedora 43: texlive-findhyph 11:svn47444-95.fc43.1 Β· GPL-1.0-or-later
- fedora 44: texlive-findhyph 12:svn47444-105.fc44 Β· GPL-1.0-or-later
- fedora 44: texlive-findhyph 12:svn47444-111.fc44 Β· GPL-1.0-or-later
- opensuse-leap 16.0: texlive-findhyph-doc 2025.221.3.4svn47444-160000.3.1 Β· GPL-2.0-or-later
- ubuntu jammy: texlive-extra-utils 2021.20220204-1
- ubuntu noble: texlive-extra-utils 2023.20240207-1
- ubuntu questing: texlive-extra-utils 2024.20250309-2
- ubuntu resolute: texlive-extra-utils 2025.20260124-1
- ubuntu stonking: texlive-extra-utils 2026.20260711-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms