Anonymous 1499
With \hyphenation I can give custom hyphenation patterns for a document. But what happens if I have a preamble with multiple calls, like this:


\hyphenation{pat-tern}
\hyphenation{hy-phe-na-tion}


Would both pat-tern and hy-phe-na-tion be added to the custom hyphenations?

Also, in case of conflicting assignments, e.g.


\hyphenation{hy-phe-na-tion}
\hyphenation{hyphe-nation}


will the last one win, or the first?

samcarter
You can use \showhyphens to check this yourself. With the following code:


\documentclass{article}

% the following hyphenation points are deliberately wrong to show the change compared to the default patterns
\hyphenation{patt-ern}
\hyphenation{hy-phena-tion}
\hyphenation{hyphe-nation}

\begin{document}

test

\showhyphens{pattern}
\showhyphens{hyphenation}

\end{document}


you can find the patterns in the log file:


Underfull \hbox (badness 10000) in paragraph at lines 11--11
[] \OT1/cmr/m/n/10 patt-ern

\hbox(6.15079+1.94444)x16383.99998, glue set 9800.10976 []

Underfull \hbox (badness 10000) in paragraph at lines 12--12
[] \OT1/cmr/m/n/10 hyphe-nation

\hbox(6.94444+1.94444)x16383.99998, glue set 9787.12631 []




Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.