From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: emacs-orgmode@gnu.org
Subject: Re: exporting drawers: odt versus LaTeX
Date: Tue, 24 Apr 2018 09:36:42 +0200 [thread overview]
Message-ID: <87efj5njhx.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87fu3lyxjn.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Tue, 24 Apr 2018 06:37:48 +0100")
Hello,
Eric S Fraga <esflists@gmail.com> 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
next prev parent reply other threads:[~2018-04-24 7:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-23 16:05 exporting drawers: odt versus LaTeX Eric S Fraga
2018-04-23 21:26 ` Nicolas Goaziou
2018-04-24 5:37 ` Eric S Fraga
2018-04-24 7:36 ` Nicolas Goaziou [this message]
2018-04-24 8:34 ` Eric S Fraga
2018-04-24 21:43 ` Nicolas Goaziou
2018-04-25 6:17 ` Eric S Fraga
2018-04-30 11:46 ` Nicolas Goaziou
2018-04-30 13:36 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87efj5njhx.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).