From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 0A4kIMAWUmMuewAAbAwnHQ (envelope-from ) for ; Fri, 21 Oct 2022 05:49:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SH4jIMAWUmPpEwEA9RJhRA (envelope-from ) for ; Fri, 21 Oct 2022 05:49:20 +0200 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 3459716E83 for ; Fri, 21 Oct 2022 05:49:20 +0200 (CEST) Received: from localhost ([::1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olj27-0002Nk-CE for larch@yhetil.org; Thu, 20 Oct 2022 23:49:19 -0400 Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oliuH-0003aK-4X for larch@yhetil.org; Thu, 20 Oct 2022 23:41:13 -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 1oliuE-0003aC-20 for emacs-orgmode@gnu.org; Thu, 20 Oct 2022 23:41: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 1oliuA-0000w9-IT for emacs-orgmode@gnu.org; Thu, 20 Oct 2022 23:41:09 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 81149240103 for ; Fri, 21 Oct 2022 05:41:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666323664; bh=jBiD4AsmOuD3jgcDAtpjBO1Q3v3rW7cx2YX9ST2WP/E=; h=From:To:Cc:Subject:Date:From; b=QBkzcPliAxNXdE6Xn0pL3XItWhYEwGndtnZoPdWxwD/x2BiyfEwC5nNOgvPfMGVPz 3KK2R4PVQ64YNREoKdvLorH+6MxlANcZnyv0jtrP8+MJY2Vnu15a/rCVG4Rywsgeny MPbBGCLl5erz59FGfIQ0LHi66ut7HYUswLhW1j+tEGyzh8WKIyxbgHHrQ+7T5AmMve oTpYn8KK6P2TiDEHlv/6/Pa0AieagkpU+/+/xUvtPBNj7IHG7yTqhhy+LTM8mehonj kw6oAoYYZ1DM1p6J3cPiYjX8mw4EUIFI/+GCgh8P5/pFhLtDEPJ8aDh9B0x8gxvPp2 nakYZXVF9s2hA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mtqxn29XZz6tnx; Fri, 21 Oct 2022 05:41:00 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: Org Mode List , Juan Manuel =?utf-8?Q?Mac?= =?utf-8?Q?=C3=ADas?= Subject: Re: Line breaks and brackets in LaTeX export In-Reply-To: <85e80572-33c6-aff5-2654-4f8de5fa143c@gmail.com> 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> Date: Fri, 21 Oct 2022 03:41:45 +0000 Message-ID: <874jvx7shy.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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" 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=1666324160; 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=oi8xIJy/h9OzjDgjMwxarFtaWAq6/HJwAhyAEIr88pE=; b=KMqh+ZV/G/AUHFbEIihjC8kujc0gAIZSu9ctLn0atDMGyZZatydIOlOllpli991Soi9n3C 1IS5X56bsO9tC1CRQtrFOBSWVabG2QxqZZ9FEGyqJQox9UDu3+SfYBEsKKBK2g9WiIEVSk f2NzdDxDC/DFcer9n2XWDxUSJAefanx7raOInyvvN1mjt6S65JzDTvDlw7oI9yENEzrkzb 5fO38jr1DTE/2uYKzyiiSjr2CDFPyPQOrgKs+cWgSx0RBF+XIBeaYBROj1Sn9sW3m+A5Vh YpeRDLgnN5cmD80nCQFE1EHNWSRWh8Q72Qc57dIiJ5l16hkvfOSjDt8FOe3ELQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666324160; a=rsa-sha256; cv=none; b=lE49PND07m/iPIIxj1P2Nhppk+UeD0OucbvuvAIdiDKJ2g1jfykC2GQ6VBZjkmmBx7Csan mnzEjMhx8wFMOmCJr6pIQG3O5RagoneQA4oZc/88p45vESSqBQlNcAwHFgrNk9NuvDGnxh sFFgwUHKTBscppB0iSObkDbSJaP10kT6zVat4snWxycAR9t1sr5992gknw6dp0K5g39bKs 3GR+QvNtNxNwykUo6aKH06FHkI8lH3MPor2Artn0NcTvmLEejhZ/Kst8KHP5/n3Ta3HG4o DjIdZxRGrD4jxyATbDEMSUJXolkHUSvlWNkAAhKJIdlJghfu65drtvrHZinvPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QBkzcPli; 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.44 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QBkzcPli; 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: 3459716E83 X-Spam-Score: -5.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: hWLkQO9b4Nht Max Nikulin writes: > On 20/10/2022 12:07, Ihor Radchenko wrote: >> When transcoding children (e.g. table rows), the sibling rows can always >> be accessed using org-export-get-previous-element and >> org-export-get-next-element. > > Decision if escaping is necessary should be based on export result, not > on the source element. I am not sure. The export result may originate from constructs like #+MACRO: pagebreak @@latex:\\@@ Some paragraph {{{pagebreak}}} src_elisp[:results raw]{(format "@@latex:[%dpt]@@" (or my-spacing-value 0))} The point is: it can be done on purpose for some reason. >> I am not sure what you are referring to. If modifying exported string, >> it will suffer from the same problems as your idea with comment. > > It is a brain storm idea, I still unsure it is feasible. > > I mean info "(elisp) Text Properties". I do not think they are usually > ignored by filters. \\ substrings added by ox-latex may have some unique > property. Export filter searches for occurrences of \\ to check if > escaping is necessary, but it ignores particular location if the text > does not have the specific property. I would prefer to mark output of > export snippets with another property value and do not escape them. It > is a kind of out of band communication. Unsure if text properties may be > lost due to string operations in an exporter or vice versa to propagate > to the source buffer. I see. I feel like it is too fragile to rely upon. At least, I'd use it only if there are no better options. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at