From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4GPmLxvxomUeFAEAqHPOHw:P1 (envelope-from ) for ; Sat, 13 Jan 2024 21:22:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4GPmLxvxomUeFAEAqHPOHw (envelope-from ) for ; Sat, 13 Jan 2024 21:22:51 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BQirg9qE; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705177371; 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=4EMmP3U0NaNr4G3b68kwPj3fCDdFF7YdWPyVmSYHd8Y=; b=mH+v2E/U9Cv7VK//Qe7rg0Vyz40GN38iYDQf06P07mimse9/EjdwOBye07+YRcqlqVbT/9 /pvYhtKepW8w20CXQb8xyPM6y7G+Pcb4SGs0/erUOqLT7ReZchdhbQJyp0gQH8wAEqV9W+ Frf6/zo8MjOrw4Gp031XgAZ81YMoLWArwDYhgfW9xQnCdPFfb9HQCrmpWvygngkvCckHT5 m6fgx6qevmeFUIMlAqBs1cXxiP8oWRKXnZPyFfd0ts5T8FcT6Iml9OHeGSj3FyIg18Hw0c lATahNbMfJEiHFkmppvcUAm+BpSDAzFN4BwBt0teFzMF1/Y9HRGZtMl641S9kQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705177371; a=rsa-sha256; cv=none; b=inBfJGlAV6EuGJ4tmYg+eH7KThxWnTVQmYY+JuEGLTk3POwONkR22F9YPmGibQEUyEhiWL kcHsS7hcAp7BCGR3Ah+f9EDV9MLSg2K1LsVQ7/4RK4LRnqchGBmflpEgqWP0ju6iA02QTQ NWh+ffzrheed+sWSk/9jVYZ8lCOwFwil++7FCp59cx2RYF1ad8IzjYzPKAkWMtVoVBkZLp xJqsTITGltM+jqXfoXJ5rFCoL4NTTVCHn8CiKiSyAsngjIRO34ChmWWEotFed+2GdNvGDl PJbHxoDdyNJMoQCXjWsD6g9to8HX9FXdUxmTuudJC/8urcr4WfVVfhzQTcAczQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BQirg9qE; 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" 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 8BBCE279BF for ; Sat, 13 Jan 2024 21:22:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOkWF-00071e-KC; Sat, 13 Jan 2024 15:22:16 -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 1rOkWA-0006xz-IK for emacs-orgmode@gnu.org; Sat, 13 Jan 2024 15:22:11 -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 1rOkW7-0001mu-Jk for emacs-orgmode@gnu.org; Sat, 13 Jan 2024 15:22:09 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5B76A240027 for ; Sat, 13 Jan 2024 21:22:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705177325; bh=rer0FpEoMjpjMjTOPm6Kq3WIeczUJeLG1lDXBM5JrYs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=BQirg9qEndBROYu9k1LrgIHV3M7FrZMZi9xOG0jEDMRU1kaViferdKCQRWMAMGu7q FvyRbAsDDiySu6VVVZ0leHH647yVy+3fdExk+0u1U2toB4ZGnJhZzVQNTBVvloniPY VUe3ub8gd/pMyomSblH9IwbZzFzzQLeplluMDoWSaxosD/2K99bleqqzI+aJATdGxs 67lz5A9rm+yQEAlfUMBn22YSNyIHhkXtsdtlS5tmj4slaCHmZDQMdNTrJtE/aaVyhJ pmEUDix4klMYXFpiMm1SYqH88KNy6SgpvPCWp8vAE1khTuxi4+AucGGxoad3AVDqR5 NiKWcsXeEwD7Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TC8vc4flJz9rxB; Sat, 13 Jan 2024 21:22:04 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: orgmode Subject: Re: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export In-Reply-To: <87zfx9t7di.fsf@localhost> (Ihor Radchenko's message of "Sat, 13 Jan 2024 18:28:57 +0000") References: <874jfvjo2k.fsf@posteo.net> <87cyu5uv7c.fsf@localhost> <878r4tfccn.fsf@posteo.net> <87zfx9t7di.fsf@localhost> Date: Sat, 13 Jan 2024 20:22:02 +0000 Message-ID: <87wmsddlw5.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.65; envelope-from=maciaschain@posteo.net; helo=mout01.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-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -7.40 X-Spam-Score: -7.40 X-Migadu-Queue-Id: 8BBCE279BF X-TUID: Xe/+pvDNpqUn Ihor Radchenko writes: > Juan Manuel Mac=C3=ADas writes: > >>> In such scenario, we may technically violate what users ask us to do: >>> >>> #+begin_verse >>> I really want newline here\\ >>> #+end_verse >> >> I'm not sure if users asked for that specifically. >> ... >> This does not: >> >> #+begin_verse >> I really want newline here\\ >> #+end_verse > > I am not sure. > What about > > #+begin_verse > I really want newline here\\ > #+end_verse > > This must not be indented. If I'm not mistaken, in TeX '\\' can only be used in horizontal mode: that is, within a paragraph. At the end of an environment like verse (\end{verse}) you are forced to enter vertical mode, and a new paragraph starts. Doing something like this, for example, adds a new paragraph after the environment: \documentclass{article} \usepackage{lipsum} \begin{document} \begin{verse} Lorem ipsum dolor\\ \end{verse} \lipsum[1] \end{document} Even this one produces the same result: \documentclass{article} \usepackage{lipsum} \begin{document} \begin{verse} Lorem ipsum dolor\\ \end{verse}\lipsum[1] \end{document} If one wants, for example, that after a verse environment there is no vertical space or indentation, the only way to do it is by modifying, globa= lly or locally (with another environment) the space after the environment and adding a \noindent to the following paragraph: \documentclass{article} \usepackage{lipsum} \setlength\partopsep{-\topsep}\addtolength\partopsep{0pt} \begin{document} \begin{verse} Lorem ipsum dolor\\ \end{verse} \noindent\lipsum[1] \end{document} (taking into account that within the verse environment there is also a left indentation that would also have to be modified). Therefore, I think that whether or not a verse environment ends with \\ is irrelevant to LaTeX. The problem is that when it ends with \\[0pt], for some reason that escapes me, the space after the environment is altered. Best regards, Juan Manuel=20