XeTeXLine breaks after dashes

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
jpeyton
Posts: 9
Joined: Thu Aug 20, 2009 9:43 pm

Line breaks after dashes

Post by jpeyton »

I use XeLaTeX, and so I type in my quotes and dashes directly (i.e. I type “ and ”, not `` and '', and I type —, not ---). As I understand it, Unicode input is the proper way to do things, and it makes the source code cleaner.

However, my dashes will not break at the end of a line, meaning I need to use [draft] and manually add the line breaks.

Instead I’d like a line break to be possible either before or after the dash. However, sometimes dashes end a sentence, for example in dialogue:

Code: Select all

“Really? I don’t—”
In this case I would not want a line break either before or after the dash.

Any ideas?

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