From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [BUG] org-latex ignores org-export-latex-hyperref-format? Date: Sun, 17 Oct 2010 07:40:07 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=54242 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7Lyj-0003KV-RL for emacs-orgmode@gnu.org; Sun, 17 Oct 2010 01:40:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7Lyd-0003yU-FN for emacs-orgmode@gnu.org; Sun, 17 Oct 2010 01:40:13 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:46932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7Lyd-0003yN-Aw for emacs-orgmode@gnu.org; Sun, 17 Oct 2010 01:40:11 -0400 Received: by ewy5 with SMTP id 5so1525896ewy.0 for ; Sat, 16 Oct 2010 22:40:10 -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: Noorul Islam Cc: Guy Wiener , emacs-orgmode@gnu.org Applied, thanks. - Carsten On Oct 17, 2010, at 5:29 AM, Noorul Islam wrote: > 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 >> 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: > > * 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 > _______________________________________________ > 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