Debian Codegraph @

texmf-dist/doc/support/findhyph/findhyph.txt

raw
1 NAME
2 findhyph – find words hyphenated by TeX in a document
3
4 INSTALLATION
5 Copy findhyph or findhyph.bat (depending on OS used) to a directory
6 included in system PATH. Perl interpreter is required to be in
7 "/usr/bin/" for Unix-like systems or in PATH when using findhyph.bat.
8
9 SYNOPSIS
10 findhyph [options] foo.log
11
12 DESCRIPTION
13 To use this program:
14
15 1) set "\tracingparagraphs=1" in a TeX document foo.tex and run:
16
17 2) tex foo.tex
18
19 3) findhyph [options] foo.log
20
21 If you are setting "\looseness=<N>" to optimize paragraphs, you need to
22 pass that information to the file foo.log in a form "@looseness=<N>" (on
23 a separate line). You can use a macro like
24 "\def\setlooseness#1{\looseness=#1 \immediate\write-1{@looseness=#1}}"
25 for this purpose. If the paragraph contains material in display math
26 mode, you need to use the macro in all split parts of the paragraph.
27
28 OPTIONS
29 -c display hyphenated words in context
30
31 -f display font selectors and other strings starting with a backslash
32 character
33
34 -v display program version
35
36 -p generate file containing information about one-letter prepositions
37 and conjunctions left at the end of line
38
39 -l=STRING
40 use prepositions/conjunctions listed in STRING instead of default
41 list of prepositions and conjunctions "kKsSvVzZoOuUiIA" used for
42 Slovak and Czech language
43
44 OUTPUT FILES
45 foo.hyph
46 List of hyphenated words. All punctuation characters, parentheses
47 and other character immediately preceding or following displayed
48 words are included in this list. TeX constructs which are too
49 difficult to display ("\hbox{}", "\mark{}" etc.) are shown as "[]".
50 Math mode is indicated by "$" sign.
51
52 Page numbers in square brackets refer to LOG file and may
53 occasionally differ from the typeset document. The reason is that
54 TeX may need to break more paragraphs than it would eventually fit
55 on the page in order to find a page break.
56
57 Words hyphenated in footnotes are listed before the words hyphenated
58 in the paragraph in which the footnote is referenced.
59
60 foo.prep
61 List of prepositions if option -p is used.
62
63 HISTORY
64 1.0 (2001-04-08)
65 * public release
66
67 2.0 (2009-08-10)
68 * fixes in line breaks detection algorithm; support for the third pass
69 of line breaking algorithm in TeX (positive "\emergencystretch");
70 support for discretionary breaks in the first pass
71
72 * page number detection improved (recognized negative page numbers,
73 compound page numbers when "\count1" to "\count9" registers are
74 non-zero and "[nn{mapfile}]", "[nn<picture>]" and "[nn<newline>"
75 formats used by pdfTeX; false page number detection should be much
76 more rare)
77
78 * configurable list of prepositions and conjunctions
79
80 * hyphenated words can be displayed in context
81
82 * suggestions and testing by Pavel Stříž
83
84 3.0 (2012-02-01)
85 * fixed a bug when total paragraph demerits are negative
86
87 * "\looseness" setting is now taken into account (thanks to Karel
88 Horák for identifying the issue)
89
90 3.1 (2012-11-03)
91 * fixed displaying of hyphenated ligatures (bug reported by Karel
92 Horák)
93
94 3.2 (2012-11-21)
95 * improved example definition of the "\setlooseness" macro (thanks to
96 Karl Berry)
97
98 3.3 (2013-06-18)
99 * fixed the manual page as suggested by Eric S. Raymond
100
101 3.4 (2015-10-18)
102 * fixed processing of logs produced using ε-TeX's "\lastlinefit"
103 option (bug reported by Karel Horák)
104
105 * fixed cross-platform handling of linebreaks in the input file
106
107 LICENSE
108 This program is free software; you can redistribute it and/or modify it
109 under the terms of the GNU General Public License as published by the
110 Free Software Foundation; either version 2 of the License, or any later
111 version.
112
113 AUTHOR
114 Copyright (c) Martin Budaj <[email protected]> 2000, 2001, 2009, 2012, 2015
115