Thanks Christian --- lisp/org-export-latex.el | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/org-export-latex.el b/lisp/org-export-latex.el index daa75dc..eeb8199 100644 --- a/lisp/org-export-latex.el +++ b/lisp/org-export-latex.el @@ -958,12 +958,13 @@ SUBSUP corresponds to the ^: option in the #+OPTIONS line. Convert CHAR depending on STRING-BEFORE and STRING-AFTER." (cond ((equal string-before "\\") (concat string-before char string-after)) + ; deal with links + ((eq 'org-link (get-text-property 0 'face char)) + (concat string-before "\\" char string-after)) ;; this is part of a math formula ((and (string-match "\\S-+" string-before) (string-match "\\S-+" string-after)) - (cond ((eq 'org-link (get-text-property 0 'face char)) - (concat string-before "\\" char string-after)) - ((save-match-data (org-inside-latex-math-p)) + (cond ((save-match-data (org-inside-latex-math-p)) (if subsup (cond ((eq 1 (length string-after)) (concat string-before char string-after)) -- 1.5.6.3