From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: exporting drawers: odt versus LaTeX Date: Tue, 24 Apr 2018 06:37:48 +0100 Message-ID: <87fu3lyxjn.fsf@ucl.ac.uk> References: <87bme929jf.fsf@gmail.com> <87wowxobqc.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAqeH-0000io-Ug for emacs-orgmode@gnu.org; Tue, 24 Apr 2018 01:37:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAqeF-0007Iv-Am for emacs-orgmode@gnu.org; Tue, 24 Apr 2018 01:37:53 -0400 Received: from mail-wr0-x22a.google.com ([2a00:1450:400c:c0c::22a]:35500) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAqeF-0007IU-3j for emacs-orgmode@gnu.org; Tue, 24 Apr 2018 01:37:51 -0400 Received: by mail-wr0-x22a.google.com with SMTP id w3-v6so47007057wrg.2 for ; Mon, 23 Apr 2018 22:37:50 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Monday, 23 Apr 2018 at 23:26, Nicolas Goaziou wrote: > Hello, > > Eric S Fraga writes: > >> I've gone through the code but cannot determine where this is done and >> why the ODT export target is treated differently to the LaTeX one. > > Both are treated similarly, really. The difference comes from the fact > that LaTeX has no markup for paragraph. Therefore, Hi Nicolas, this is not quite true; in LaTeX, a blank line (\n\n) indicates a paragraph but org does not treat a drawer as starting a paragraph. E.g. #+begin_src org ,#+options: d:test ,* testing This is the first paragraph. :test: This is a test. :END: #+end_src generates \section{testing} \label{sec:org499dcbc} This is the first paragraph. This is a test. \end{document} and this is what I want as I can put a blank line before the start of the drawer should I want a new paragraph. > You could write a drawer filter trimming paragraph markup if the drawer > consists of a single paragraph (e.g., no blank line). I could but this is not achieving consistency across the export targets and would not allow for a single paragraph drawer to be exported inline or as a separate paragraph. Thanks, eric =2D-=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-419-g52ba1a --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWt7CrAAKCRDIkZPY//z2 fW2LAJ9Ak9s4+TXsxKVqWvj3LGJ3yPzWvgCeJ9NNae7ZzP5jVD7lddQjQGSOiZw= =kq3W -----END PGP SIGNATURE----- --=-=-=--