From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Placement of \makeatletter with \beamer@frametextheight Date: Thu, 29 Nov 2018 08:17:24 +0100 Message-ID: <87y39cjqt7.fsf@hornfels.zedat.fu-berlin.de> References: <87a7lts0gv.fsf@hornfels.zedat.fu-berlin.de> <87tvk1gqmh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSGkE-0003z0-Dc for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 02:28:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSGZt-0005Ac-Iu for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 02:17:40 -0500 Received: from [195.159.176.226] (port=48817 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSGZt-000579-94 for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 02:17:37 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gSGXi-0005h9-7I for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:15:22 +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: emacs-orgmode@gnu.org Hi Eric, Eric S Fraga writes: > On Wednesday, 28 Nov 2018 at 16:09, Loris Bennett wrote: >> Hi, >> >> I want to specify the size of a graphic in an Beamer presentation >> generated from my org file. The following >> >> #+ATTR_LATEX: :height 0.75\textheight >> >> works, but >> >> #+ATTR_LATEX: :height 0.75\beamer@frametextheight >> >> I get the error >> >> ! Undefined control sequence. >> \Gin@@eheight ->0.5\beamer >> @frametextheight >> >> I assume I need to insert a \makeatletter at the appropriate point. >> Where would that be? > > You might find it easier to create your own variable in the header of > the LaTeX file and use that directly, as in (untested): > > #+latex_header: \makeatletter\let\mytextheight\beamer@frametexheight\makeatother > > ... > > #+attr_latex: :height 0.75\mytextheight Thanks, but with that I get ! Undefined control sequence. \Gin@@eheight ->0.75\mytextheight However, the tex file looks OK: ... \usepackage[sfdefault]{Fira Sans} \makeatletter\let\mytextheight\beamer@frametexheight\makeatother \definecolor{mFubMainGreen}{HTML}{99CC00} ... \begin{center} \includegraphics[height=0.75\mytextheight]{../../common/resources.png} \end{center} ... Any ideas what might still be going wrong? Cheers, Loris -- This signature is currently under construction.