Browse Source

LaTeX export: Define the align macro

Carsten Dominik 15 years ago
parent
commit
b66858acbb
2 changed files with 5 additions and 0 deletions
  1. 3 0
      lisp/ChangeLog
  2. 2 0
      lisp/org-latex.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2010-02-01  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-latex.el (org-export-latex-make-header): Define the align
+	macro if it is not yet defined.
+
 	* org-agenda.el (org-agenda-insert-diary-make-new-entry): Call
 	`org-insert-heading' with the INVISIBLE-OK argument.
 

+ 2 - 0
lisp/org-latex.el

@@ -1146,6 +1146,8 @@ OPT-PLIST is the options plist for current buffer."
      (org-export-apply-macros-in-string
       (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"
      ;; insert the title
      (format
       "\n\n\\title{%s}\n"