From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: exporting drawers: odt versus LaTeX Date: Tue, 24 Apr 2018 09:36:42 +0200 Message-ID: <87efj5njhx.fsf@nicolasgoaziou.fr> References: <87bme929jf.fsf@gmail.com> <87wowxobqc.fsf@nicolasgoaziou.fr> <87fu3lyxjn.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAsVR-0006AN-LL for emacs-orgmode@gnu.org; Tue, 24 Apr 2018 03:36:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAsVN-0001cz-K8 for emacs-orgmode@gnu.org; Tue, 24 Apr 2018 03:36:53 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:55041) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fAsVN-0001Xw-DR for emacs-orgmode@gnu.org; Tue, 24 Apr 2018 03:36:49 -0400 Received: from saiph (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id EC7B1240013 for ; Tue, 24 Apr 2018 09:36:46 +0200 (CEST) Received: from ngz by saiph with local (Exim 4.89) (envelope-from ) id 1fAsVG-0005XN-Q2 for emacs-orgmode@gnu.org; Tue, 24 Apr 2018 09:36:42 +0200 In-Reply-To: <87fu3lyxjn.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Tue, 24 Apr 2018 06:37:48 +0100") 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: emacs-orgmode@gnu.org Hello, Eric S Fraga writes: > 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. Of course it does. Drawers contains paragraphs, not the opposite way. > E.g. > > #+begin_src org > ,#+options: d:test > ,* testing > This is the first paragraph. > :test: > This is a test. > :END: > #+end_src To convince yourself, you could put point at the beginning of the first paragraph and evaluate (goto-char (org-element-property :end (org-element-at-point))) > 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. Again, you are confused because LaTeX treats blank lines specially. The "latex" back-end preserves blank lines from the original file. So in this case, the absence of blank lines makes it think there is a single paragraph. However, it wasn't the case in the source document. Regards, -- Nicolas Goaziou 0x80A93738