继该线程结束,然后看的changelog为7.7(见Headline for version 7.7)发布我发现,他们增加了一个变量org-latex-export-quotes
,我不能完全肯定这将如何必须定制,但我怀疑它将不得不结束如下:
原来的(包括,因为它只出现在7.7和我相信你正在运行7.6):
(defcustom org-export-latex-quotes
'(("fr" ("\\(\\s-\\|[[(]\\)\"" . "«~") ("\\(\\S-\\)\"" . "~»") ("\\(\\s-\\|(\\)'" . "'"))
("en" ("\\(\\s-\\|[[(]\\)\"" . "``") ("\\(\\S-\\)\"" . "''") ("\\(\\s-\\|(\\)'" . "`")))
"Alist for quotes to use when converting english double-quotes.
The CAR of each item in this alist is the language code.
The CDR of each item in this alist is a list of three CONS:
- the first CONS defines the opening quote;
- the second CONS defines the closing quote;
- the last CONS defines single quotes.
For each item in a CONS, the first string is a regexp
for allowed characters before/after the quote, the second
string defines the replacement string for this quote."
要:
(setq org-export-latex-quotes
'(("en" ("\\(\\s-\\|[[(]\\)\"" . "\\enquote{") ("\\(\\S-\\)\"" . "}") ("\\(\\s-\\|(\\)'" . "`"))))
我只是测试这一点,它不会达到预期效果。示例文件:
* test
this is a test of "this"
出口为(序言略):
\section{test}
\label{sec-1}
this is a test of \enquote{this}
我不知道是否有可能轻松在7.6添加此功能,简单的解决方案很可能会升级。否则,7.6中更简单的解决方案可能是创建自定义链接(请参阅:Org Tutorials)。这不会像7.6所提供的功能一样快,但能够提供所需的结果。
很高兴它在新版本中实现。我对elisp不太好,所以我可以确定[diff](http://orgmode.org/w/?p=org-mode)。GIT中; A = blobdiff; F =口齿不清/ ORG-latex.el; H = 34ceca9041732ec47d5947d50c61a928420dc8f5; HP = e1c85ce581a3a5093eb3b419cf4364671b6d2388; HB = 2b9afb9e63d2fd60a3bb09e33c9d4abb01586339; HPB = 9fc6daa3d28cb1dcec87fcd769997b8f121e286c)可以被反向移植到7.6容易。 – 2012-02-01 19:46:19
也许解决方案是安装'emacs-snapshot'?它会给你emacs 24预测(这是稳定的),以及碰到高达7.8的组织。 (请参阅:http://www.mikeyboldt.com/2011/11/30/install-emacs-24-in-ubuntu/)简单过程 – 2012-02-01 20:27:05
是否可以扩展此解决方案以导出“test”为'\ enquote * {}测试'? – 2012-04-30 08:21:12