Add a hyperlink org link type
This commit is contained in:
parent
d18cd7cd40
commit
f400ddcdbd
@ -756,6 +756,12 @@ below corrects this by advising to override ~TeX-brace-count-line~ with
|
|||||||
(`latex
|
(`latex
|
||||||
(format "\\eqref{%s}" path))
|
(format "\\eqref{%s}" path))
|
||||||
(_ 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
|
(org-link-set-parameters
|
||||||
"label" :export (lambda (path _desc backend _info)
|
"label" :export (lambda (path _desc backend _info)
|
||||||
(pcase backend
|
(pcase backend
|
||||||
@ -768,7 +774,6 @@ below corrects this by advising to override ~TeX-brace-count-line~ with
|
|||||||
(`latex
|
(`latex
|
||||||
(format "\\ref{%s}" path))
|
(format "\\ref{%s}" path))
|
||||||
(_ path)))))
|
(_ path)))))
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
In order to export the [[info:org#External Links][info links (info)]] in this document to =html= correctly,
|
In order to export the [[info:org#External Links][info links (info)]] in this document to =html= correctly,
|
||||||
|
Loading…
Reference in New Issue
Block a user