From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id qORpGK2glGUWagEAkFu2QA (envelope-from ) for ; Wed, 03 Jan 2024 00:47:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eHSnEa2glGW5zQAAqHPOHw (envelope-from ) for ; Wed, 03 Jan 2024 00:47:57 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=d99Dxtkf; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704239277; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=0kaV5HiuycjyfQZLLIGBRqrBLxQJOM6tzwS3dHI6dgw=; b=d0AKhUYJ0ScgIC83MJ9LibZHSKsNkQR1S3S8HmQsExWJzMaFdX4AfrvBHpz6VntXvlDQRr Udt1qICjD3BN9tRFfpnJw3+CfZv1m64+eOwfFWh96e9U+bzgLmPnS5JGqX8DzPLdxXbKbk Pwr2AbMlVUwK4iC1eF9iqTGKiBPbGdGpY5JwMZZaGb+NTiXnLwFs3Xk/OU7/orxTZ6tYBF HLQQdklzUfRBTnQ2EvwF1SwKbuaYclcIGh8NsKuylAttEyVcB6MzdA8nZwo8eM1FBAfHNX Kop6MDwaqN4HwDEdSXLBdJJq/yHcF9yIcxcmglF4He2TZ3VkxrqidBurryQxug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704239277; a=rsa-sha256; cv=none; b=g52vNd0ZXNMbEwbepwOVOvLgrBR1qVOivlGdwH2C/v/8AdjrWmO8Iyb+I5aUvBnFQ4Bb+D 7VJ+n7OBqQ3Ym7hf/EEo7NZMjSJmX4rTHyoT0mBgA2uPvggcPD587F1RAmvtsVTdSdaST4 mm0jlo6L5veojhbPMhh3I103y6bBMhOcI9LsyPdYEnHHxTPgNHXvo9FME6vr12RCFAEdm9 pubbIxFZH1SScGpUeAeGXXoeZAL9RDsMei3/vXXYGhVRlrRlV/y/tuDQMxO9m4EurM1Pr4 cmrys4DuJ4iaeRXPLU+v5OMXwFHpus0Q3bVzH4Q/HZy5LKXfb/7eYqqEoU3wzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=d99Dxtkf; 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"; dmarc=pass (policy=none) header.from=posteo.net 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 C23221A5F9 for ; Wed, 3 Jan 2024 00:47:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKoTI-0004b1-06; Tue, 02 Jan 2024 18:46:56 -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 1rKoTF-0004an-BF for emacs-orgmode@gnu.org; Tue, 02 Jan 2024 18:46:53 -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 1rKoTC-0002R3-GO for emacs-orgmode@gnu.org; Tue, 02 Jan 2024 18:46:53 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 80AFD240103 for ; Wed, 3 Jan 2024 00:46:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704239206; bh=0kaV5HiuycjyfQZLLIGBRqrBLxQJOM6tzwS3dHI6dgw=; h=From:To:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=d99DxtkffI24msXjB/RLQMqWPnUTOq1cjOFD3iGdNjol6hNOVww+Bq8F518lLo+zZ zpbrGK3bU2Ijh95ohQrnUUSbFNZtBG9cDwSEsliGTPdV99dOWVxTtw47y/HXLfIlaq mudWYqCFICb/QeWXztgUrozwIszUIOqEHgODcC0UDiUG8UebSHjHn83gQM2v87gxjz GSnrE330P7i1Qm8Xf58E01J6//Q/EMir0BDYseilv+dKQhU8YGF0xYKuZntMPcGcpy xplCtGITQuCEep6ks4E/hYFuKjZDbtvHozd1OuYQyL1O/KoB/BwXMnUV1yxev2Syl9 oncsSkRlp0hgQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T4Tyt0R5Cz9rxD for ; Wed, 3 Jan 2024 00:46:45 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export Date: Tue, 02 Jan 2024 23:46:43 +0000 Message-ID: <874jfvjo2k.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.99 X-Spam-Score: -6.99 X-Migadu-Queue-Id: C23221A5F9 X-Migadu-Scanner: mx12.migadu.com X-TUID: v4u6Hge0YvKA Hi, I recently discovered that if the last line of a LaTeX 'verse' environment ends in '\\[0pt]', the space after the environment is drastically altered. The space after a 'verse' environment (which is a modified list environment) must be equivalent to \partopsep+\topsep+\baselineskip. I have done the test with a document, defining a rectangle of that height with tikz, where you can see the difference in vertical space with and without '\\[0pt]': https://i.imgur.com/khbboDZ.png Naturally, this implies an issue when exporting the verse block to LaTeX, since the presence of the '\\[0pt]' string alters the expected result in the compiled PDF. My suggestion is that the last line of the verse block is not exported with either the string '[0pt]' or the line break mark '\\', since it makes no sense for that mark to be there: it is the end of a paragraph and the very end of the environment. Can anyone think of a possible scenario where removing the '\\[0pt]' in the last line would cause a problem? If not, I might send a patch in the next few days. (I'm afraid that going back to abusing replace-regexp-in-string. I can't think of any other more elegant solution...). Best regards, Juan Manuel=20 --=20 Juan Manuel Mac=C3=ADas -- Composici=C3=B3n tipogr=C3=A1fica, tratamiento d= e datos, dise=C3=B1o editorial y ortotipograf=C3=ADa