Fix getting latex documentclass.

master
tj 12 years ago
parent 52518906fb
commit afc2b20a2e
  1. 4
      outshine.el

@ -251,7 +251,7 @@ Used to override any major-mode specific file-local settings")
A comment subtree does not open during visibility cycling.")
(defconst outshine-latex-documentclass-regexp
"^[[:space:]]*\\\\documentclass\\(\\[.+]\\){0,1}{\\(.+\\)}"
"^[[:space:]]*\\\\documentclass\\(?:\\[.+]\\)?{\\(.+\\)}"
"Regexp matching the document class in a latex doc (in submatch
1)")
@ -1546,7 +1546,7 @@ latex-mode) and just use it."
(save-restriction
(widen)
(goto-char (point-min))
(re-search-forward navi-latex-documentclass-regexp
(re-search-forward outshine-latex-documentclass-regexp
nil 'NOERROR 1)
(org-no-properties (match-string 1))))))))

Loading…
Cancel
Save