mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-24 14:02:51 +00:00
LaTeX export: Protect \vspace macro in verse environment
This commit is contained in:
parent
ab3cb9c8fd
commit
1632951b97
|
@ -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>
|
2009-10-20 John Wiegley <jwiegley@gmail.com>
|
||||||
|
|
||||||
* org-habit.el (org-habit-get-priority): A new function that
|
* org-habit.el (org-habit-get-priority): A new function that
|
||||||
|
|
|
@ -1728,7 +1728,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
|
||||||
(concat "\\hspace*{1cm}" (match-string 2))) t t)
|
(concat "\\hspace*{1cm}" (match-string 2))) t t)
|
||||||
(beginning-of-line 1))
|
(beginning-of-line 1))
|
||||||
(if (looking-at "[ \t]*$")
|
(if (looking-at "[ \t]*$")
|
||||||
(insert "\\vspace*{1em}")
|
(insert (org-export-latex-protect-string "\\vspace*{1em}"))
|
||||||
(unless (looking-at ".*?[^ \t\n].*?\\\\\\\\[ \t]*$")
|
(unless (looking-at ".*?[^ \t\n].*?\\\\\\\\[ \t]*$")
|
||||||
(end-of-line 1)
|
(end-of-line 1)
|
||||||
(insert "\\\\")))
|
(insert "\\\\")))
|
||||||
|
|
Loading…
Reference in a new issue