6

I am converting HTML markup into LaTeX markup by using sed command. I need to convert — into its corresponding LaTeX markup. How can I implement it?

— into LaTeX markup

2 Answers 2

9

You convert the em dash by using three dashes in a row in the LaTeX file: ---

Actually, this depends on the font, but for all practical cases, this will work.

0
7

\textemdash - or, if you have a recent UTF-8 capable TeX engine, you can insert the UTF-8 character. See Wikipedia. Note that the command will gobble a trailing space unless you add a {} to it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .