logoalt Hacker News

dasyatidprimetoday at 6:15 AM2 repliesview on HN

TeX uses -- (double hyphen) for producing an en dash and --- (triple hyphen) for an em dash, and that's pretty darn longstanding and well-established. And FWIW, the English writing conventions that I learned use em dashes as punctuation without an adjoining space—like this—but allow en dashes surrounded by spaces as an alternative – like this – so I frequently see spaced double hyphen used as the ASCII equivalent of dash punctuation and interpret it as the latter. I've never personally heard of double hyphen for em specifically, only either as en specifically or as a sort of ambiguous whatever-dash.


Replies

Izkatatoday at 12:38 PM

LibreOffice is the same, double hyphen is en-dash and to get an em-dash you have to type:

  :---:
I thought this was part of why it became an LLM signifier, most people can't tell the difference between the two visually and as far as I knew en-dash is what you usually get by accident, while LLMs use em-dash.
chowellstoday at 6:38 AM

Double dash -> emdash is a default autoreplacement in OSX. That's why a lot of people think it's the default everywhere.