问题
How do I get Emacs org-mode to create proper typographic marks when I export to HTML, including converting straight quotes to smart quotes ("curly quotes") and converting hyphens ---
to m-dashes —
?
回答1:
#+LANGUAGE: de
#+OPTIONS: ':t
also does the right thing now
回答2:
This is only available in very recent versions of org-mode. If you are not already running the latest git version see http://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development for instructions on upgrading. Then (setq org-export-with-smart-quotes t)
will do what you want with quotes, and m-dashes will also be exported correctly.
回答3:
This is now built into org-mode 8.x. To activate it, add the following to your Emacs configuration file:
(setq org-export-with-smart-quotes t)
It works for single quotes, double quotes, and apostrophes.
Source: @Ista
回答4:
A way to insure that smart quotes are entered in your org file is to insert the code at the following url into your init.el file. Then type M-x smart-quotes-mode and your all set.
https://github.com/gareth-rees/smart-quotes/blob/master/smart-quotes.el
MNH
来源:https://stackoverflow.com/questions/15097114/how-to-get-smart-quotes-on-org-mode-export