From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 GB8gEqhcY2O7WgEAbAwnHQ (envelope-from ) for ; Thu, 03 Nov 2022 07:16:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KGQhEahcY2MqmwAAG6o9tA (envelope-from ) for ; Thu, 03 Nov 2022 07:16:08 +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 0F3C212E0D for ; Thu, 3 Nov 2022 07:16:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqTVA-0001nn-DH; Thu, 03 Nov 2022 02:14:56 -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 1oqTV8-0001n2-LI for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 02:14:54 -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 1oqTUy-000762-Uk for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 02:14:53 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 45219240104 for ; Thu, 3 Nov 2022 07:14:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667456082; bh=n7b5lpEyVrrARvrwG9PTpbFlmDPiGDVU0UJwdloJKmc=; h=From:To:Cc:Subject:Date:From; b=LUXgptQOxRMCSjcoQZL0w8ZFrOpM1AocAAzlABC2Luib1/BieASK1BSzlXjFHF2DX 5HLxkO0UbTeWBPCy2OLS4SZq7DQ9uxFNuSDIFWsXzHV8bfWOKHhEkuosEsWfRfAMKc GxN7+HiIlRyXfj6E46JEL+kPLoW66EgizIAAb+OcYqgwL/wO6HX51RpY20ay+X8+Wq 9QSJtKZ9/s6kD0Y5PDNoC2Wy+IgVMtDHVcV9wiU6r8wChjmYQaaNPiOzo1e13WL2TR lvz3S7nPbkOS2fxv5UC/AROjY0z1Up6VkRB1qGcrualHqfDLdZ9mEz5K7nA4s/w+J7 Xxuey/4WlpCYA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N2tl44BhXz6tpW; Thu, 3 Nov 2022 07:14:40 +0100 (CET) From: Ihor Radchenko To: Max Nikulin , Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: emacs-orgmode@gnu.org Subject: Re: Line breaks and brackets in LaTeX export In-Reply-To: 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> Date: Thu, 03 Nov 2022 06:15:13 +0000 Message-ID: <875yfw8sy6.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: -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=1667456168; 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=62QHWZUm5kbuGqvwtR/QkCyy5vTGLRrakdqg7djKz+E=; b=EFyJuOF7hO7aqh+RiyZ6RxZpIQQQadi4aDK6W0UdsXDpgEQXUIu9N0YroYxpUJihJxi/h2 vAGzSpWWQl1Yl7REUlgP/96pFr2f6dTrMFf1mllZAL6aLNB5ueE/kITmk/mzN40NrsIbW1 S3DnrSwvblqTFXJlGlZQi49qxt1Q+8RrQhWFfnwXHc8kG/f6Oqd9FbdKFUFytDH53NrqDS V2q9ggSB/xsIxV8Ds9lhLpVk7ncZyz07/dn/04RjK+PLcber+7MkNjz091YGPb46+2f6fY eWxthb19czQTjcPmC2IIXAtxtLCWO89uJS8GSIHwzR+Dy3/6uYmyd6yPzfJTFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667456168; a=rsa-sha256; cv=none; b=JL4xEl5vCsd2KBWQGyLO8r0VNzhesEFd+ii1E2b1h0Yre3P4/180ynomAiR1GFwNkEUvEJ B+G6n8943okAcXFu9xDbi41bpPRBl3TSrTySmlZsDjpuFQrQ+aDTJeHyGguCCL0FwQeJzW VeazTm1V0z6v4uD6XZBeyrl5of5fRlaUBuCeFdJLOXqlCJkfj0pbj3gnji/3twEfuUhKWr rp7hyyzNyqA+WyI04WR+g8OT7LKdzogR0Sr3T575y4BRiiwwLPUcRtgniP4embQ5r85qAA McGtvbpGZjBh844ABQ0j6d29x7kl9uQjFDCUyvCiiu25Hwd1EFJ8ncoB18atpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LUXgptQO; 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.79 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LUXgptQO; 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: 0F3C212E0D X-Spam-Score: -5.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: xV47rtYNwqwW Max Nikulin writes: > On 02/11/2022 13:46, Ihor Radchenko wrote: >> Ihor Radchenko writes: >> >>> Should we, instead of using exact "\\[0pt]" string for line breaks, >>> define a new LaTeX command and then clean it up? This will distinguish >>> between \\[0pt] added by users explicitly and the ones generated >>> automatically by Org. >> >> I guess it will not work for that fancy table package we discussed >> above. > > tabularray package will require \NewTableCommand > >> Maybe the Max's idea with "\\[0pt]%some comment indicator"? >> I am just worried that % does have side effects in LaTeX. > > TeX reads > > "a% comment > b" > > as "ab", dropping newline and starting spaces. Of course, advanced users > may redefine category of "%" from comment to something else (regular > character, command prefix like \, etc.) like it is done inside verbatim > environment. 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? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at