ox-latex: Fix nested sub/super-scripts
* lisp/ox-latex.el (org-latex--wrap-latex-math-block): Prevent merging multiple sub/super-scripts at the same level. Nested scripts are allowed.
This commit is contained in:
parent
f747ee43bd
commit
e491ab31c6
|
@ -2707,7 +2707,8 @@ containing export options. Modify DATA by side-effect and return it."
|
||||||
(or (string-prefix-p "\\(" value)
|
(or (string-prefix-p "\\(" value)
|
||||||
(string-match-p "\\`\\$[^$]" value))))
|
(string-match-p "\\`\\$[^$]" value))))
|
||||||
((and type (or `subscript `superscript))
|
((and type (or `subscript `superscript))
|
||||||
(not (org-element-map b type #'identity info t)))))))
|
(not (memq type (mapcar #'org-element-type
|
||||||
|
(org-element-contents b)))))))))
|
||||||
(org-element-map data '(entity latex-fragment subscript superscript)
|
(org-element-map data '(entity latex-fragment subscript superscript)
|
||||||
(lambda (object)
|
(lambda (object)
|
||||||
;; Skip objects already wrapped.
|
;; Skip objects already wrapped.
|
||||||
|
|
Loading…
Reference in New Issue