diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2010-08-19 23:17:24 +0200 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2010-08-19 23:17:24 +0200 |
commit | 034dbac3eecdd67c83407f55cd920d3720400055 (patch) | |
tree | a3a9920b50c9afb0c51427bb8010b38e55be6cff | |
parent | 72a4aeebd3e2eb93c58c19b02b29842cdcdf135d (diff) | |
download | org-mode-034dbac3eecdd67c83407f55cd920d3720400055.tar.gz |
Search for LaTeX setup case-insensitively
* lisp/org-latex.el (org-export-latex-set-initial-vars): Bind
`case-fold-search' to t around the search for special LaTeX setup.
* lisp/org-beamer.el (org-beamer-after-initial-vars): Bind
`case-fold-search' to t around the search for special BEAMER setup.
-rw-r--r-- | lisp/org-beamer.el | 8 | ||||
-rw-r--r-- | lisp/org-latex.el | 10 |
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/org-beamer.el b/lisp/org-beamer.el index 2631e70..ea3a3f9 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 4f27f42..b587666 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)) |