diff options
author | Noorul Islam <noorul@noorul.com> | 2010-10-17 08:29:51 +0000 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2010-10-17 07:39:34 +0200 |
commit | f5918bdcc05d7924dc204b57307023eb1ef011f0 (patch) | |
tree | 269b61125fce0bc99f6670efeff0d5f0a5966b72 | |
parent | df5894cdcb10819560f003c5b94b8f5f2b7d33cf (diff) | |
download | org-mode-f5918bdcc05d7924dc204b57307023eb1ef011f0.tar.gz |
LaTeX export: use org-export-latex-hyperref-format
* lisp/org-latex.el (org-export-latex-links) : Replaced hard coded
hyperref format with custom
variable `org-export-latex-hyperref-format'
On Sat, Oct 16, 2010 at 3:32 PM, Guy Wiener <wiener.guy@gmail.com> wrote:
> I found the following weird thing in org-latex, and I think it is a bug:
> The customization option "org-export-latex-hyperref-format" is suppose to
> render links to hyperrefs in the exported tex file. However, in
> org-latex.el, lines 1889 and 1892, the string "\\hyperref[%s]{%s}" is
> hard-coded, so that the link export format is not really customizable. I
> replaced this string with the custom variable and the option works as
> expected - I.e., changing the option chanced the format of exported links.
Looks like commit cae0c63c488067e93b665e9110dc74a634c52529 has introduced
new customizable variable org-export-latex-hyperref-format but left
out some places
in the code to be replaced. Attached is the patch.
Log:
Found by Guy Wiener <wiener.guy@gmail.com>
Thanks and Regards
Noorul
-rw-r--r-- | lisp/org-latex.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 6adfc78..4cbc031 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -2015,10 +2015,10 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." (insert (format (org-export-get-coderef-format path desc) (cdr (assoc path org-export-code-refs))))) - (radiop (insert (format "\\hyperref[%s]{%s}" + (radiop (insert (format org-export-latex-hyperref-format (org-solidify-link-text raw-path) desc))) ((not type) - (insert (format "\\hyperref[%s]{%s}" + (insert (format org-export-latex-hyperref-format (org-remove-initial-hash (org-solidify-link-text raw-path)) desc))) |