From: Mark Edgington <edgimar@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Blank lines in LaTeX output due to org-mode comments
Date: Thu, 30 Jun 2016 19:30:46 +0000 (UTC) [thread overview]
Message-ID: <loom.20160630T212247-787@post.gmane.org> (raw)
In-Reply-To: 87y45mzdpo.fsf@saiph.selenimh
Nicolas Goaziou <mail <at> nicolasgoaziou.fr> writes:
> Mark Edgington <edgimar <at> gmail.com> writes:
>
> > Assume we have the following sample org-mode document:
> >
> > * Test Heading
> > test test test test test test test
> > test test test test test test test
> > test test test test test test test
> > # HERE IS A COMMENT
> > TEST TEST TEST TEST TEST TEST TEST
> > TEST TEST TEST TEST TEST TEST TEST
> > TEST TEST TEST TEST TEST TEST TEST
> >
> > I would assume that in org-mode the comment line would be completely
> > ignored when exporting the document, however this seems not to be the
> > case -- notice the difference when exporting the following to LaTeX:
>
> The behavior is correct. Actually, what you suggest was reported as
> a bug a couple of years ago. Comments separate paragraphs, so you really
> have two paragraphs in the first example, but only one in the second
> example.
>
> You can handle comments differently by adding a function in, e.g.
> `org-export-before-processing-hook', that will take care of removing
> commented lines. These are easy to recognize. See
> `org-export--delete-comments' for an example.
I'm inclined to view it more as a bug, because it makes it impossible to
place comments within a paragraph. Paragraphs consist of sentences, and
perhaps you'd like to make a note related to one of those sentences (in fact
I do).
On the other hand, if the behavior was to not create blank lines, it
wouldn't be difficult to add a blank line either before or after a comment
if desired. Furthermore, the behavior is inconsistent with how LaTeX
comments behave (which may not matter, but it may be easier for people who
know both org-mode and LaTeX for the behavior to be consistent).
At the least, I think it would be helpful to have a built-in option that
allows one to select the preferred behavior.
next prev parent reply other threads:[~2016-06-30 19:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-30 19:06 Blank lines in LaTeX output due to org-mode comments Mark Edgington
2016-06-30 19:19 ` Nicolas Goaziou
2016-06-30 19:30 ` Mark Edgington [this message]
2016-06-30 19:54 ` Mark Edgington
2016-06-30 21:23 ` Nicolas Goaziou
2016-06-30 21:34 ` Mark Edgington
2016-06-30 21:57 ` Nicolas Goaziou
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20160630T212247-787@post.gmane.org \
--to=edgimar@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.