From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: export subtree from the command line Date: Thu, 5 Feb 2015 08:27:07 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJPGx-0001ml-R2 for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 11:27:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJPGs-0002YY-OC for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 11:27:19 -0500 Received: from iport-bcv1-out.ucsd.edu ([132.239.0.119]:32844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJPGs-0002Jq-GA for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 11:27:14 -0500 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: Alan Schmitt Cc: emacs-orgmode On Thu, 5 Feb 2015, Alan Schmitt wrote: > Hello, > > I'm teaching a class where I have a big monolithic file for all the > lectures. Right now I export each lecture as a subtree from the file > itself, but I would like to do it from a Makefile. Is it possible to > export a subtree from the command line? if so, how do I specify the > subtree that I want? Use an ID property for the subtree. A small *.el file can set prereqs, find the subtree from the ID, and call up the exporter. `make test' does something like this. If you look at testing/lisp/test-ob.el, testing/examples/babel.org, and the testing/*.el files you can see some of this in action. HTH, Chuck