A line like #+LATEX_CLASS: auto-report will now work. Report by Nicolas Girad.
@@ -1,5 +1,8 @@
2010-04-23 Carsten Dominik <carsten.dominik@gmail.com>
+ * 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.
@@ -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)