[OS X TeX] typing em dash (---)
Ross Moore
ross.moore at mq.edu.au
Mon Sep 16 20:54:45 EDT 2013
Hi Herb,
On 17/09/2013, at 10:27 AM, Herbert Schulz wrote:
>
> Huh? What you sent has --- rather than an em-dash. This is automatically translated to an em-dash in the output.
No. Did you see the image that I sent?
The character that shows in the mailer as '‹' *is*
actually an endash in some encoding.
It shows that way when looking inside the .tex file
that was attached.
As to why it changes to something else in the mailer
is one of those cosmic-ray like mysteries.
Perhaps we are seeing just 1 byte of a multibyte sequence?
In any case, this is a very good reason to *not* include
such characters directly into (La)TeX source.
You just cannot trust what will result when sending to
someone else, unless you use pure ASCII.
>
> If you wish to actually insert an em-dash, – (actually this is an en-dash since the font doesn't have an em-dash), into the source document itself you'll have to save the document in something other than pure ASCII and then let LaTeX ``know'' what encoding you are using; e.g. saving as UTF-8 Unicode in TeXShop:
>
> %%!TEX TS-program = pdflatex
> %%!TEX encoding = UTF-8 Unicode
> \documentclass[12pt]{article}
> \usepackage[utf8]{inputenc}
> \usepackage[T1]{fontenc}
> \begin{document}
> ad ‹ asdas --- as asd and then — .
> \end{document}
>
> The files are attached:
>
> <test.tex><test.pdf>
>
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest dot com)
Cheers
Ross
------------------------------------------------------------------------
Ross Moore ross.moore at mq.edu.au
Mathematics Department office: E7A-206
Macquarie University tel: +61 (0)2 9850 8955
Sydney, Australia 2109 fax: +61 (0)2 9850 8114
------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo.png
Type: image/png
Size: 5257 bytes
Desc: not available
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20130917/affd7b71/attachment.png>
-------------- next part --------------
More information about the MacOSX-TeX
mailing list