all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug?][ox-beamer] hyperref crashes when options are specified
@ 2014-05-28 14:06 Rasmus
  2014-05-28 15:44 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Rasmus @ 2014-05-28 14:06 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-28 17:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-28 14:06 [bug?][ox-beamer] hyperref crashes when options are specified Rasmus
2014-05-28 15:44 ` Nicolas Goaziou
2014-05-28 16:47   ` Rasmus
2014-05-28 17:33     ` Nicolas Goaziou

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.