Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

If I'm not wrong, in French the em-dashes, typeset with --- in LaTeX, are usually treated like the guillemets as far as non-breaking spaces go. An "opening" em-dash must be followed by a non-breaking space, while a "closing" em-dash must be preceded by a non-breaking space.

[french]{babel} doesn't apply this rule, so I ended up making my own macros:


Is there a better way to ensure these non-breaking spaces?


Here is a minimal example to justify the use of \mbox:



Dieu se sert des epreuves pour nous montrer nos c\oe{}urs,
 afin de pouvoir nous purifier et nous faire ensuite entrer
 dans le pays de la benediction ---~physiquement et spirituellement.


which produces:

em bad newline

Whereas with \mbox around the ---~, I get:

em good newline


I kept the \textsc because it's a case that I know produces this effect with the given size of the \parbox.

share|improve this question
I suspect that 'cadratin' is a French term: looks like an em-dash to me. –  Joseph Wright Apr 19 '11 at 14:27
Right, that'll be clearer, thanks. –  ℝaphink Apr 19 '11 at 14:35
I was always understood that in french typography it is space, en dash, space (i.e, em dash is not normally used). –  Yiannis Lazarides Apr 19 '11 at 15:39
@Yiannis: according to Wikipedia (fr.wikipedia.org/wiki/Tiret#Tiret_long, in French), em dash has to be used, but en dash is sometimes preferred (although the source for that is missing in the article). –  ℝaphink Apr 19 '11 at 15:47
OK, I see where the break is coming from. I've updated my answer: I would keep only the necessary material inside a box. –  Joseph Wright Apr 19 '11 at 17:14
add comment

1 Answer

up vote 10 down vote accepted

I see that the \mbox is needed as the ligature inserts a \discretionary. However, I'd keep the space out of the box if I were you. So


using the primitives \unskip to avoid any additional space (the opening macro should skip spaces in any case) and the \mbox to prevent a break after the opening material would seem best.

share|improve this answer
I added an \mboxbecause I had a case were a newline was added right after the em in spite of the non-breaking space. –  ℝaphink Apr 19 '11 at 14:43
@Raphink: I think a minimal example might be useful here. –  Joseph Wright Apr 19 '11 at 15:53
@Joseph: Added a minimal example. –  ℝaphink Apr 19 '11 at 16:19
@Joseph: groups.google.com/group/comp.text.tex/browse_thread/thread/… mentions the newline issue. –  ℝaphink Apr 19 '11 at 16:40
@Raphink: In that case, use \mbox{---}\nobreak\,\nobreak to ensure that the em-dash sticks to the following material. –  Joseph Wright Apr 19 '11 at 18:16
show 2 more comments

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.