From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Placement of \makeatletter with \beamer@frametextheight Date: Wed, 28 Nov 2018 15:37:26 +0000 Message-ID: <87tvk1gqmh.fsf@gmail.com> References: <87a7lts0gv.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS1u8-0002JA-1n for emacs-orgmode@gnu.org; Wed, 28 Nov 2018 10:37:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gS1u4-0002Fg-V4 for emacs-orgmode@gnu.org; Wed, 28 Nov 2018 10:37:32 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:34946) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gS1u4-0002Ed-NB for emacs-orgmode@gnu.org; Wed, 28 Nov 2018 10:37:28 -0500 Received: by mail-wr1-x433.google.com with SMTP id 96so26798713wrb.2 for ; Wed, 28 Nov 2018 07:37:28 -0800 (PST) In-Reply-To: <87a7lts0gv.fsf@hornfels.zedat.fu-berlin.de> (Loris Bennett's message of "Wed, 28 Nov 2018 16:09:20 +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: Loris Bennett Cc: emacs-orgmode@gnu.org 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 -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1035-gfeb442