Browse Source

LaTeX export: Protect \vspace macro in verse environment

Carsten Dominik 15 years ago
parent
commit
1632951b97
2 changed files with 6 additions and 1 deletions
  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 "\\\\")))