繼該線程結束,然後看的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