From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Customizing LaTeX-export, Beamer, \institute, and BEAMER_envargs Date: Thu, 24 Mar 2011 09:16:40 +0000 Message-ID: <87oc50anev.fsf@ucl.ac.uk> References: <4D88BB8A.50901@uni-koeln.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=59760 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2ges-0006Ow-Lk for emacs-orgmode@gnu.org; Thu, 24 Mar 2011 05:16:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2ger-0005Nw-Cc for emacs-orgmode@gnu.org; Thu, 24 Mar 2011 05:16:46 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:50757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2ger-0005Nj-6y for emacs-orgmode@gnu.org; Thu, 24 Mar 2011 05:16:45 -0400 In-Reply-To: <4D88BB8A.50901@uni-koeln.de> (Bernd Weiss's message of "Tue, 22 Mar 2011 11:08:58 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernd Weiss Cc: emacs-orgmode@gnu.org Bernd Weiss writes: > Dear all, > > I am preparing a Beamer presentation and I am having some trouble with > side effects (?) due to my attempt to customize the LaTeX-export. My > minimum example can be found below. > > The default LaTeX-export does not recognise the '\institute'-option (I > mean, as far as I know). For that reason, I run "(add-to-list > org-export-latex-classes ...)". Unfortunately, the export-function > does no longer recognice ":BEAMER_envargs: [plain]" (or > ":BEAMER_envargs: [shrink=5]")[1]. yes, that is correct. the default entry uses =org-beamer-sectioning= which is where headings are translated to latex section or frame or block etc entries *and* where the special beamer properties are processed. As you have replaced the sectioning section of =org-export-latex-classes= with your own, you have lost all of that functionality. You seem to want to achieve two things: 1. added your macros into the latex preamble, and 2. add the [fragile] option to each frame. I would suggest you do 1 as you have done but keep org-beamer-sectioning as the second argument for the org-export-latex-classes entry. To add [fragile] to each frame, I would recommend, instead, using some automated form of input, such as a yasnippet snippet like this one (untested): --8<---------------cut here---------------start------------->8--- #name : frame # -- ** ${1:frame title} :PROPERTIES: :BEAMER_envargs: ${2:[fragile]} :END: $0 --8<---------------cut here---------------end--------------->8--- so that typing "frame" followed by TAB would define a new headline, prompting for the title and possible arguments (with defaults). HTH, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.113.g9010a.dirty)