[OS X TeX] typing em dash (---)

Ross Moore ross.moore at mq.edu.au
Mon Sep 16 08:10:56 CEST 2013

Hello Nicolae,

On 16/09/2013, at 13:53, Nicolae Garleanu <garleanu at haas.berkeley.edu> wrote:

> Hi,
> I am running TexShop 3.11 on 10.8.4, as well as on a possibly earlier version, installed on 10.7.x. In the more recent version of the OS (it is my guess that  the OS is the responsible party, rather than TS, although it does not show up in this — Ooutlook —email, where it is two dashes that are replaced with a long dash), whenever I type `---' to get an em dash it ends up being replaced with a long dash (roughly like this: —) in the tex file, which results in a blank space in the pdf output. If I go back and change to the three dashes again, then type elsewhere, it's OK, but obviously wastes time and requires paying attention.

Using  --  for an endash, and  ---  for an emdash, is the traditionally correct way to do this.
But it does depend upon the font that you're using, and whether you have loaded the packages appropriate for that font.

Hence for anyone on this list to attempt find the correct answer to your question,
you need to provide a complete example that is failing for you.
We need to see both the output PDF as well as the coding that produces it.

> My question is how I can ensure I get the long dash in the output. The simplest, for me, would be if I could change some setting so that the editor leaves the three - alone. I know that I can use the tex command \textemdash, which I can presumably bind to some key, but do I need to do that?
> Thank you.
> Nicolae

Hope this helps,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20130916/e6ec22cc/attachment.html>

More information about the macostex-archives mailing list