diff --git a/lisp/org-beamer.el b/lisp/org-beamer.el index 2631e7065..ea3a3f9ce 100644 --- a/lisp/org-beamer.el +++ b/lisp/org-beamer.el @@ -438,8 +438,10 @@ The effect is that these values will be accessible during export." (save-restriction (widen) (goto-char (point-min)) - (and (re-search-forward - "^#\\+BEAMER_FRAME_LEVEL:[ \t]*\\(.*?\\)[ \t]*$" nil t) + (and (let ((case-fold-search t)) + (re-search-forward + "^#\\+BEAMER_FRAME_LEVEL:[ \t]*\\(.*?\\)[ \t]*$" + nil t)) (match-string 1)))) (plist-get org-export-latex-options-plist :beamer-frame-level) org-beamer-frame-level)) @@ -461,7 +463,7 @@ The effect is that these values will be accessible during export." (save-excursion (save-restriction (widen) - (let ((txt "")) + (let ((txt "") (case-fold-search t)) (goto-char (point-min)) (while (re-search-forward "^#\\+BEAMER_HEADER_EXTRA:[ \t]*\\(.*?\\)[ \t]*$" diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 4f27f425a..b58766689 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1124,7 +1124,9 @@ 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 (let ((case-fold-search t)) + (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) @@ -1138,8 +1140,10 @@ LEVEL indicates the default depth for export." (save-restriction (widen) (goto-char (point-min)) - (and (re-search-forward "^#\\+LaTeX_CLASS_OPTIONS:[ \t]*\\(.*?\\)[ \t]*$" nil t) - (match-string 1)))) + (and (let ((case-fold-search t)) + (re-search-forward + "^#\\+LaTeX_CLASS_OPTIONS:[ \t]*\\(.*?\\)[ \t]*$" nil t) + (match-string 1))))) (plist-get org-export-latex-options-plist :latex-class-options)) org-export-latex-class (or (car (assoc org-export-latex-class org-export-latex-classes))