Add a hyperlink org link type

This commit is contained in:
Gerard Vermeulen 2021-12-16 17:44:55 +01:00
parent d18cd7cd40
commit f400ddcdbd

View File

@ -756,6 +756,12 @@ below corrects this by advising to override ~TeX-brace-count-line~ with
(`latex
(format "\\eqref{%s}" path))
(_ path))))
(org-link-set-parameters
"hyperlink" :export (lambda (path desc backend _info)
(pcase backend
(`latex
(format "\\hyperlink{%s}{%s}" path desc))
(_ path))))
(org-link-set-parameters
"label" :export (lambda (path _desc backend _info)
(pcase backend
@ -766,9 +772,8 @@ below corrects this by advising to override ~TeX-brace-count-line~ with
"ref" :export (lambda (path _desc backend _info)
(pcase backend
(`latex
(format "\\ref{% s}" path))
(format "\\ref{%s}" path))
(_ path)))))
#+end_src
In order to export the [[info:org#External Links][info links (info)]] in this document to =html= correctly,