org-latex.el: Allow "/" character in the #+LaTeX_CLASS option.

* org-latex.el (org-export-latex-set-initial-vars): Allow "/"
character in the #+LaTeX_CLASS option.

Thanks to Richard Lewis for a request about this.
This commit is contained in:
Bastien Guerry 2011-10-29 14:43:52 +02:00
parent b2408c0096
commit 25bd31ae36

View file

@ -1346,7 +1346,7 @@ LEVEL indicates the default depth for export."
(save-restriction (save-restriction
(widen) (widen)
(goto-char (point-min)) (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)))) (match-string 1))))
(plist-get org-export-latex-options-plist :latex-class) (plist-get org-export-latex-options-plist :latex-class)
org-export-latex-default-class) org-export-latex-default-class)