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 8P/1CsZ7YGOEjgAAbAwnHQ (envelope-from ) for ; Tue, 01 Nov 2022 02:52:06 +0100 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 cA7+CsZ7YGO74AAAauVa8A (envelope-from ) for ; Tue, 01 Nov 2022 02:52:06 +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 C125B3975F for ; Tue, 1 Nov 2022 02:52:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opgQj-00076P-SK; Mon, 31 Oct 2022 21:51:05 -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 1opgQe-00073z-H1 for emacs-orgmode@gnu.org; Mon, 31 Oct 2022 21:51:00 -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 1opgQc-0008Er-7y for emacs-orgmode@gnu.org; Mon, 31 Oct 2022 21:51:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C4CF6240101 for ; Tue, 1 Nov 2022 02:50:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667267455; bh=2fJdjZAoVKV+6JMQ5AEiO3v9sn8LICMV+/cXxs6s21c=; h=From:To:Cc:Subject:Date:From; b=OPOILvL92DZnj2BYMVWHnNVPFfjIHmccswSXlyDutMB7AxX8IdkYwos+vS82x5srJ AC1uTSr199UzS0n/6Ku9MLL2LgAgRDr51BGM4sSOTQbXBY/H+awtRBFWfZ2SVaaG04 FeNCAGF8FTTMozhw/40FeAkbfPFPvZfjuvxIdQxVRuGtXqog69QZqCtmdrZqUxqi3m eRm91fTwcx03TFIxdYkmzMTk2z3XjEEf036nh0Ew4rvVArSL0swMyQLMRgcpNxrC+y xSO2dOhEg2dLw4GkgkgcMSE0A5ZiPjITcTDrk6qecEv2BebBH4z8OtuLTwJy/u8CCD M6vqa06Os1BbA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N1Xzf30yWz6tpT; Tue, 1 Nov 2022 02:50:54 +0100 (CET) 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> <87h701hhjp.fsf@localhost> <875ygf9j6u.fsf@localhost> <85e80572-33c6-aff5-2654-4f8de5fa143c@gmail.com> <874jvx7shy.fsf@localhost> <87fsfg30d5.fsf@localhost> Date: Tue, 01 Nov 2022 01:51:37 +0000 Message-ID: <87mt9bigra.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: -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_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+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=1667267525; 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=I5JbOBeN3NjF8KDE5VvtlqZhK8CInZfvjyAdqad6mXE=; b=jAztU1/hOmWe+NML6PjfINvbppRUGwOO0MGVTC4Oex4SUmLtTettycdrzh9hGIDPaqXUEw hQ/o/4U5KozIHRkHSvfnHbthKRVN9sjGYNqcMwtwbkeOF9MyAlvHeZ6WlgxM3MAVnmZJAw MST39EhUms67xIb7egFLIvOlV8kGU96Uasj4iP2+XBITMbJtwzKo8N72c6P3aedna96Pfu Yb0bO4eOvV7L1vw6AdLQmC11P9qvB2YECIVXOmCEcPGGsVw3nzcptbBsW/9Byobon71qf2 cemYNsZX+h6OtW2C9e4/FOpySrGFloA6OalsM6plP741Ie7a5zyRccwLAkg0bQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667267525; a=rsa-sha256; cv=none; b=hg9Jg4Ic5vucz9qqHQTYCd3dNhyb8JGICNixZVhhkwyP5SoPRCuoWN8BrZ0AgWdQCl8RwR oRy4VH/c+RhFpLPbN2w32LL2eT8/6HmPml5pmUi1tHTDu834FzzlG9CJLhrn4nccqKSLfZ SSS0JSPyMRPUK5r/mkQD95YV9gZ0GNpCemD8vkOUt7QzPCY4ZNE1P7DkDDlaoXNJR8BZ5+ kYw+AaMwta2b10tgI1K+XEQ+8/Q2+vSh9dwUoRzo8WP5ZRV+T8g/2tLfvjNbIkuPGIQQTe WWEuxMOKhNhroHUAHpS3PBru60CRQSFQ9z9+ogxwwogADFb+gNCf22oj3BRqsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OPOILvL9; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.97 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OPOILvL9; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C125B3975F X-Spam-Score: -1.97 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3y0oVUOb0YvY Max Nikulin writes: > On 22/10/2022 12:15, Ihor Radchenko wrote: >> as long as the next line does not match >> "^[ \t]*\\[" > > Verse package defines \\! and \\>. > > The only precaution that search pattern should ignore \\\[0pt]\] that is > a display equation "0pt]" Can you please elaborate? >> 2. Modify org-latex-template to replace unnecessary occurrences of >> "\\[0pt]" in CONTENTS when org-latex-compact-latex (you may propose >> other defcustom names) is non-nil. > > I believe, it is better to introduce a list of filter functions that may > perform such optimizing. I don't think so. Users can already define filters. What we discuss here is a built-in filter. It should be separate from user customization and only expose on/off options. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at