From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CN0DDeLpq2U0/wAA62LTzQ:P1 (envelope-from ) for ; Sat, 20 Jan 2024 16:42:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id CN0DDeLpq2U0/wAA62LTzQ (envelope-from ) for ; Sat, 20 Jan 2024 16:42:26 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=irpifRJn; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705765345; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=xYtJpimqeW4q3b/kyx97Rq67XG7M9ldXWaMUOOYE2js=; b=eKcP5BX11Mf7va/7T1FulVRP5Mf6Ggs5wnCM1YbRdZREipAdmZhWcqoIya0i/XFVNJdzz1 rYxYZEoeekXflp8DZbWiM9q1oYSJ/yxS8Kr4gOVuv09vA/Efpr1ih4kfrk4Hl5aMwiqqA2 u5dXmL+AtCIk1gxPCQniQSNGfBMsJhey9RB3XJplk4M9teooUimKLr9fqYfQgXoYECNYIU p2igMrl/+1mXg4wfsch10i6wW+RRTkv4uNmXPKKHm1xln2nBYvCVCbLKGXT6xnH7HvOTiM PKb43M3yYk6VzWI9Nd/NGD9ei4I15gSaMWgGeTRXv/DJm5cxypx5HHjODmQVyQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=irpifRJn; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705765345; a=rsa-sha256; cv=none; b=Mm+Is/W7f8HKsDFbYMAULhce3tXnUSBWLlW53inEpisg/l4dYt+osGTZDc0rAsY3H75s7O vqvugS4eMgyllnxHdNND1NciNXjjAlSDxjOEfoo6+zb/N6nTsUvB5P21RLbqrlLINQ6DI6 pI1jhW2ESUtTAiF0BxiXspL5oo7dGnY3aIon1O8HWzwimXwrx9rp6X7mchIMcFRpMhSz1G GobWWSV9qHUI3mYKXNknj1bgi3N9nFDr4dqZMd7czKHIQorbVQMpQLcZby/xOFBP3G5Tdm DjpHsacZN5ArG38QxFoD2y7CMlyj+Fn+TCeP0DzDgjhHdwTY/amonRwE6l5rog== 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 91C5523487 for ; Sat, 20 Jan 2024 16:42:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRDTO-00058w-Rp; Sat, 20 Jan 2024 10:41:30 -0500 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 1rRDTM-000586-J3 for emacs-orgmode@gnu.org; Sat, 20 Jan 2024 10:41:28 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rRDTK-00014Y-Is for emacs-orgmode@gnu.org; Sat, 20 Jan 2024 10:41:28 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5C256240028 for ; Sat, 20 Jan 2024 16:41:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705765283; bh=xYtJpimqeW4q3b/kyx97Rq67XG7M9ldXWaMUOOYE2js=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=irpifRJnB09FOGBbBl+pvzfVI2htjQrPdpqQ6Q8G4fKQUHbvX+fVYEEfC7vZwpSRQ vr/Uf1goMlgY0ceznbWjp/XBZIMHtgW6jn9WoOzUcjyAVbSf3dqugHGSBJndH5y4Uf kCat31WKB2lReb9zh+p0YgQkyGqtNtpX9ch336901zu566hXy2BuEizPP15ZW8PoQ2 M9AfzUeEUshOS2Cj+MfoUYxm2hWVg206K9aHlcZUxVxCujaYitnaiXmHlX9dODTNI0 4aYeNwdaenrk9tn00jrTDhxKlLNu2OmhjQxPqZIYIvSsXJG42Ew/NoYKltGTKINJNX w8YO/wwtaMvOw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4THLLV4bT6z9rxL; Sat, 20 Jan 2024 16:41:22 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: orgmode , Max Nikulin Subject: Re: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export In-Reply-To: <87o7dg5d8f.fsf@localhost> (Ihor Radchenko's message of "Sat, 20 Jan 2024 13:46:40 +0000") References: <874jfvjo2k.fsf@posteo.net> <87cyu5uv7c.fsf@localhost> <878r4tfccn.fsf@posteo.net> <87zfx9t7di.fsf@localhost> <87wmsddlw5.fsf@posteo.net> <87r0ikrt5h.fsf@localhost> <87o7dnefwo.fsf@posteo.net> <87cyu1l69f.fsf@localhost> <87il3tax9a.fsf@posteo.net> <8734uwjerg.fsf@localhost> <87o7dju9vn.fsf@posteo.net> <8734uuaj11.fsf@localhost> <87h6j96xn5.fsf@posteo.net> <871qac6v5j.fsf@localhost> <87o7dgf8bb.fsf@posteo.net> <87o7dg5d8f.fsf@localhost> Date: Sat, 20 Jan 2024 15:41:20 +0000 Message-ID: <87frysf1wf.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.61 X-Spam-Score: -8.61 X-Migadu-Queue-Id: 91C5523487 X-Migadu-Scanner: mx12.migadu.com X-TUID: tB1292bC5yRE Ihor Radchenko writes: > Juan Manuel Mac=C3=ADas writes: > >>> Paragraph\\ >>> @@latex:[foo]@@ >> >> But since in both cases it is literal LaTeX code, the correct thing >> would be for the user to be in charge of adding the curly braces to the >> square brackets. I mean in such scenario it is LaTeX code, not Org. > > Not really. Because we do not give guarantees about the details of LaTeX > export, we should try hard to not break things that users may put into > literal export snippets. > >> Anyway, in both examples it does not make sense for LaTeX to end a >> paragraph with the \\ macro, which is why we commented in previous >> messages in the thread. The \\ macro is only used in horizontal mode; >> this macro does not add a new paragraph but rather a forced line break >> within the paragraph. > > In the example with @@latex:[foo]@@, \\ is not at the end of a paragraph > - it is inside paragraph. What I mean is that literal LaTeX code is LaTeX code, despite the redundancy. IMHO, Org's only duty in that case is to export such literal code as valid LaTeX code, but Org "does not know" what that literal code consists of. The user who enters the literal LaTeX code is the one who has the duty to add the necessary elements to that code so that it is compiled correctly by LaTeX. Let's look at this as a territorial question: Scenario A: @@LaTeX:\libebreak@@ [ipsum] =3D=3D> the problem is in Org territory Scenario B: lorem\\ @@latex:[ipsum]@@ =3D=3D> the problem is in the user's territory Best regards, Juan Manuel=20