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)
现在也做对了
这仅适用于最新版本的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.
现在它已内置到org-mode 8.x中.要激活它,请将以下内容添加到Emacs配置文件中:
(setq org-export-with-smart-quotes t)
Run Code Online (Sandbox Code Playgroud)
它适用于单引号,双引号和撇号.
资料来源:@Ista