Text FormattingHyphenation of quoted words

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Laurentius
Posts: 132
Joined: Wed Feb 11, 2009 11:38 pm

Hyphenation of quoted words

Post by Laurentius »

Redefining quotation marks so they come with traditional spacing ruins hyphenation:

Code: Select all

\documentclass{article}
\usepackage{fontspec}

\hyphenation{re-aliza-tion}

\begin{document}
or ontification, in which being and mode come together, is the crucial ‘realization’ that seems to follow from Aristotle's definition.

or ontification, in which being and mode come together, is the crucial ‘re\-aliza\-tion’ that seems to follow from Aristotle's definition.

\newcount\c
\catcode`‘=\active
\def‘{\string‘\kern 1pt}
\catcode`’=\active
\def’{\c=\spacefactor\kern 1pt\string’\spacefactor=\c}

% the redefined quotation marks ruin hyphenation:

or ontification, in which being and mode come together, is the crucial ‘realization’ that seems to follow from Aristotle's definition.

or ontification, in which being and mode come together, is the crucial ‘re\-aliza\-tion’ that seems to follow from Aristotle's definition.
\end{document}
What to do? Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply