瀏覽代碼

LaTeX export: Protect \vspace macro in verse environment

Carsten Dominik 15 年之前
父節點
當前提交
1632951b97
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 5 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-latex.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2009-10-21  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-latex.el (org-export-latex-preprocess): Protect the vspace
+	macro in the VERSE environment.
+
 2009-10-20  John Wiegley  <jwiegley@gmail.com>
 
 	* org-habit.el (org-habit-get-priority): A new function that

+ 1 - 1
lisp/org-latex.el

@@ -1728,7 +1728,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
 	  (concat "\\hspace*{1cm}" (match-string 2))) t t)
 	(beginning-of-line 1))
       (if (looking-at "[ \t]*$")
-	  (insert "\\vspace*{1em}")
+	  (insert (org-export-latex-protect-string "\\vspace*{1em}"))
 	(unless (looking-at ".*?[^ \t\n].*?\\\\\\\\[ \t]*$")
 	  (end-of-line 1)
 	  (insert "\\\\")))