org-latex.el: Fix problem when matching #+LaTeX_CLASS.

* org-latex.el: (org-export-latex-set-initial-vars): Fix problem when
  matching #+LaTeX_CLASS.

Thanks to Torsten Wagner for spotting this.
This commit is contained in:
Bastien Guerry 2011-10-22 12:07:43 +02:00
parent 3133b92fec
commit 28e5997b26
1 changed files with 1 additions and 1 deletions

View File

@ -1344,7 +1344,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)