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).