From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Using orgmode to take "inline notes" for research Date: Wed, 06 Apr 2011 10:42:14 -0600 Message-ID: <871v1f1gd5.fsf@gmail.com> References: <87ipus12dc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=54956 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7VoG-0004nF-BW for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 12:42:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7VoE-0003Om-GZ for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 12:42:24 -0400 Received: from mail-px0-f179.google.com ([209.85.212.179]:35275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7VoE-0003OY-9h for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 12:42:22 -0400 Received: by pxi2 with SMTP id 2so859052pxi.38 for ; Wed, 06 Apr 2011 09:42:21 -0700 (PDT) In-Reply-To: (John Hendy's message of "Wed, 6 Apr 2011 11:09:08 -0500") 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: John Hendy Cc: emacs-orgmode >> >> Using the following code, you can control whether notes enclosed in >> "notes" blcks will be exported by changing the value of the >> *export-my-notes* variable, when it is nil your notes will not be >> exported, when t they will be exported as quoted text. >> >> #+begin_src emacs-lisp >> (defvar *export-my-notes* nil) >> >> (defun org-exp-block-process-notes (body &rest headers) >> (if *export-my-notes* >> (format "\n#+begin_quote\n%s\n#+end_quote\n" body) >> "")) >> >> (org-export-blocks-add-block '(notes org-exp-block-process-notes nil)) >> #+end_src > > So, do I put my notes between the end of the (defun org-exp...) and > (org-export-blocks...)? > No, sorry I should have been more clear, add the above elisp to your Emacs initialization (or just evaluate it in your scratch buffer), and then after doing so whenever you export a buffer containing a begin/end_notes block, the block will be removed during export. Then later if you want to export the notes along with the article text, you can evaluate the following elisp code to set *export-my-notes* to t, and re-export to find the notes embedded in the exported document. #+begin_src emacs-lisp (setq *export-my-notes* t) #+end_src Hope this clears things up -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/