如何获得org-mode导出的智能报价?

inc*_*man 9 emacs typography smart-quotes org-mode smartypants

当我导出到HTML时,如何让Emacs组织模式创建正确的印刷标记,包括将直引号转换为智能引号("引号")并将连字符转换---为m-dashes

Eri*_*rth 15

#+LANGUAGE: de
#+OPTIONS: ':t
Run Code Online (Sandbox Code Playgroud)

现在也做对了

  • 谢谢!当然这也适用于`#+ LANGUAGE:en` (3认同)

Ist*_*sta 7

这仅适用于最新版本的org-mode.如果您尚未运行最新的git版本,请参阅http://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development以获取有关升级的说明.然后(setq org-export-with-smart-quotes t)将使用引号执行您想要的操作,并且还将正确导出m-dashes.


inc*_*man 7

现在它已内置到org-mode 8.x中.要激活它,请将以下内容添加到Emacs配置文件中:

(setq org-export-with-smart-quotes t)
Run Code Online (Sandbox Code Playgroud)

它适用于单引号,双引号和撇号.

资料来源:@Ista