From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: LaTeX (not Beamer) export options Date: Fri, 15 Dec 2017 12:12:17 +0000 Message-ID: <87r2rw42ce.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePoqo-0002hh-7d for emacs-orgmode@gnu.org; Fri, 15 Dec 2017 07:12:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePoqj-0005HW-5D for emacs-orgmode@gnu.org; Fri, 15 Dec 2017 07:12:26 -0500 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]:41353) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePoqi-0005Gm-VQ for emacs-orgmode@gnu.org; Fri, 15 Dec 2017 07:12:21 -0500 Received: by mail-wr0-x230.google.com with SMTP id z18so7870299wrb.8 for ; Fri, 15 Dec 2017 04:12:20 -0800 (PST) In-Reply-To: (Ken Mankoff's message of "Thu, 14 Dec 2017 18:05:55 +0100") 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" To: Ken Mankoff Cc: Org Mode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thursday, 14 Dec 2017 at 18:05, Ken Mankoff wrote: > Hi Org List, > > Is there an easy way to specify #+LATEX_HEADER options that will not > be used when exporting to Beamer? I can do the opposite > -#+BEAMER_HEADER lines are not exported to LaTeX. But I have some > LaTeX config options that are getting in the way when exporting to > Beamer. Hopefully somebody else will answer with a proper org solution but, in the absence of anything else, you could wrap the LaTeX code in the latex_header with an \if looking for something that is unique to beamer and only include the code if not beamer. Something along the lines of #+latex_header: \ifx\frametitle\undefined\usepackage{somepackage}\fi which seems to work. \usepackage{somepackage} is what you actually want when not using beamer. Replace with your own stuff. You can make it more readable by doing: # only for LaTeX and not beamer #+latex_header: \ifx\frametitle\undefined #+latex_header: \usepackage{somepackage} #+latex_header: \usepackage{another} #+latex_header: \fi HTH, eric =2D-=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWjO8IQAKCRDIkZPY//z2 feR7AJ4qkm0aW8ea0yCY0Ll3HRcJrFCOWgCfS/UkRpEDU+qDI17ZkAfwhgE+E8s= =pw4L -----END PGP SIGNATURE----- --=-=-=--