emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <esflists@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: exporting drawers: odt versus LaTeX
Date: Tue, 24 Apr 2018 06:37:48 +0100	[thread overview]
Message-ID: <87fu3lyxjn.fsf@ucl.ac.uk> (raw)
In-Reply-To: 87wowxobqc.fsf@nicolasgoaziou.fr

[-- Attachment #1: Type: text/plain, Size: 1344 bytes --]

On Monday, 23 Apr 2018 at 23:26, Nicolas Goaziou wrote:
> Hello,
>
> Eric S Fraga <esflists@gmail.com> 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

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-419-g52ba1a

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

  reply	other threads:[~2018-04-24  5:37 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 [this message]
2018-04-24  7:36     ` Nicolas Goaziou
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=87fu3lyxjn.fsf@ucl.ac.uk \
    --to=esflists@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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).