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
|
||||
(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,
|
||||
|
Loading…
Reference in New Issue
Block a user