From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SBfwGbnw2F9kVgAA0tVLHw (envelope-from ) for ; Tue, 15 Dec 2020 17:22:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6LjGFbnw2F8QFAAA1q6Kng (envelope-from ) for ; Tue, 15 Dec 2020 17:22:01 +0000 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 E9EE89402A9 for ; Tue, 15 Dec 2020 17:22:00 +0000 (UTC) Received: from localhost ([::1]:48244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpE1O-0004w9-5G for larch@yhetil.org; Tue, 15 Dec 2020 12:21:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpE0m-0004w2-MW for emacs-orgmode@gnu.org; Tue, 15 Dec 2020 12:21:20 -0500 Received: from mout01.posteo.de ([185.67.36.65]:50529) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpE0k-0004ti-8h for emacs-orgmode@gnu.org; Tue, 15 Dec 2020 12:21:20 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id F37E4160060 for ; Tue, 15 Dec 2020 18:21:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1608052875; bh=um6He6bPlcaLfppQLgaonhowuj2JYlUvlsVq7t0nfTA=; h=From:To:Subject:Date:From; b=YUkF6sScHgzN5zp8HpdgxGIjlLqgOjlSg/6rpugT5M+T34TSRvwKctB59LHD1z2/L pp+eRgdM+589ErcAjXf2S/822uGKNvP96XOtOOxVThYAi1nMkAnnCkOR5FQaWZ3k5E AKptWLXXOxUGdCIdTA+bQkerucH5lpplIS0IBmwBCRw7OVu49lTHVRkP37j70g81YP 2JsnahnVAvAxoVSzJ8mnikFAi0rlGUjwX39Tizw9mFZ1KC/QFiPNFO8w9rwtpY58OL oP7z3PpfiRSi1cJ2Sv1XFtLJPq9ljYzQwjOgSjsIlbPwXjZV5EArqGLSQShfPqidBz ciUrHg519ZtkQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CwQ5k2WtDz6tmR for ; Tue, 15 Dec 2020 18:21:14 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: [Small suggestion] on exporting verse blocks to LaTeX and vertical spaces Date: Tue, 15 Dec 2020 18:21:13 +0100 Message-ID: <87k0tjasty.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-=-=" 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_H4=0.001, RCVD_IN_MSPIKE_WL=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.23 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-Spam-Score: -3.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YUkF6sSc; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: E9EE89402A9 X-Spam-Score: -3.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1Wva7deTAByO --=-=-= Content-Type: text/plain Hi, When exporting a verse block to LaTeX, each empty line between 'stanzas' results in the command =\vspace*{1em}=, which is fine. However, I would dare to suggest that, in order to be more consistent with the LaTeX `verse' environment (both the one that comes by default and the one provided by the verse.sty package) the separation between stanzas should be marked with: - the last line of the stanza without =\\= - + one (at least) empty line which is the correct (or at least the most common) way to separate the stanzas within this environment, since each stanza is still a paragraph whose lines are cut off. Thus, we could also redefine globally the \stanzaskip length provided by the verse.sty package (i.e. \setlength{\stanzaskip}{1.2em plus .2em minus .5em}, etc.). For example, with this (the number of white lines does not matter): #+begin_src org ,#+begin_verse Lorem ipsum dolor sit amet consectetuer adipiscing elit Lorem ipsum dolor sit amet consectetuer adipiscing elit Lorem ipsum dolor sit amet consectetuer adipiscing elit Lorem ipsum dolor sit amet consectetuer adipiscing elit ,#+end_verse #+end_src we should get: #+begin_src latex \begin{verse} Lorem ipsum dolor sit amet\\ consectetuer adipiscing elit\\ Lorem ipsum dolor sit amet\\ consectetuer adipiscing elit Lorem ipsum dolor sit amet\\ consectetuer adipiscing elit\\ Lorem ipsum dolor sit amet\\ consectetuer adipiscing elit\\ \end{verse} #+end_src Perhaps replacing these lines in =org-latex-verse-block= #+begin_src emacs-lisp (replace-regexp-in-string "^[ \t]*\\\\\\\\$" "\\vspace*{1em}" #+end_src with something like this #+begin_src emacs-lisp (replace-regexp-in-string "\\(\\\\\\\\\n\\)+\\([ \t]*\\\\\\\\\\)+" "\n" #+end_src ? (On the other hand, I also think that vertical spaces between groups of lines in verse blocks should always be exported to any format as a single fixed space, regardless of how many empty lines there are). Regards, Juan Manuel --=-=-= Content-Type: text/html --=-=-=--