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

时间:2013-02-26 18:57:41

标签: emacs org-mode typography smart-quotes smartypants

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

4 个答案:

答案 0 :(得分:13)

#+LANGUAGE: de
#+OPTIONS: ':t

现在也做对了

答案 1 :(得分: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。

答案 2 :(得分:5)

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

(setq org-export-with-smart-quotes t)

适用于单引号,双引号和撇号。

资料来源:@Ista

答案 3 :(得分:-2)

确保在组织文件中输入智能引号的方法是将以下URL中的代码插入到init.el文件中。然后输入M-x smart-quotes-mode和你的全部设置。

https://github.com/gareth-rees/smart-quotes/blob/master/smart-quotes.el

MNH

相关问题