Merge branch 'maint'
This commit is contained in:
commit
591ca3a0f3
|
@ -721,13 +721,14 @@ channel."
|
||||||
CONTENTS is the description part of the link. INFO is a plist
|
CONTENTS is the description part of the link. INFO is a plist
|
||||||
used as a communication channel."
|
used as a communication channel."
|
||||||
(or (org-export-custom-protocol-maybe link contents 'beamer)
|
(or (org-export-custom-protocol-maybe link contents 'beamer)
|
||||||
;; Fall-back to LaTeX export. However, if link is becomes
|
;; Fall-back to LaTeX export. However, prefer "\hyperlink" over
|
||||||
;; a "\hyperlink" macro, try to sneak in Beamer overlay
|
;; "\hyperref" since the former handles overlay specifications.
|
||||||
;; specification, if any.
|
(let ((latex-link (org-export-with-backend 'latex link contents info)))
|
||||||
(let ((latex-link (org-export-with-backend 'latex link contents info))
|
(if (string-match "\\`\\\\hyperref\\[\\(.*?\\)\\]" latex-link)
|
||||||
(overlay (org-beamer--element-has-overlay-p link)))
|
(replace-match
|
||||||
(if (and overlay (string-match "\\`\\\\hyperlink" latex-link))
|
(format "\\\\hyperlink%s{\\1}"
|
||||||
(replace-match (concat "\\&" overlay) nil nil latex-link)
|
(or (org-beamer--element-has-overlay-p link) ""))
|
||||||
|
nil nil latex-link)
|
||||||
latex-link))))
|
latex-link))))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue