From 6a15c45544f8abef891471d892aa0945f7f6af1e Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Wed, 3 Feb 2010 16:13:49 +0100 Subject: [PATCH] Use \providecommand to make sure \alert is defined --- lisp/ChangeLog | 3 +++ lisp/org-latex.el | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8801a441a..e4806cf4d 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-02-03 Carsten Dominik + * org-latex.el (org-export-latex-make-header): Use \providecommand + to make sure the \alert macro is defined. + * org.el (org-format-latex-signal-error) (org-create-formula-image): Use `org-format-latex-signal-error'. diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 8760ed433..ecf9b67b8 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1147,7 +1147,7 @@ OPT-PLIST is the options plist for current buffer." (plist-get opt-plist :latex-header-extra)) (org-export-apply-macros-in-string org-export-latex-append-header) ;; define align if not yet defined - "\\ifx\\alert\\undefined\\let\\alert\\textbf\\fi" + "\\providecommand{\\alert}[1]{\\textbf{#1}}" ;; insert the title (format "\n\n\\title{%s}\n"