mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-24 22:32:53 +00:00
Make hyperref macro customizable
This was a request by Martin G. Skjaeveland
This commit is contained in:
parent
3ddd5ac49c
commit
cae0c63c48
|
@ -1,3 +1,8 @@
|
||||||
|
2010-01-20 Carsten Dominik <carsten.dominik@gmail.com>
|
||||||
|
|
||||||
|
* org-latex.el (org-export-latex-hyperref-format): New option.
|
||||||
|
(org-export-latex-links): Use `org-export-latex-hyperref-format'.
|
||||||
|
|
||||||
2010-01-18 Carsten Dominik <carsten.dominik@gmail.com>
|
2010-01-18 Carsten Dominik <carsten.dominik@gmail.com>
|
||||||
|
|
||||||
* org-ctags.el (org-ctags-enable): Change order of functions.
|
* org-ctags.el (org-ctags-enable): Change order of functions.
|
||||||
|
|
|
@ -277,6 +277,13 @@ markup defined, the first one in the association list will be used."
|
||||||
:group 'org-export-latex
|
:group 'org-export-latex
|
||||||
:type 'string)
|
:type 'string)
|
||||||
|
|
||||||
|
(defcustom org-export-latex-hyperref-format "\\href{%s}{%s}"
|
||||||
|
"A printf format string to be applied to hyperref links.
|
||||||
|
The format must contain two %s instances. The first will be filled with
|
||||||
|
the link, the second with the link description."
|
||||||
|
:group 'org-export-latex
|
||||||
|
:type 'string)
|
||||||
|
|
||||||
(defcustom org-export-latex-tables-verbatim nil
|
(defcustom org-export-latex-tables-verbatim nil
|
||||||
"When non-nil, tables are exported verbatim."
|
"When non-nil, tables are exported verbatim."
|
||||||
:group 'org-export-latex
|
:group 'org-export-latex
|
||||||
|
@ -1750,7 +1757,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
|
||||||
;; a LaTeX issue, but we here implement a work-around anyway.
|
;; a LaTeX issue, but we here implement a work-around anyway.
|
||||||
(setq path (org-export-latex-protect-amp path)
|
(setq path (org-export-latex-protect-amp path)
|
||||||
desc (org-export-latex-protect-amp desc)))
|
desc (org-export-latex-protect-amp desc)))
|
||||||
(insert (format "\\href{%s}{%s}" path desc)))
|
(insert (format org-export-latex-hyperref-format path desc)))
|
||||||
(t (insert "\\texttt{" desc "}")))))))
|
(t (insert "\\texttt{" desc "}")))))))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue