While investigating problems with hyphenation and em-dashes, I came across this:
a piece---perhaps an installation---, involving structural feedback
The document class is
article. The problem was that
installation was not hyphenated, and an overfull line was produced, with
installation--- moving over the right margin, and the next line beginning with the comma.
Now I happened to try this, and it fixed the problem:
a piece---perhaps an installation\textemdash, involving structural feedback
properly breaking the line such as
...instal- lation---, involving...
This seems counter-intuitive to me, and I really prefer to see the triple hyphens in my source code, much more readable. Is there a way to fix this problem?
It looks clearly like a latex error to me, because standard usage of em-dash states: "According to most American sources [...] and some British sources [...], an em dash should always be set closed, meaning it should not be surrounded by spaces."