LaTeX export: Allow multiple arguments to LaTeX macros

This commit is contained in:
Carsten Dominik 2009-12-09 22:44:39 +01:00
parent 0ad032380e
commit 9f4d3e8016
2 changed files with 4 additions and 1 deletions

View file

@ -4,6 +4,8 @@
(org-export-latex-fontify): Fix regexp bug that takes special (org-export-latex-fontify): Fix regexp bug that takes special
care of protecting the right boundary characters in emphasis care of protecting the right boundary characters in emphasis
matches. matches.
(org-export-latex-preprocess): Allow multiple arguments to latex
macros.
* org.el (org-make-link-regexps): Use John Gruber's regexp for * org.el (org-make-link-regexps): Use John Gruber's regexp for
urls. urls.

View file

@ -1795,7 +1795,8 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
(let ((re (concat "\\\\[a-zA-Z]+\\(?:" (let ((re (concat "\\\\[a-zA-Z]+\\(?:"
"\\[.*\\]" "\\[.*\\]"
"\\)?" "\\)?"
(org-create-multibrace-regexp "{" "}" 3)))) "\\(" (org-create-multibrace-regexp "{" "}" 3)
"\\)\\{1,3\\}")))
(while (re-search-forward re nil t) (while (re-search-forward re nil t)
(unless (save-excursion (goto-char (match-beginning 0)) (unless (save-excursion (goto-char (match-beginning 0))
(equal (char-after (point-at-bol)) ?#)) (equal (char-after (point-at-bol)) ?#))