From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug?][ox-beamer] hyperref crashes when options are specified Date: Wed, 28 May 2014 17:44:49 +0200 Message-ID: <87oayhoqku.fsf@gmail.com> References: <8738fuov59.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wpg1d-0005yU-Pc for emacs-orgmode@gnu.org; Wed, 28 May 2014 11:44:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wpg1X-0008Kv-QN for emacs-orgmode@gnu.org; Wed, 28 May 2014 11:44:21 -0400 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:60536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wpg1X-0008Kn-JR for emacs-orgmode@gnu.org; Wed, 28 May 2014 11:44:15 -0400 Received: by mail-we0-f170.google.com with SMTP id u57so11766498wes.15 for ; Wed, 28 May 2014 08:44:14 -0700 (PDT) In-Reply-To: <8738fuov59.fsf@gmx.us> (rasmus@gmx.us's message of "Wed, 28 May 2014 16:06:10 +0200") 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: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > If you give hyperref options when exporting to Beamer it will > typically crash. > > I load hyperref as follows to make it compatible with "exotic" > headlines in XeLaTeX: > > (setq org-latex-default-packages-alist > '(("" "iftex" nil) > ("" "fixltx2e" nil) > ("AUTO" "inputenc" t) > ("T1" "fontenc" t) > ("AUTO" "babel" nil) > ("" "scrpage2" nil) > ("" "graphicx" t) > ("" "amsmath" t) > ("" "amssymb" t) > ("" "booktabs" t) > ("" "marvosym" t) > ("" "microtype" nil) > ("" "slantsc" nil) > ("unicode, psdextra,hidelinks" "hyperref" nil))) > > Because Beamer loads hyperref automatically this will crash. The > correct way to load it is through the document class options, e.g. > > \documentclass[hyperref={unicode, psdextra,hidelinks}]{beamer} > > Should ox-beamer automatically move the options in this case? No, it shoudn't. This crash is not really Org's fault. You could define an appropriate class for `beamer' back-end instead. Regards, -- Nicolas Goaziou