3

I have to edit a text (actually a diary) where the line quite often ends with: .– (point and dash) eg.

"Last night I took the subway.–"

LaTeX does not break the word "subway" if it's at the end of the line.

From this how to get latex to hyphenate a word that contains a dash? i understand that the package hyphenat might be of some help, but I don't understand the manual.

Is there a way to tell LaTeX to regard ".–" just as it would do with ", !, ?, ., ;" etc.?

1 Answer 1

5

You could use a command called (say) \dotdash defined by

\def\dotdash{\nobreak\hspace{0pt}.--}
3
  • It works, thank you! I have to write {\dotdash} though so that the following space does not get erased, but that's usual TeX-behaviour. Jan 14, 2016 at 14:59
  • @MartinMueller If (as seems likely) you always have white space after, you could add a space after the -- in the definition. Jan 14, 2016 at 15:00
  • I know, i was contemplating that and probably it makes more sense than what I added. Jan 14, 2016 at 15:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .