浏览代码

The text of a radio target must sill be processed in LaTeX export

Carsten Dominik 15 年之前
父节点
当前提交
aadd7399e1
共有 2 个文件被更改,包括 11 次插入4 次删除
  1. 5 0
      lisp/ChangeLog
  2. 6 4
      lisp/org-latex.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2009-12-24  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-latex.el (org-export-latex-preprocess): Do process the text
+	of a radio target.
+
 2009-12-20  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org.el (org-entry-properties): Add TIMESTAMP properties back

+ 6 - 4
lisp/org-latex.el

@@ -1924,10 +1924,12 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
 		  ">>>?\\((INVISIBLE)\\)?") nil t)
     (org-if-unprotected-at (+ (match-beginning 0) 2)
      (replace-match
-      (org-export-latex-protect-string
-       (format "\\label{%s}%s" (save-match-data (org-solidify-link-text
-						 (match-string 1)))
-	       (if (match-string 2) "" (match-string 1)))) t t)))
+      (concat
+       (org-export-latex-protect-string
+	(format "\\label{%s}" (save-match-data (org-solidify-link-text
+						(match-string 1)))))
+       (if (match-string 2) "" (match-string 1)))
+      t t)))
 
   ;; Delete @<...> constructs
   ;; Thanks to Daniel Clemente for this regexp