how to get smart quotes on org-mode export?

牧云@^-^@ 提交于 2019-12-12 08:37:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!