From afc2b20a2e5ad61c2445654d0f534016d4d122e4 Mon Sep 17 00:00:00 2001 From: tj Date: Fri, 29 Aug 2014 12:47:34 +0200 Subject: [PATCH] Fix getting latex documentclass. --- outshine.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/outshine.el b/outshine.el index 8b42b9a..d8a77c4 100644 --- a/outshine.el +++ b/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))))))))