From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Hirn Subject: Re: org-export-latex-hyperref-options-format Date: Mon, 17 Feb 2014 16:59:17 -0600 Message-ID: References: <87a9dpo0as.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11368658f1a60504f2a21af1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFX9j-0005jR-MS for emacs-orgmode@gnu.org; Mon, 17 Feb 2014 17:59:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFX9i-0008SX-Dh for emacs-orgmode@gnu.org; Mon, 17 Feb 2014 17:59:19 -0500 Received: from mail-oa0-x22d.google.com ([2607:f8b0:4003:c02::22d]:40944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFX9i-0008ST-6t for emacs-orgmode@gnu.org; Mon, 17 Feb 2014 17:59:18 -0500 Received: by mail-oa0-f45.google.com with SMTP id i11so18482175oag.18 for ; Mon, 17 Feb 2014 14:59:17 -0800 (PST) In-Reply-To: <87a9dpo0as.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --001a11368658f1a60504f2a21af1 Content-Type: text/plain; charset=ISO-8859-1 Hm. That's disappointing. I really prefer the original behavior. I don't want to copy #+latex_header to get this default behavior into each of my org-mode files. I guess I'll just have to maintain this by redefining the entire org-latex-template function to look at my variable instead of the hard coded string. A pain but apparently my own option. Thanks. On Mon, Feb 17, 2014 at 4:13 PM, Nicolas Goaziou wrote: > Hello, > > Joe Hirn writes: > > > Hello. I recently upgraded to org 8 from the builtin org (7.x) of Emacs > > 24.3 and lost the ability to customize the \hypersetup block via the > custom > > var org-export-latex-hyperref-options-format. Platform is OSX, Emacs > > installed via homebrew and org-mode updated via package.el. > > > > Org 7.x defines the var in org-latex.el. Because it's a builtin, the > custom > > var still displays in the 'org-latex-export group when configuring > options. > > However, the new export logic from ox-latex.el does not define this > custom > > var, nor does it respect the value if it is set. This is doubly confusing > > because it appears the var is available, but it actually unused. > > The problem will go with the next Emacs release. > > > I found this thread from September which describes the same issue, but > the > > patch did not address adding the custom var back and seems to have died. > > http://lists.gnu.org/archive/html/emacs-orgmode/2013-09/msg01364.html > > Actually, there is a way to ignore hypersetup block. See > `org-latex-with-hyperref'. > > If you really want a custom command, I think it is better to first > disable it with the variable aforementioned, then include your own > with #+latex_header or in a custom latex class (see > `org-latex-classes'). > > You can also use a filter to change it on the fly, but that would be > less straightforward. > > > Regards, > > -- > Nicolas Goaziou > --001a11368658f1a60504f2a21af1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hm. That's disappointing. I really prefer the ori= ginal behavior. I don't want to copy #+latex_header to get this default= behavior into each of my org-mode files.=A0

I gue= ss I'll just have to maintain this by redefining the entire org-latex-t= emplate function to look at my variable instead of the hard coded string. A= pain but apparently my own option.=A0

Thanks.=A0

On Mon, Feb 17, 2014 at 4:13 PM, Nicolas Goazi= ou <n.goaziou@gmail.com> wrote:
Hello,

Joe Hirn <joseph.hirn@gmail.com= > writes:

> Hello. I recently upgraded to org 8 from the builtin org (7.x) of Emac= s
> 24.3 and lost the ability to customize the \hypersetup block via the c= ustom
> var org-export-latex-hyperref-options-format. Platform is OSX, Emacs > installed via homebrew and org-mode updated via package.el.
>
> Org 7.x defines the var in org-latex.el. Because it's a builtin, t= he custom
> var still displays in the 'org-latex-export group when configuring= options.
> However, the new export logic from ox-latex.el does not define this cu= stom
> var, nor does it respect the value if it is set. This is doubly confus= ing
> because it appears the var is available, but it actually unused.

The problem will go with the next Emacs release.

> I found this thread from September which describes the same issue, but= the
> patch did not address adding the custom var back and seems to have die= d.
> http://lists.gnu.org/archive/html/emacs-orgmo= de/2013-09/msg01364.html

Actually, there is a way to ignore hypersetup block. See
`org-latex-with-hyperref'.

If you really want a custom command, I think it is better to first
disable it with the variable aforementioned, then include your own
with #+latex_header or in a custom latex class (see
`org-latex-classes').

You can also use a filter to change it on the fly, but that would be
less straightforward.


Regards,

--
Nicolas Goaziou

--001a11368658f1a60504f2a21af1--