From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Julius_M=c3=bcller?= Subject: Re: Placement of \makeatletter with \beamer@frametextheight Date: Thu, 29 Nov 2018 14:47:04 +0100 Message-ID: <0551ef45-6401-340f-d6ab-a6fc5549e29e@eureca.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> <87lg5cowv7.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSMfH-0001Yt-BG for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:47:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSMfD-00055A-Bq for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:47:35 -0500 Received: from eureca.de ([87.139.53.30]:60012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSMew-0004sd-N0 for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 08:47:31 -0500 Received: from localhost (unknown [127.0.0.1]) by eureca.de (Postfix) with ESMTP id 3B8CEA02FB for ; Thu, 29 Nov 2018 13:47:05 +0000 (UTC) Received: from eureca.de ([127.0.0.1]) by localhost (DMZ.intern.eureca.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 51GCAkBM0tGq for ; Thu, 29 Nov 2018 14:47:04 +0100 (CET) Received: from [192.168.175.209] (WRK.intern.eureca.de [192.168.175.209]) (Authenticated sender: s4ksgd5e2nwv@eureca.de) by eureca.de (Postfix) with ESMTPSA id 42BC2A02F9 for ; Thu, 29 Nov 2018 14:47:04 +0100 (CET) In-Reply-To: <87lg5cowv7.fsf@hornfels.zedat.fu-berlin.de> Content-Language: de-DE 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 Am 29.11.18 um 14:07 schrieb Loris Bennett: > 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. That's what I suspected. You could try to wrap this line in an #+begin_export latex block (as I suggested), then it will be within the document instead of in the preamble. I usually refrain from using AtBeginDocument hooks (Gustavo Barros' suggestion) because I do not know enough about them, so I rather add the commands to a place I can see ;-) > After that I tried adding the definition on the slide itself > > #+BEGIN_SRC latex > \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother > #+END_SRC Hm, src-block? I would have thought you should wrap that in an export-block, so those commands get added to the exported document, not quoted within as a source code. That would mean #+begin_export latex \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother #+end_export HTH, Julius