LaTeX export: Protect \vspace macro in verse environment

This commit is contained in:
Carsten Dominik 2009-10-21 10:36:42 +02:00
parent ab3cb9c8fd
commit 1632951b97
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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 "\\\\")))