From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 gOr/K6XekWPBCAAAbAwnHQ (envelope-from ) for ; Thu, 08 Dec 2022 13:55:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CJ/6K6XekWMKeQAA9RJhRA (envelope-from ) for ; Thu, 08 Dec 2022 13:55:01 +0100 Received: from lists.gnu.org (unknown [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 760D33BF99 for ; Thu, 8 Dec 2022 13:55:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3GPw-0003Pd-8v; Thu, 08 Dec 2022 07:54:27 -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 1p3GPq-0003N2-9e for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 07:54:19 -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 1p3GPm-0007ag-Md for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 07:54:16 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9B959240107 for ; Thu, 8 Dec 2022 13:54:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670504052; bh=MLoDOm8AspsQ5xIPv6ZQOlP+XYIoyBBGN4sI8cGp0GU=; h=From:To:Cc:Subject:Date:From; b=Pird/Ph/eUOWitvKOo+ljge3mjZFB/tEajt4ywrQ+kgKaBDufMk5RZASRYJz+RxPA vHLQpWkDfUlJ6TYa/ofjcR0nI8r5E3PIkgCxdpFeQKJMemyxbrsEfACFztpL6dAFb1 +0/1lJcuoi26aWcQsunh6jEGXWuLbOZrQNHO6QH/+RfmB40Ks9umT0zoVDFlw4oHcS EOWfvSafb/9GsuduOuC6HTbQmnz1ddkuKqgyy59jHitFi7WPesRplDblkBith+SNaB 9jcPv4zcpGfBMz+xi3lDWZgPswe9LFiqY4MDt6b2ihuyjJQs9ESLVnkvs2clvSawvc /qYJdiKLj+iIA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NSYxv1HmTz6tmX; Thu, 8 Dec 2022 13:54:11 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: hugo@heagren.com, Emacs Orgmode Subject: Re: [PATCH] lisp/ox-latex.el: put labels inside example blocks In-Reply-To: <87y1ri6p2g.fsf@localhost> References: <87o7se86px.fsf@localhost> <01f2474b-afc6-195a-7556-32c2cc5cf66f@gmail.com> <87y1ri6p2g.fsf@localhost> Date: Thu, 08 Dec 2022 12:54:08 +0000 Message-ID: <87sfhq6opb.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: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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=1670504101; 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=vqGUAWmPsdMWAH6YzAIbgMT7KXRq196TdBZJSrDGOgs=; b=JZlm4O+0BARMDyfGV06HwVwcqgSrzmTx38yMMWBgw1yhrVcoBH9ti9rKIhQ7T3DW4VTNl4 hrGfu2BENl51jyB+dLbNQNW6n0On5owp1emuIg9fu0WJKoPrbH6n2ek0IyY+afwcrYfXK8 xsnH0oYaIkvKkAEwy53Ug5dng8lBhrE5t5ptmz7Hi3qif4KhQ9HBwdk9ZCs4YNQjU6/ZYa ADnOB7PlMX8cbmMRVVlcPhNBV9BbLEICWDuG9l0setMqAF7ABpwolYstAe9NZwjrkJCDw9 pizPlZYRcs/qHx2ZY/VVW2BSsIHTVTAhL0TGlQ+s+WYxv+2eq6PBGmwsCnaeBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670504101; a=rsa-sha256; cv=none; b=D/LsG+8iqJrSdVRLeGjQ28imlAtqFsYUz94S/tRDCBZq982Yo49BDNSykmb84C0SqQNNiK 8YQksP44iqVlzMFUnNDRrPSl0Qo0M/VltiFNvqItKsSxGLVBJKTHUfL8PkkpTafoIy9uL+ wr25J9Z1+Jqc58aVKInliX2Uxa7H3SqBaAeFdgj4CwEzzpjUGnFBW6mxhKHKFn+20JL2zZ CAIIxphPVbDMM3e9sO+UFG21/5Yjp98nHGfNIyE7aj2VopB9SVXgAHkbyCHvw0KfLuRBl5 Le/rMzwkjeg3qlEQAsGYH1X6P2Tsr9KMbnZuOPB14BxYxAnISt1O4YEvyU/71Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="Pird/Ph/"; 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: -2.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="Pird/Ph/"; 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: 760D33BF99 X-Spam-Score: -2.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7KDnAsCOVJpJ Ihor Radchenko writes: >> Please, revert this patch. Default environment for #+begin_example is >> verbatim. With this patch the following PDF is generated >> >> \label{org9283054} >> code >> >> for >> >> #+name: test >> #+begin_example >> code >> #+end_example >> >> It is the reason why \label must be outside. I do not remember if line >> break penalty helps after \label. > > Oops. You are indeed right. > Reverted. Hugo, you may consider writing an alternative patch that only puts label inside for the environments where we know that it is safe. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at