emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Maxim Nikulin <manikulin@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Comments break up a paragraph when writing one-setence-per-line
Date: Wed, 21 Jul 2021 16:22:31 +0100	[thread overview]
Message-ID: <87bl6vy9mw.fsf@ucl.ac.uk> (raw)
In-Reply-To: <sd9c46$p86$1@ciao.gmane.io> (Maxim Nikulin's message of "Wed, 21 Jul 2021 21:48:37 +0700")

On Wednesday, 21 Jul 2021 at 21:48, Maxim Nikulin wrote:
> It is at least fragile. HTML export results in separate paragraphs:

Yes, I said "if exporting to LaTeX"... ;-)

> I am unsure, but "#+latex:" probably belongs to "Keywords" that are
> elements, so it should end a paragraph. If such interpretation is
> correct than either LaTeX exporter has a bug or syntax description
> should be justified.

No, I don't think of it as a keyword and it cannot end a paragraph as it
would then break any document that uses such constructs.  Not sure what
to call it but it falls into the same category as inline directives like
@@latex:...@@.  And, in fact, this would work as well as the first
example, again failing for HTML export:

--8<---------------cut here---------------start------------->8---
This is the first sentence.
@@latex:%@@ this is the second which is commented out.
And this is the third.
--8<---------------cut here---------------end--------------->8---

Both of these rely on the fact that % is a comment character for
LaTeX.  For HTML, you would have to something even more ugly, as in:

--8<---------------cut here---------------start------------->8---
This is the first sentence.
@@html:<!-- @@ this is the second which is commented out. @@html:-->@@
And this is the third.
--8<---------------cut here---------------end--------------->8---

and if you are really masochistic, you could combine the two:

--8<---------------cut here---------------start------------->8---
This is the first sentence.
@@latex:%@@@@html:<!-- @@ this is the second which is commented out. @@html:-->@@
And this is the third.
--8<---------------cut here---------------end--------------->8---

(untested) :-)

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.6-598-g604bfd
: Latest paper written in org: https://arxiv.org/abs/2106.05096


  reply	other threads:[~2021-07-21 15:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-16 16:06 Comments break up a paragraph when writing one-setence-per-line William Denton
2021-07-16 16:34 ` Bruce D'Arcus
2021-07-16 18:10   ` Kaushal Modi
2021-07-17  1:50     ` Samuel Wales
2021-07-18  8:21 ` Maxim Nikulin
2021-07-19 14:03 ` Eric S Fraga
2021-07-21 14:48   ` Maxim Nikulin
2021-07-21 15:22     ` Eric S Fraga [this message]
2021-07-21 16:13       ` Maxim Nikulin
2021-10-02 17:57         ` Tom Gillespie
2021-10-03 11:34           ` Max Nikulin

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=87bl6vy9mw.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=manikulin@gmail.com \
    /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).