forked from mirrors/org-mode
LaTeX export: Allow multiple arguments to LaTeX macros
This commit is contained in:
parent
0ad032380e
commit
9f4d3e8016
|
@ -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.
|
||||||
|
|
|
@ -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)) ?#))
|
||||||
|
|
Loading…
Reference in a new issue