From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6DFjChouTmOtQQAAbAwnHQ (envelope-from ) for ; Tue, 18 Oct 2022 06:39:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oDhPChouTmN4QAEAauVa8A (envelope-from ) for ; Tue, 18 Oct 2022 06:39:54 +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 D0C5320699 for ; Tue, 18 Oct 2022 06:39:53 +0200 (CEST) Received: from localhost ([::1]:46464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okeOP-0001Og-19 for larch@yhetil.org; Tue, 18 Oct 2022 00:39:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okeNG-0001OV-MB for emacs-orgmode@gnu.org; Tue, 18 Oct 2022 00:38:42 -0400 Received: from mout01.posteo.de ([185.67.36.65]:44969) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okeN3-0001kg-Ja for emacs-orgmode@gnu.org; Tue, 18 Oct 2022 00:38:42 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8E334240029 for ; Tue, 18 Oct 2022 06:38:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666067900; bh=bqRbpse5U8EwZlm5FBRqWVFqXHpkHFOPf+W6zPjMSdo=; h=From:To:Cc:Subject:Date:From; b=kgsT+YECJY0YsQa28rNbqbIwFoEnPixYxbfCT2cIOSh6kR36prIZW/ekg+iq4oaMg 86pKtCkOvW2qlsK5yUaoELG0MK+laNZRR+yJzK3uhUR2eH871W0OBvVxX+J0I8SZNg 2Ink98jdca42SHuNmvub4dWNcqg6Iq0SnMRMGkXNeloN9J3/faLsxWXR+VnLF0Krir OGxWGbVyrIpJ1uOIemJADcdC5On8wOc5WkQaWFD42qGZ77FT/vaNge6kN6E+XK909C n/ipOln401m25ajVBPewFL6Q+zenELZ0Mr0BXnknhXwPYOp/A+fqjnTYHA9gTfbDOp /dDL2oB86QkVw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Ms1MG6vVxz9rxN; Tue, 18 Oct 2022 06:38:18 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin 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> Date: Tue, 18 Oct 2022 04:39:06 +0000 Message-ID: <87h701hhjp.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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, 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=1666067993; 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=a6YPYzbFfMHhqGagJVgd5XKk+ebQhr0xbzNSzTsqzM8=; b=oMltLL5AdTm3Jr0rxOb3rgTvEb0S7se1Lly0Bq+oEMmL/nYrlu6Eme6acLcZUP3zSHrBOv OJ2nU4Se+2g6f5pO1R8PvClHx4qLJiu2JodgWkRgThqurDMTHhOnAZvtnHcgiVf5Htbthv McNjpKnt/iacvlQPiha7FqDwzZPXy9gg+NiKhX3o25OB5GgqXrm2/GRivW94QMDWCeiWZ5 WivEOecT0HN2Ce+F+H4fNXTFgleIYLIkJRVxVSj0rYYTLh/B6id3/SMRs1fE2dfhxD1ybX 1mwCJBR4n11m4nh46xTC3llji1IYiFVgYxWnfz9m1JMujcgPx8mE5NeFi6V8aA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666067993; a=rsa-sha256; cv=none; b=gHRBwCkLE+YKe3MmgKx4/O2Z30GpmYBW2JgQfwfBPERkBhYb3DpuZL9PmdHSOBAg42Qiz8 Bd1+PhMTxblQYRWQGdznJbjRSvDNz2sAAO3OA7GR1yx/uxNuxLNCI/YQeT7AuzXmFAP88g r1wjv89MNVjQFC9oMWar41VFprKNm9ifm4+3zcSLYNE7c2y0RY/xGba1WPqYfzlsiK7XIW XZzvGSCJSl9iC04Pp0bc2+9vGW4D75aNLDi3o0gP5x5p5uvgrjqTNu/E43e8ux6yX1G0lB /HmNV7RkqJOS7ZiUvgpUkSYQThsjum/jQg92Sw0LvWltwhUJ6LfXm+fVPSgOwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=kgsT+YEC; 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: -3.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=kgsT+YEC; 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: D0C5320699 X-Spam-Score: -3.62 X-Migadu-Scanner: scn1.migadu.com X-TUID: x0PJSEim8w5H Max Nikulin writes: > Selectively adding some workaround require complete reimplementation of > exporters. I have some curiosity concerning pandoc approach, but I am > unsure if I will reserve some time to read its code. Maybe or maybe not. We have org-export-get-next-element and a number of exporters doing something special for the first/last object inside a container. So, an alternative workaround might be possible. But certainly more complex and fragile. > An idea how to avoid complete redesign: at first add something like > %__ORG_PROTECT_NEWLINE__ > after each \\, later at an optimizing pass remove the comment if next > line does not start from a star or a square bracket, otherwise use some > workaround, e.g. "{[}". \relax may be suitable as well (in the beginning > of rows, not after \\). I am not sure if it is a good idea. It may interfere with export filters. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at