From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noorul Islam Subject: Re: [BUG] org-latex ignores org-export-latex-hyperref-format? Date: Sun, 17 Oct 2010 08:59:51 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=000e0cd5c7902e79a00492c7acb0 Return-path: Received: from [140.186.70.92] (port=52820 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7JwX-000597-H3 for emacs-orgmode@gnu.org; Sat, 16 Oct 2010 23:29:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7JwW-0003z6-E5 for emacs-orgmode@gnu.org; Sat, 16 Oct 2010 23:29:53 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:46892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7JwW-0003yv-AY for emacs-orgmode@gnu.org; Sat, 16 Oct 2010 23:29:52 -0400 Received: by gxk27 with SMTP id 27so1442172gxk.0 for ; Sat, 16 Oct 2010 20:29:51 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Guy Wiener Cc: emacs-orgmode@gnu.org --000e0cd5c7902e79a00492c7acb0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sat, Oct 16, 2010 at 3:32 PM, Guy Wiener 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=A0customizable. = 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: * lisp/org-latex.el (org-export-latex-links) : Replaced hard coded hyperref format with custom variable `org-export-latex-hyperref-format' Found by Guy Wiener Thanks and Regards Noorul --000e0cd5c7902e79a00492c7acb0 Content-Type: text/plain; charset=US-ASCII; name="org-latex2.txt" Content-Disposition: attachment; filename="org-latex2.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gfdcxy9v0 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLWxhdGV4LmVsIGIvbGlzcC9vcmctbGF0ZXguZWwKaW5kZXgg NmFkZmM3OC4uNGNiYzAzMSAxMDA2NDQKLS0tIGEvbGlzcC9vcmctbGF0ZXguZWwKKysrIGIvbGlz cC9vcmctbGF0ZXguZWwKQEAgLTIwMTUsMTAgKzIwMTUsMTAgQEAgVGhlIGNvbnZlcnNpb24gaXMg bWFkZSBkZXBlbmRpbmcgb2YgU1RSSU5HLUJFRk9SRSBhbmQgU1RSSU5HLUFGVEVSLiIKIAkgICAg ICAoaW5zZXJ0IChmb3JtYXQKIAkJICAgICAgIChvcmctZXhwb3J0LWdldC1jb2RlcmVmLWZvcm1h dCBwYXRoIGRlc2MpCiAJCSAgICAgICAoY2RyIChhc3NvYyBwYXRoIG9yZy1leHBvcnQtY29kZS1y ZWZzKSkpKSkKLQkgICAgIChyYWRpb3AgKGluc2VydCAoZm9ybWF0ICJcXGh5cGVycmVmWyVzXXsl c30iCisJICAgICAocmFkaW9wIChpbnNlcnQgKGZvcm1hdCBvcmctZXhwb3J0LWxhdGV4LWh5cGVy cmVmLWZvcm1hdAogCQkJCSAgICAgKG9yZy1zb2xpZGlmeS1saW5rLXRleHQgcmF3LXBhdGgpIGRl c2MpKSkKIAkgICAgICgobm90IHR5cGUpCi0JICAgICAgKGluc2VydCAoZm9ybWF0ICJcXGh5cGVy cmVmWyVzXXslc30iCisJICAgICAgKGluc2VydCAoZm9ybWF0IG9yZy1leHBvcnQtbGF0ZXgtaHlw ZXJyZWYtZm9ybWF0CiAJCQkgICAgICAob3JnLXJlbW92ZS1pbml0aWFsLWhhc2gKIAkJCSAgICAg ICAob3JnLXNvbGlkaWZ5LWxpbmstdGV4dCByYXctcGF0aCkpCiAJCQkgICAgICBkZXNjKSkpCg== --000e0cd5c7902e79a00492c7acb0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --000e0cd5c7902e79a00492c7acb0--