From ff3855027811bae0bc071fc9989952b5a6dd5f2a Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Fri, 23 Apr 2010 20:57:47 +0200 Subject: [PATCH] Allow a dash in the name of a latex document class setup. A line like #+LATEX_CLASS: auto-report will now work. Report by Nicolas Girad. --- lisp/ChangeLog | 3 +++ lisp/org-latex.el | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1a53d439c..9087453ed 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-04-23 Carsten Dominik + * org-latex.el (org-export-latex-set-initial-vars): Allow "-" + in latex class definitions + * org.el (org-shiftup-hook, org-shiftdown-hook) (org-shiftleft-hook, org-shiftright-hook): New hooks. diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 67d974570..8e3cd7fee 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1086,7 +1086,7 @@ LEVEL indicates the default depth for export." (save-restriction (widen) (goto-char (point-min)) - (and (re-search-forward "^#\\+LaTeX_CLASS:[ \t]*\\([a-zA-Z]+\\)" nil t) + (and (re-search-forward "^#\\+LaTeX_CLASS:[ \t]*\\(-[a-zA-Z]+\\)" nil t) (match-string 1)))) (plist-get org-export-latex-options-plist :latex-class) org-export-latex-default-class)