From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: export subtree Date: Thu, 10 Dec 2015 18:40:32 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7BlC-000192-Jf for emacs-orgmode@gnu.org; Thu, 10 Dec 2015 19:40:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7BlB-0005Se-5J for emacs-orgmode@gnu.org; Thu, 10 Dec 2015 19:40:34 -0500 Received: from mail-ob0-x230.google.com ([2607:f8b0:4003:c01::230]:36530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7BlA-0005SQ-Sm for emacs-orgmode@gnu.org; Thu, 10 Dec 2015 19:40:32 -0500 Received: by obcse5 with SMTP id se5so72319083obc.3 for ; Thu, 10 Dec 2015 16:40:32 -0800 (PST) In-Reply-To: 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: Herbert Sitz Cc: emacs-orgmode On Thu, Dec 10, 2015 at 6:27 PM, Herbert Sitz wrote: > Not a perfect solution, buy I think you can use the #+SELECT_TAGS option to > set which tress will be exported by default, then tag your desired export > tree with that tag. Then when you export the full buffer (not just a > subtree) it will choose the tree with that tag. > This was going to be my suggestion as well! In the case that a majority of the document is desired for export, #+EXCLUDE_TAGS is helpful as well. For reference: - http://orgmode.org/manual/Export-settings.html Export tags are fantastic, as one can add as many as desired and then simply change the #+select_tags/#+exclude_tags target to generate a bunch of variations from the same single .org file. Maybe a little extreme and irrelevant to the OP need(s), but I've also programmatically generated Org heading syntax with R, spit out headlines with data driven content, inserted a \newpage at the end of each, and then split them apart with stapler.[1] I was serving as a financials secretary for a group at work, managing the budgets of many chapter entities. This allowed me to start with a .csv with the target spend for the next year, use R to create a document for each chapter, and then send the chairs their tailored document vs. manually changing figures and generating ~40 documents by hand. Worked slick! If any of that sounds appealing/relevant, let me know and I can share an example. Best regards, John > E.g., > --------------------------------- > #+SELECT_TAGS: myexporttree > > * Main tree :myexporttree: > fkjaldfk > ** subhead > ** subhead > * anoher heading 1 > * another heading level 1 > ** subhead > ** subhead > -------------------------------- > > In org buffer above it will export only the first subtree now when you > export the entire buffer. You should be able to export the others > selectively if you choose scope as 'subtree'. And you can always comment > out or delete the SELECT_TAGS line if you want to export entire buffer. > >