CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/fixltxhyph

README
FixLtxHyph v.0.5 2024-12-01


FixLtxHyph.sty is a small extension that allows to 
"correct" a small glitch in hyphenating "words" that
are partially emphasised.
This happens very frequently in languages such as 
Catalan, French, Italian, Romansh, Friulan,  and 
other ones where articles and articulated 
preposition undergo vocalic elision before a word 
that starts with a vowel: example "della eleganza" 
becomes "dell'eleganza" after vocalic elision.
Now if "eleganza" is emphasised as in 
"dell'\emph{eleganza}" the literal string that TeX 
sees as a word includes the apostrophe, and this is 
fine in those languages where the apostrophe is set 
up for proper hyphenation, but it also includes a 
font change; therefore TeX does not hyphenate the
whole string, while it has no problems when 
hyphenating the same word without emphasis: 
"del-l'e-le-gan-za".

This small package works fine with pdfLaTeX, 
XeLaTeX, and LuaLaTeX; it has been tested with the 
five languages listed above. Nevertheless it does not any harm if used with any language; the emphasised words just hyphenated as any other word.


The single FixLtxHyph.dtx file is auto extracting; 
if you process it with pdfLaTeX you get both the 
documentation file in PDF format and the .sty file.

After extraction move the files, as usual, in the 
three homonymous folders latex/fixltxhtph/ rooted 
in source/, doc/, and tex/ respectively.

Claudio Beccari 2024

Author maintained
claudio dot beccari at gmail dot com

Download the contents of this package in one zip archive (415.5k).

fixltxhyph – Allow hyphenation of partially-emphasised substrings

The package fixes the problem of failing to hyphenate letter strings that seem (to ) to be words, but which are followed by an apostrophe and then an emphasis command. The cause of the problem is not the apostrophe, but the font change in the middle of the string.

The problem arises in Catalan, French, Italian and Romansh.

Packagefixltxhyph
Version0.5
LicensesThe Project Public License 1.3c
Copyright2011–2024 Claudio Beccari
MaintainerClaudio Beccari
Contained inTeX Live as fixltxhyph
MiKTeX as fixltxhyph
TopicsFrench
Catalan
Italian
...
Guest Book Sitemap Contact Contact Author