From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-export-latex-hyperref-options-format Date: Mon, 17 Feb 2014 23:13:15 +0100 Message-ID: <87a9dpo0as.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFWQz-0007DM-2p for emacs-orgmode@gnu.org; Mon, 17 Feb 2014 17:13:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFWQt-0001wW-Ny for emacs-orgmode@gnu.org; Mon, 17 Feb 2014 17:13:05 -0500 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:59446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFWQt-0001wR-Gc for emacs-orgmode@gnu.org; Mon, 17 Feb 2014 17:12:59 -0500 Received: by mail-wg0-f42.google.com with SMTP id k14so2537464wgh.3 for ; Mon, 17 Feb 2014 14:12:58 -0800 (PST) In-Reply-To: (Joe Hirn's message of "Mon, 17 Feb 2014 14:41:27 -0600") 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: Joe Hirn Cc: emacs-orgmode@gnu.org 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