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 14:07:40 +0100 Message-ID: <87lg5cowv7.fsf@hornfels.zedat.fu-berlin.de> References: <87a7lts0gv.fsf@hornfels.zedat.fu-berlin.de> <87tvk1gqmh.fsf@gmail.com> <87y39cjqt7.fsf@hornfels.zedat.fu-berlin.de> <7f1382cc-70a3-7f6f-7366-a42a64fd4026@gmx.de> <02463601-9550-8a12-a24b-abfba88f1042@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSM2r-0007FQ-VT for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:07:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSM2o-0005cw-SW for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:07:53 -0500 Received: from [195.159.176.226] (port=57698 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSM2o-0005cD-KM for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:07:50 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gSM0g-00083N-0v for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 14:05:38 +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 Eric S Fraga writes: > On Thursday, 29 Nov 2018 at 09:38, Julius Dittmar wrote: >> Am 29.11.18 um 09:13 schrieb Julius Dittmar: >>> Am 29.11.18 um 08:17 schrieb Loris Bennett: >>>>> #+latex_header: \makeatletter\let\mytextheight\beamer@frametexheight\makeatother >>>>> #+attr_latex: :height 0.75\mytextheight >> >> Oh, or perhaps just a typo is involved: is it really >> \beamer@frametexheight or rather \beamer@frametextheight you are chasing >> after? > > Also, you may need to define your mytextheight as a length and then use \setlength instead of \let. After correcting the typo I followed Eric's and Julius's suggestions and I tried adding #+LATEX_HEADER: \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother to the beginning of the Org file, but in this case \the\mytextheight is 0.0pt. After that I tried adding the definition on the slide itself: #+BEGIN_SRC latex \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother #+END_SRC but got the error ! Undefined control sequence. \beamer l.153 \end{frame} ! Missing number, treated as zero. @ l.153 \end{frame} Any thoughts? Cheers, Loris -- This signature is currently under construction.