From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Seeking advice for conditional code Date: Thu, 31 Jan 2013 13:55:38 -0500 Message-ID: References: <86lib96zzl.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0zIa-00024Z-NF for emacs-orgmode@gnu.org; Thu, 31 Jan 2013 13:55:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0zIX-0000lx-BX for emacs-orgmode@gnu.org; Thu, 31 Jan 2013 13:55:48 -0500 Received: from mail-qa0-f48.google.com ([209.85.216.48]:35268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0zIX-0000lR-4O for emacs-orgmode@gnu.org; Thu, 31 Jan 2013 13:55:45 -0500 Received: by mail-qa0-f48.google.com with SMTP id j8so1730440qah.14 for ; Thu, 31 Jan 2013 10:55:43 -0800 (PST) In-Reply-To: <86lib96zzl.fsf@iro.umontreal.ca> (=?utf-8?Q?=22Fran=C3=A7ois?= Pinard"'s message of "Thu, 31 Jan 2013 12:09:34 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?Fran=C3=A7ois?= Pinard Cc: emacs-orgmode@gnu.org I think I have done something like this with tags and custom export lisp code. Something like: (let ((org-export-exclude-tags '("supplementary" "noexport"))) (org-export-as-latex 5)) That allows me to export all sections not tagged by those values. This would require all your code blocks be in tagged sections, e.g. tagged by "internal", "external", etc... for a particular org file I make an init.el file with different export functions in it. Alternatively, I have put emacs-lisp code blocks in the org file so it is self contained. I am curious what other people do. My typical uses for selective export are to selectively export a manuscript from an org file, or to separately export a homework and the solution from one file. -- ================================== John Kitchin Associate Professor A207F Doherty Hall Department of Chemical Engineering Carnegie Mellon University 412-268-7803