From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eM7UBxjYY2PPQgAAbAwnHQ (envelope-from ) for ; Thu, 03 Nov 2022 16:02:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MMLeBhjYY2Nl3QAAG6o9tA (envelope-from ) for ; Thu, 03 Nov 2022 16:02:48 +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 D88C446C7F for ; Thu, 3 Nov 2022 16:02:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqbid-0003Ld-0I; Thu, 03 Nov 2022 11:01:24 -0400 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 1oqbiQ-0003L0-II for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 11:01:10 -0400 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 1oqbiM-0005Tk-BM for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 11:01:10 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 650C0240109 for ; Thu, 3 Nov 2022 16:01:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667487661; bh=agruuwMr5CUQFJ0z7LuTh2ZjwAudbuAwKkgfEJcd8zs=; h=From:To:Cc:Subject:Date:From; b=mB4fjE8gc1hrEYyRRjcXIMv+ytqcjTCxza57yAcpwG8r7XTydZjEGwUG6B0oDkoO7 mgoTXW0lovbbVL24tjbISBITRbCHTme9mmVT4s1y+eYFV8O86yN+gmzxPNzggfjZhb qhHtjhpQjgY+d/nsmBzoxXD5B9mn6Y60E9z8uTMkXClOCmnZ93Y2QCe9GBY79a/m8E QxCMk4+N4BdriwlWpAaQ/A7rwLaDxNFZvk0N+QTl8mf5HB0nYDeqg69dCehtLGolK1 h/15snBQ0VKczrD7LXxyPH308hQGu0tLx36zzbMN5OEre+TVWdbLmYvh6d/qZrWQiZ B8JLt5DHbHCmA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N36QM489nz9rxP; Thu, 3 Nov 2022 16:00:57 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: Line breaks and brackets in LaTeX export References: <875ygk6a8z.fsf@posteo.net> <87a65vitbz.fsf_-_@posteo.net> <87edv6izx4.fsf@localhost> <8735bmelgu.fsf@posteo.net> <878rlecx49.fsf@posteo.net> <87h701hhjp.fsf@localhost> <875ygf9j6u.fsf@localhost> <85e80572-33c6-aff5-2654-4f8de5fa143c@gmail.com> <874jvx7shy.fsf@localhost> <87fsfg30d5.fsf@localhost> <87mt9bigra.fsf@localhost> <87edullusk.fsf@localhost> <87bkppluoy.fsf@localhost> <875yfw8sy6.fsf@localhost> Date: Thu, 03 Nov 2022 15:00:54 +0000 In-Reply-To: <875yfw8sy6.fsf@localhost> (Ihor Radchenko's message of "Thu, 03 Nov 2022 06:15:13 +0000") Message-ID: <87iljwgk0p.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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: , Sender: "Emacs-orgmode" Errors-To: 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=1667487767; 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=qvt2kiWEsTFrxHR8gRbO7ofJ1XKKhuIRGYPvQ9sK8/s=; b=W2qCCkPLHCz8qmNZx1TQjZLKM03o1sI+6DurcMO1I+RYiF5UFLaPCAKN+1YdCiIM/L96pS m+eJN2dYXt1xvF3TUcjzOBPqHWPyvqIL4VGR74bdB8vUtyj4cSGiwL93qLGsfV+xsmky+z x2FOJLJiOA1HoKZKeoYb9ZKat6+IXjb/4PD9qa7Kp40GhA4Vp4yO8WrcdSz77NjlApbImI Kvq3EnLgc6YG6Cb45fwGhx0YNkAEh/UtdQ/4Xk2DTf0Rdr8sNWZzxzXK2H7ML8UpBZolzx nCJmH6HNx0UwWzKfphGeCR1ADqvWF+WegLZ90oDUnkILZXrZASrR54Bi+dHBag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667487767; a=rsa-sha256; cv=none; b=j7jUxcbpCgE81pjQ97QDTpieg2SHb8ThRAAP9pdC1rHqFM3GkWjbr+GgiHcYtFU4DbJBJt AiZcmhA/LywQigZz3Dr7ulJ/CPvcaz9lTjAW+k9WRSYDpxUUH+COoLbRJTnqGDl/WntBNd lKox9uog1KpyD5ttZLXotl/Tva+mUfRdYpFWf/2vluzPJtG/HpNTZahl8f8muOG21K9d85 9egJbuXbybPgOHwF3GmQFmJRJjuem6U4GqcGglizAhmVSzPp1pnn1va2j2zCzzQai23+nX vP4b6moGnyg9kPit7zTQ/NQHn2vNMqls3bkuU0uXgeektTHfcos6s5utPSVBxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mB4fjE8g; 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: -9.49 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mB4fjE8g; 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: D88C446C7F X-Spam-Score: -9.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4mu+P/cpWrWF Ihor Radchenko writes: > These arguments mean that auto-cleaning \\[0pt] is not always safe and > may be a subject of surrounding LaTeX context. Moreover, there is no > clear alternative to \\[0pt] that is guaranteed to work. > Thus, the whole idea with cleaning up the generated LaTeX cannot be > enabled by default, and I am not even sure if it is something we want to > implement in the core. > > Juan, maybe you have some good alternative suggestions? I'm afraid not. I've been trying to follow the thread these past few days and frankly I can't think of anything beyond all the options that have already been discussed. I agree that the safest solution (or the least compromised, depending on how we look at it) is to add [0pt] in all cases. I believe this should not bring any unexpected consequences. At least I've tried all the tabular environments related packages that I know of and there don't seem to be any problems. And in the case of the verse package and verse numberings, the solution is ad hoc with the patch that I have planned (I hope to find a gap these days to finish it and test it...): The idea of the patch is to replace the current separation between stanzas that Org adds (\vspace) with a white line, and (only) in that case it would be necessary to ensure that the last verse of the stanza ends in \\!. On the other hand, if 'factory-cleaning' unnecessary instances of [0pt] is going to be problematic, I also agree not to add that action to the exporter. I think it would be better to leave these things up to the users, depending on their use cases. After all, it is not difficult to do it using a specific export filter. Maybe add some tips and examples of basic filters in the documentation, especially for users who don't have a lot of experience writing filters? BTW, I also hope that one day this LaTeX problem, which has been there for so many years, will be solved (because it should be considered a LaTeX bug, or a LaTeX design flaw, as Maxim commented in another message). Best regards, Juan Manuel