From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 8FFvOs8h02X2awEAqHPOHw:P1 (envelope-from ) for ; Mon, 19 Feb 2024 10:39:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 8FFvOs8h02X2awEAqHPOHw (envelope-from ) for ; Mon, 19 Feb 2024 10:39:28 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KHPh3jMQ; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708335567; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=j5GFxFXQl/s9JWZ0mjt59rvoSO7XRcNnyhOTSVTEawM=; b=I8wbvbLmjbHTR+74mpzSj4pxGKAAXdmI2VBAmvyDVtkn7Kr42ujGkoExnZfzUvwkLoB8fu QTML6snY0GBeUvJzDqg71Us1IpCQkV4yWjwMmuHJDxpRDkSiXLtaP69lXb3g8ipP62JMK4 /0gGWaSncORbW/5RHVuTS4m/CfXtCYin7KPS0ZY6AXVzwJPa3BDiKfX0Wjb12hPliv1q/O YNs/vmX52XB6V/8DRVQ65Oj+UbajWVrT84Pzxb7UNSZvnS97GhdcKnGFU895RgjadQ7bJc eLgXOlnXtNL7x0UEgLl/S8IAKnjSA22fLMuNLJNsEWfNI1CP19b0sWOosjpkSw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KHPh3jMQ; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708335567; a=rsa-sha256; cv=none; b=Is+N8ODdMpntlEGY0ttik7oCLEriIjkeKR4btIJyS5CWH23sl4Qbg9Qr8e1hbFULGoUHjk ijPrnnIPE5OGMagJbkjWdsGEE3pM1ofMI5gr7Oqhvy22ul9Vom9MCx1sXVpduNfxZZ/wsG sebyE3Vlwnm8LqEidfMrNLScOiV3QtsWd9VPEcwql22l+DCuxhRsk1N71Ki0qA85wOrF73 X52vEQNvHdNHEoYvfQIaPmCZaRW/7JIEGqK13szlLToln6uEyV39a7y3XITkS7wiayeWs8 RZaqYtN4ouaYf6z2dIACe3QiSqN5BgbN/uiK5Mk23uVwYR+r+J6yIvXSKf/7Zg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A431540AEE for ; Mon, 19 Feb 2024 10:39:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rc06a-0008HG-Mx; Mon, 19 Feb 2024 04:38:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rc06Y-0008H2-NJ for emacs-orgmode@gnu.org; Mon, 19 Feb 2024 04:38:30 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rc06W-0005lt-Bl for emacs-orgmode@gnu.org; Mon, 19 Feb 2024 04:38:30 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A508F240104 for ; Mon, 19 Feb 2024 10:38:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708335505; bh=Mlmq0P8fUqasRLuUTLMTeFYDBAuXW6i7tf5JYfJdxTc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=KHPh3jMQOfNxuOV/9qjRYj8QNNN0HYlzfyFrL+FNaZ0UdMCHfCa8wyBb4tnDlaO0i 31uvqjs9IDxU/o09ctQfG6JZTYRm+2c5sDgn7sICr/QnfV7VB9xu0Q93i1UOHev8TR spu6g+QSN8ALeoKHFocvbixo1jIG0Tt6UKzyQXvH+/DaRFPl+3JJhEDkKHqqgfJvva DewaKIqBkWGrrd/srFe3jwLYT1tllb8gZljdb2mexm6ogTzDmWSPZofXUfw4YPcjfV DiVI/pwNYGTomz6xf3+IWDFzureSY1EPR2WFRJZC0g2Z4NYS6/mKVIXpC2W30l5Ulz OH6WEgFfXWjUQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Tdcsr3qHsz6tmv; Mon, 19 Feb 2024 10:38:24 +0100 (CET) From: Ihor Radchenko To: Leo Butler Cc: Ihor Radchenko , Org Mode Mailing List Subject: Re: [BUG] beamer export In-Reply-To: <87mss3ja6i.fsf@t14.reltub.ca> References: <871qrvjn9d.fsf@t14.reltub.ca> <877d1maogi.fsf@localhost> <87il3o5a0q.fsf@localhost> <87zfwwrnpt.fsf@t14.reltub.ca> <87le8eg1hs.fsf@localhost> <871qa5qtl0.fsf@t14.reltub.ca> <87cytofhdd.fsf@localhost> <87wmrvlsso.fsf@t14.reltub.ca> <87v87bstyl.fsf@t14.reltub.ca> <87il38i5tb.fsf@localhost> <87mss3ja6i.fsf@t14.reltub.ca> Date: Mon, 19 Feb 2024 09:42:08 +0000 Message-ID: <877cj0hjtb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.73 X-Spam-Score: -6.73 X-Migadu-Queue-Id: A431540AEE X-Migadu-Scanner: mx13.migadu.com X-TUID: Nahbd5wVCKoU Leo Butler writes: >> What about not adding BEAMER_FRAME, but instead adding org-lint checker >> that will detect when frame text contains the problematic \end{orgframe}? > > Ok, thanks for your feedback. I have modified the patch along the lines > you suggested. It is attached. Thanks! It looks like you left over some parts from the previous patch version. > (org-beamer--format-frame): Introduce the new property, :BEAMER_FRAME. ... like this. > (org-beamer--frame-environments): New variable and function. The > variable holds a list of names of frame environments found while > formatting frames. The function generates the LaTeX code to define > each new frame environment. > (org-beamer-template): Add a call to `org-beamer--frame-environments' > to insert the environment definitions into the beamer document. And since we only have a single alternative environment in this version of the patch, `org-beamer--frame-environments' does not appear to be necessary. > +(defcustom org-beamer-frame-environment "orgframe" > + "Name of the beamer frame environment." > + :group 'org-export-beamer > + :type '(string :tag "Beamer frame")) It would be nice to provide a mode detailed explanation about the purpose of this custom option. > +(defun org-lint-beamer-frame (ast) > + "Check for occurrences of begin or end frame." > + (org-with-point-at ast > + (goto-char (point-min)) > + (let (result) > + (while (re-search-forward > + (concat "\\\\\\(begin\\|end\\){" org-beamer-frame-environment "}") nil t) > + (push (list (match-beginning 0) "Beamer frame name may cause error when exporting.") result)) > + result))) ... and to link this org-lint warning to the `org-beamer-frame-environment' docstring. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at