Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

hyphenation

7 views
Skip to first unread message

Phillip Helbig (undress to reply)

unread,
Feb 3, 2021, 10:28:48 AM2/3/21
to
When I notice that something has not been hyphenated properly, I include
a corresponding hyphenation command (or, rather, add it to an already
existing one) in some personal macros which I almost always \input.
Sometimes, what LaTeX does is formally correct, but I would like to have
another hyphenation to avoid an overfull hbox, BUT ONLY WHEN THAT
HYPHENATION SERVES THAT PURPOSE. In other words, never use my custom
hyphenation unless othewise an overfull hbox would occur, but rather use
the default.

Is that possible?

Holger Schieferdecker

unread,
Feb 3, 2021, 11:02:39 AM2/3/21
to
You can use a specific hyphenation with \- at a certain location of the
word in the document. That will override the hyphenation pattern defined
in your \hyphenation command.

Or do you want an algorithm inside LaTeX to decide which hyphenation it
should use?

Holger

%%% Example %%%
\documentclass{article}

\hyphenation{Donaudampf-schiffahrts-gesell-schaft}

\begin{document}
Ulm Ulm Ulm Ulm Ulm Ulm Donaudampfschiffahrtsgesellschaft
Donaudampfschiffahrtsgesellschaft

Ulm Ulm Ulm Ulm Ulm Ulm Donaudampfschiffahrtsgesellschaft
Donau\-dampfschiffahrtsgesellschaft

\end{document}

Phillip Helbig (undress to reply)

unread,
Feb 3, 2021, 12:07:51 PM2/3/21
to
In article <rveh5f...@news.in-ulm.de>, Holger Schieferdecker
<spam...@gmx.de> writes:

> Am 03.02.2021 um 16:28 schrieb Phillip Helbig (undress to reply):
> > When I notice that something has not been hyphenated properly, I include
> > a corresponding hyphenation command (or, rather, add it to an already
> > existing one) in some personal macros which I almost always \input.
> > Sometimes, what LaTeX does is formally correct, but I would like to have
> > another hyphenation to avoid an overfull hbox, BUT ONLY WHEN THAT
> > HYPHENATION SERVES THAT PURPOSE. In other words, never use my custom
> > hyphenation unless othewise an overfull hbox would occur, but rather use
> > the default.
> >
> > Is that possible?
>
> You can use a specific hyphenation with \- at a certain location of the
> word in the document. That will override the hyphenation pattern defined
> in your \hyphenation command.

Right. But the goal is that, since it happened once, it might happen
again, so I would rather add one hyphenation command to the macros than
one to the text whenever I notice it.

> Or do you want an algorithm inside LaTeX to decide which hyphenation it
> should use?

Right.

> \hyphenation{Donaudampf-schiffahrts-gesell-schaft}

Donaudampfschifffahrtsgesellschaftskapitänslebensversicherungskaufmannsarbeitsplatzsuchender. :-)

According to the new orthography, fff is better. According to the old
orthography, one of three consecutive consonants should be dropped if
followed by a vowel (as above).

0 new messages