From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mDRgBUfNkWP7tQAAbAwnHQ (envelope-from ) for ; Thu, 08 Dec 2022 12:40:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MARjBEfNkWOkUwEAG6o9tA (envelope-from ) for ; Thu, 08 Dec 2022 12:40:55 +0100 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 B6395395BF for ; Thu, 8 Dec 2022 12:40:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3FFz-0006zk-V9; Thu, 08 Dec 2022 06:40:04 -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 1p3FFw-0006yz-3B for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 06:40:00 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3FFi-0000n2-VD for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 06:39:59 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C4506240026 for ; Thu, 8 Dec 2022 12:39:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670499584; bh=FMEvVWB3eYMd60kRDSzthUJh1BedjuP+t4z4odtYru0=; h=From:To:Cc:Subject:Date:From; b=Z3scyhGxOrMh+BN8PWKg6ywnh6+EdKxq1Us8VAmAr+Ljwrw7kyaqshAe9NvmQvFH1 9Bsx73MAHe3Bf5ZvQCSjxQ7LTLgCp3c2k+G1zPGKzwbijPA/7SAad6dEBUjHm0ICtV CN+BLvnJDbucHG0WnUsm15aTDcSGjYlakLq2FEU41mwfAj4LB0Zm1E1ExrpS3XnhMM 5MLifFhVojBziMjwwGhx06U9HiPplmvNV87tVhDMyWbNNp72b9tqh/XyESuDmlixld QvGt0Z47YeD/2/cUxrp3pTgoiii57P4ttwXJnJhqHEWmdPSbbOzMBnGGSTIutXC7Vn z1ifUE/jBGdSA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NSXHx61xPz9rxR; Thu, 8 Dec 2022 12:39:41 +0100 (CET) From: Ihor Radchenko To: hugo@heagren.com Cc: Emacs Orgmode Subject: Re: [PATCH] lisp/ox-latex.el: put labels inside example blocks In-Reply-To: References: Date: Thu, 08 Dec 2022 11:39:38 +0000 Message-ID: <87o7se86px.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670499654; 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=TAyenwkpKsix+oDQcKHUGISMOuK2I2dxKCYn+JrWN4M=; b=XyOYcNEI2WtbOa1r2tQieIFy0k8n6yHy/vBBTDHiWB4BFRL+mOYibVooDVzyQrCrPJ1OoP 9wJ2nsBDwZwNUPADDG6gzIko49cPoYGooQmnoEh1mlJ0FoqqWYzoIEuNATMD87weE8Cua6 /KkW+8UgK8jJnrpdwC3a/DP6bbqnM+Juc7AjjVeexa91T9bAfEz885Bf9c7mmAJERcJifU AuYP16pcY1tKzqJjfOvMANMrfh4b+exJc9lmTyhAmNYmp84L4Le0C+Jiy99yKKxl9XHPkU OAV5laQfLd3jUAuRVboCurJ6ThtD1AHHF5Ncm3SXj7MRZSc+7GSXi/SYhS3ZuQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670499654; a=rsa-sha256; cv=none; b=QdfoBtrljYBMGKfKzWlItd3maoD62LN7jjTLwfYUwJllkwtpWPKOUFFWgRlCVs0xTMTSwl pGqrxyeqKboB+X3Y343SMUjd57nJtPi1aQ/1JEg80I9LOsv9LQjnAUqRVGPhnfTQAVCRE5 KgKA+LexnQLmUNc+i4Ul41QggHPHP099fRvI6H9vIUegSWPQZgPEhA/f9jdMdPNbqXjtzD l5ih6m/Hzgg12XzTPXd3s4XuNqUBc55kbiNvFT0SKuOEz7w9Ui5kH4yMC1g5+V6StdDo3/ Hf5uxq0lK93Vg6a/qT9dLVIH2lN7+AxMNHSDvXJ73dHvP7Aix0VW5JleEBxcqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Z3scyhGx; 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" X-Migadu-Spam-Score: -8.86 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Z3scyhGx; 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" X-Migadu-Queue-Id: B6395395BF X-Spam-Score: -8.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: DfSExJ/N6fSz hugo@heagren.com writes: > The attached patch forces example environments to be printed thus: > > ,--- > | \begin{example}\label{ex:foo} > | My example here > | \end{example} > `--- > > This solves the problem. > > The logic/conditions for when to print a label, and how it is generated > remain unchanged. > > Hope this is helpful for someone else too! Thanks! Applied onto bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=304f18cb7 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at