emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bastien.guerry@wikimedia.fr>
To: e20100633 <e20100633@inbox.lv>
Cc: emacs-orgmode@gnu.org
Subject: Re: export comments in LaTeX ?
Date: Tue, 04 Jan 2011 11:44:39 +0100	[thread overview]
Message-ID: <87tyhprlrc.fsf@gnu.org> (raw)
In-Reply-To: <87lj4l2pqo.fsf@EVA01.wopr.org> (e20100633@inbox.lv's message of "Mon, 22 Nov 2010 19:10:55 +0100")

e20100633 <e20100633@inbox.lv> writes:

> I found in the manual that commented lines will *not* be exported.
> But I'd like to know if there's a hook around allowing to export
> comments from org-mode to LaTeX (I mean, comments will appear in the
> dvi/pdf in some way).

On top of other solutions already mentioned, see also this hook:

,----[ org-export-preprocess-hook ]
| Hook for preprocessing an export buffer.
| Pretty much the first thing when exporting is running this hook.
| Point will be in a temporary buffer that contains a copy of
| the original buffer, or of the section that is being export.
| All the other hooks in the org-export-preprocess... category
| also work in that temporary buffer, already modified by various
| stages of the processing.

You can set this hook to a function that toggles the COMMENT keyword or
the :noexport: tag, or convert inline comments (#) to #+begin_example

The hook operates on a temporary buffer so it's safe for your org file.



      parent reply	other threads:[~2011-01-04 10:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-22 18:10 e20100633
2010-11-22 18:34 ` Juan Pechiar
2010-11-22 21:53   ` e20100633
2010-11-22 23:07     ` Juan Pechiar
2010-11-23 22:05       ` e20100633
2011-01-04 10:44 ` Bastien [this message]

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:

  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=87tyhprlrc.fsf@gnu.org \
    --to=bastien.guerry@wikimedia.fr \
    --cc=e20100633@inbox.lv \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: export comments in LaTeX ?' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


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).