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

Nicolae Garleanu garleanu at haas.berkeley.edu
Mon Sep 16 18:33:37 EDT 2013


Thanks to all who replied. While I had one particular question I mind,
there were actually two in my posting, as follows.

1) How not to have --- be replaced with an em-dash in the source? This was
solved by unchecking smart dashes in

	Edit -> Substitutions -> Show Substitutions


The solution is gratefully acknowledged.

2) Supposing one does have an em-dash in the source, can that translate
into an em-dash in the output? Not in my set-up. For instance, a minimal
example would be as attached (if possible), and pasted below. Output as
expected given my original posting, i.e., first dash becomes a blank
space. I am just running pdflatex in the standard installation.

\documentclass[12pt]{article}
\begin{document}
ad ‹ asdas --- as asd
\end{document}

Nicolae






On 9/16/13 2:40 AM, "Peter Dyballa" <Peter_Dyballa at Web.DE> wrote:

>
>Am 16.09.2013 um 05:53 schrieb Nicolae Garleanu:
>
>> My question is how I can ensure I get the long dash in the output.
>
>Are you using an \usepackage[Š]{inputenc}? Which one? Is TeXShop using
>the same encoding? Are you also using an \usepackage[Š]{fontenc}? Which
>one?
>
>A minimal example could be fineŠ to explain why the emdash vanishes. I
>think since Snow Leopard the System Preferences allow to set up
>substitutions from --- to ‹ or Š to Š etc. I think this can be switched
>off in TeXShop:
>
>	Edit -> Substitutions -> Show Substitutions
>
>--
>Greetings
>
>  Pete
>
>And always remember the last words of my grandfather, who said: ³A truck!²
>				‹ Emo Phillips
>
>
>----------- Please Consult the Following Before Posting -----------
>TeX FAQ: http://www.tex.ac.uk/faq
>List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
>List Archive: http://tug.org/pipermail/macostex-archives/
>TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled.pdf
Type: application/pdf
Size: 8994 bytes
Desc: Untitled.pdf
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20130916/dd29e24f/attachment.pdf>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Untitled.tex
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20130916/dd29e24f/attachment.ksh>


More information about the MacOSX-TeX mailing list