From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 GMmxA57akWO0CwEAbAwnHQ (envelope-from ) for ; Thu, 08 Dec 2022 13:37:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OCZxA57akWN27QAAauVa8A (envelope-from ) for ; Thu, 08 Dec 2022 13:37:50 +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 B93443B524 for ; Thu, 8 Dec 2022 13:37:49 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3G99-0004hy-IU; Thu, 08 Dec 2022 07:37:03 -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 1p3G8w-0004R7-PY for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 07:36:57 -0500 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3G8s-0007U1-QH for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 07:36:49 -0500 Received: by mail-lf1-x136.google.com with SMTP id y25so1814581lfa.9 for ; Thu, 08 Dec 2022 04:36:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=vY3e48JPw2Wt7x0cwJlf+vgS6iRuiwj658fprkXFLI8=; b=KJf/ap0eLclHdmQx1rrow6pLal8vgomwQtXyP6Y/x9xkrQfqG4ryL+mdtMfqseVl6k tx6M4Um3nGpyHKbqmmClsqBp85UtCg+hq1o/i339NB8Vb776TEj9l9jTRLWAY0a8h3PW ONtCW6TdgNcszVN7V1d/14VxZQH/kIPgNVYWCKjtDmYvybATWOXBxmcAn4khvqzLvZn1 CNriR/KpoNS03XAEj0pvqyAmaaRrshKAFPGTYI+ym+Hf/DHxgYWi7PY/FdGgsgLJBeHz vQEGtI2nYbLKprehICq++HwxxpmxH07N/5sqeFeS3LEmP6xmJC3+9ufdUJCZ/1G5xGKt kqVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vY3e48JPw2Wt7x0cwJlf+vgS6iRuiwj658fprkXFLI8=; b=sJ9cDX0DTrejCyckb+HlUnFRoZwOWHp5IPsNpEyrqlO24gbv5mdd44Shz5MRkLXNSF X3r1LNxslZMNackIqtl7DPeW+q3gAzwx5931LIf6EMVWAX6sbD8UOfZIwzBpk2+Y8TJD fvxk78GFdlBd+7vx2/0nv60A7tMc2dqu+iYH66VP/eJp4TtBLDtFIuTAFBxeMMdw6JA1 2909QXGdOMYe1S3Rm0NCb7CEOw8KBo9AIfjoQNHthsctok8K0sSJuWc3XcEweHQ3hIZI SYuOxmiZxOMAmp3tPftNMoZb0zaMBEHCyVLrKp6Eh+aMTUY7eeqdNOkMrK5Mu1CVN8g4 30gQ== X-Gm-Message-State: ANoB5plpGwxrGh0AVMOzz5SjKPQrqSQXC4MyhCMo5vL7EHuE/2Qj6DvM m4ltMy7aPhmkHGoQgLFSCbqwyKMeJD0= X-Google-Smtp-Source: AA0mqf4VNqNfWyZ+ZBiVbBv5TPmrPckW8AxxvW0sL3iI80+igbNwP92hUY0qLXfKg7P1cNK3BMLRrQ== X-Received: by 2002:ac2:4422:0:b0:4b5:8421:587a with SMTP id w2-20020ac24422000000b004b58421587amr562127lfl.44.1670503004301; Thu, 08 Dec 2022 04:36:44 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id g3-20020ac25383000000b00492dba3c85asm3315050lfh.220.2022.12.08.04.36.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Dec 2022 04:36:43 -0800 (PST) Message-ID: <01f2474b-afc6-195a-7556-32c2cc5cf66f@gmail.com> Date: Thu, 8 Dec 2022 19:36:42 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] lisp/ox-latex.el: put labels inside example blocks Content-Language: en-US To: hugo@heagren.com Cc: Emacs Orgmode References: <87o7se86px.fsf@localhost> From: Max Nikulin In-Reply-To: <87o7se86px.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=manikulin@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.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, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.266, RCVD_IN_DNSWL_NONE=-0.0001, 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=1670503069; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=vY3e48JPw2Wt7x0cwJlf+vgS6iRuiwj658fprkXFLI8=; b=m9vmkuFJNrD50CEIH/HaRPiN/NEc37axYVcLhVJTqEXxjVp/gRSqbpx2s76bMJ8tX2D2/j 0+jx0/GwD3w674DuAJS6686dN/LFR1IgcALpUCmPVe/7v0UjiEdRP/351ixVz3PRVPA1Kp s0KZq1XTH+vlOg+cE+rbdN+xDZ3FeHLb5Tjhw+Jn0SrqPltFElGte/bekhGdy6l4ZB9DB6 euaAFKE+jVK5HOLFqH0K9o0kd+0xZdRSN9iswFpB7GEQ034HTI7F1WK3wWiT+LW/xD2o/1 3Iq4HKnZ9Zoj4QVbpAbb31zU+XMzBuhyAms+DuUvt+rWsovJJsY/BLTKVQpavA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670503069; a=rsa-sha256; cv=none; b=NYlIMWj1SYJa7aIKCETUzogVBQ+lYZ0uK39oQ7/ezbAPKH9Zj4oBfreJCAQ7P9eipWxnVL /N79NFEmXCHDPLGizcUTHbWVd64jl2CjN4cJUEL87GCbSwdzy0ccnW3B5HiAwBGcoQzs3C ybrk+tHUi6iUycCVC3W6zkHzKrYucc9zQDfyD847bbqjqz4F8W923EN3QX3WrIUzuDEZOg MWnbO3ClTKzQjRrI2x7PiAp/Fh7Z+no0e1b+ueiEbMB1UXV7Ak5ghu77np1dF3zNPtKacT +IfAmfyBSLNWlLgwm1QuG86KWYukqoc1ol51JrlNHRuV5XbViFm/SvoEHCzgCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="KJf/ap0e"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="KJf/ap0e"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: B93443B524 X-Spam-Score: 5.75 X-Migadu-Scanner: scn1.migadu.com X-TUID: yO0XoCVU4Nx3 On 08/12/2022 18:39, Ihor Radchenko wrote: > hugo@heagren.com writes: >> The attached patch forces example environments to be printed thus: >> >> ,--- >> | \begin{example}\label{ex:foo} >> | My example here >> | \end{example} >> `--- > > 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.