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 +MikA8vckWN+cgAAbAwnHQ (envelope-from ) for ; Thu, 08 Dec 2022 13:47:07 +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 QFigA8vckWNdAgAA9RJhRA (envelope-from ) for ; Thu, 08 Dec 2022 13:47:07 +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 A72F83B7F3 for ; Thu, 8 Dec 2022 13:47:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3GII-0001Vh-Tg; Thu, 08 Dec 2022 07:46:31 -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 1p3GIF-0001TT-Rm for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 07:46:29 -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 1p3GI8-00023W-Fa for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 07:46:27 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0706D240104 for ; Thu, 8 Dec 2022 13:46:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670503579; bh=GE0qHywIXXgITcE4pt59wMtbt2yVwpoivLQe8xKW66s=; h=From:To:Cc:Subject:Date:From; b=anWl6RU/2q1S9x5DffK+CwU8GzTXU4PVpm6MZZnUupUvkf7C9ocvrArWMaOFt3JxM 1BrNqvvTsIKsEgohZ1OH39xlzCZxKsEfUn1KuguBXOmZwlf8k+Hcoc/2nd1sdRxIY1 wKp01O+VvX4bQLuEGCzGawvV7tpi4UanbCz1yuJDBGIIVZMicqfLQRNiQijJtRdAKz daNEx1L9RU++c3dh87yi3Az3JhbOPNAmf5bdwuKDXjR3j9mMGa1o8onoP1Vo70n+FD q1JThnkWbhcf4n6V65dAIgzBT5H4f8j50fpGW2uhKI8Ylkbhg2f2crydZQIEUwX5zp zADmbWMRUZiSw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NSYmp3LSZz6tmx; Thu, 8 Dec 2022 13:46:18 +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: <01f2474b-afc6-195a-7556-32c2cc5cf66f@gmail.com> References: <87o7se86px.fsf@localhost> <01f2474b-afc6-195a-7556-32c2cc5cf66f@gmail.com> Date: Thu, 08 Dec 2022 12:46:15 +0000 Message-ID: <87y1ri6p2g.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=1670503626; 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=6HBY4RIXDrjLU6/PQYPSphSNR7mVw7Hi/dmQUyDtyXo=; b=PW1oWe8Egzx9Xo1BGrwCReGhjYmIlIgoehNIYSeLFvYBalaI1LXOxeV9rb/Gomtvx3ZONX QPvem+GYWZFCQrLAvqMXRF5NwjGG/HXB51M0jNIsNXTXKJxyjFzvG0C+GesGEx6Gdq1iS+ O038oYFXnHCiZFmR5XgC3XTWISP8uCh5ccur0pFfvwpiPsrpY81bI91u+vTfU2dsRZte8R GFeoyHjdh2bdwlxRgRD75f259pmDhxugfuibM4Q6XHfJSdZukAV6KqCiPVjk6BkkeBEB8F Vnj91DiJPbTxwXD7GjNAwWVkxOHFBphmJG+3tFGxJwuzvSHuJfhn77qppG0oCg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670503626; a=rsa-sha256; cv=none; b=g3ImPt+RHQzaq7scbY4FyOb5iMxflp0BA8W+ruPSDwG3uDw/V5rv5EYrfYTmCqwwA2gsJg heejjit39Fg0+g5t2C4tHWxn6nxnZiI480PLMofZzrdttz5FvSGHBeIvt53/05fsYh+dJ8 8fNxgto9WDRPgcR4Otank9TLmHSQRwc0AkfD3aQG30aFmMAPMxtdyrpnu+U1CCkLTFmWeb CyuR14X9WqsVYf5RqEo2c4620LybbU8MYozU65Dn9C85P1ga/zTT2GKCmRv/BnsaG1ipJr NZ+66ihbGvs/QDokprMA9LtjyRZzqYhNE4E62mXZ5xZ5r/dP/nHklPmBydyrmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="anWl6RU/"; 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: -5.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="anWl6RU/"; 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: A72F83B7F3 X-Spam-Score: -5.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: wKE7Oepcdy+U Max Nikulin writes: >> Applied onto bugfix. >> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=304f18cb7 > > 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. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at