From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: export comments in LaTeX ? Date: Tue, 04 Jan 2011 11:44:39 +0100 Message-ID: <87tyhprlrc.fsf@gnu.org> References: <87lj4l2pqo.fsf@EVA01.wopr.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=59192 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pa4Nt-0000fF-58 for emacs-orgmode@gnu.org; Tue, 04 Jan 2011 05:44:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pa4Nr-0003dJ-9j for emacs-orgmode@gnu.org; Tue, 04 Jan 2011 05:44:57 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:56409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pa4Nr-0003cy-2b for emacs-orgmode@gnu.org; Tue, 04 Jan 2011 05:44:55 -0500 Received: by wwb17 with SMTP id 17so14708863wwb.30 for ; Tue, 04 Jan 2011 02:44:54 -0800 (PST) In-Reply-To: <87lj4l2pqo.fsf@EVA01.wopr.org> (e20100633@inbox.lv's message of "Mon, 22 Nov 2010 19:10:55 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: e20100633 Cc: emacs-orgmode@gnu.org e20100633 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 sections. The hook operates on a temporary buffer so it's safe for your org file. HTH, -- Bastien