From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Mark Edgington <edgimar@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Blank lines in LaTeX output due to org-mode comments
Date: Thu, 30 Jun 2016 21:19:47 +0200 [thread overview]
Message-ID: <87y45mzdpo.fsf@saiph.selenimh> (raw)
In-Reply-To: <CAMsBe8rRhwtAqkzu_9bvgwrgXRGhmTBpdArvircEFyjyk+HyRA@mail.gmail.com> (Mark Edgington's message of "Thu, 30 Jun 2016 15:06:25 -0400")
Hello,
Mark Edgington <edgimar@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:
>
> * Test Heading
> test test test test test test test
> test test test test test test test
> test test test test test test test
> TEST TEST TEST TEST TEST TEST TEST
> TEST TEST TEST TEST TEST TEST TEST
> TEST TEST TEST TEST TEST TEST TEST
>
> In the first example, there is a blank line inserted at the location
> of the comment, and in the second example, obviously there is not a
> blank line at this location. Let me know if there's a way to make it
> so that org-mode doesn't insert the blank line. Thanks!
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.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2016-06-30 19:19 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 [this message]
2016-06-30 19:30 ` Mark Edgington
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=87y45mzdpo.fsf@saiph.selenimh \
--to=mail@nicolasgoaziou.fr \
--cc=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.