From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: [bug?][ox-beamer] hyperref crashes when options are specified Date: Wed, 28 May 2014 16:06:10 +0200 Message-ID: <8738fuov59.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpeSh-0008Pe-0y for emacs-orgmode@gnu.org; Wed, 28 May 2014 10:04:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpeSY-0006zI-Kq for emacs-orgmode@gnu.org; Wed, 28 May 2014 10:04:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:34840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpeSY-0006zA-E5 for emacs-orgmode@gnu.org; Wed, 28 May 2014 10:04:02 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WpeST-0001tF-4s for emacs-orgmode@gnu.org; Wed, 28 May 2014 16:03:57 +0200 Received: from 192.167.90.140 ([192.167.90.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 May 2014 16:03:57 +0200 Received: from rasmus by 192.167.90.140 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 May 2014 16:03:57 +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: emacs-orgmode@gnu.org Hi, 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? Unfortunately, it seems that I cannot directly modify the latex package alist via a parse tree filter, which would have been the easiest. Alternatively, I could write a LaTeX hack using \@ifclassloaded or using the final filter to move things around before compilation. Thanks, Rasmus -- May the Force be with you