From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: export subtree from the command line Date: Fri, 06 Feb 2015 13:01:44 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJhbd-0001M7-EK for emacs-orgmode@gnu.org; Fri, 06 Feb 2015 07:01:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJhba-0002kT-92 for emacs-orgmode@gnu.org; Fri, 06 Feb 2015 07:01:53 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:35717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJhba-0002kM-2Y for emacs-orgmode@gnu.org; Fri, 06 Feb 2015 07:01:50 -0500 In-Reply-To: (Charles C. Berry's message of "Thu, 5 Feb 2015 08:27:07 -0800") 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: "Charles C. Berry" Cc: emacs-orgmode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2015-02-05 08:27, "Charles C. Berry" writes: > 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. Thanks a lot for the suggestion, I'll give it a try. Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJU1K0tAAoJEAQNCjtO0uXHWeAH/irP0br0wS/GxwfMRGApmZsn h+whDsZB8YAgcuvKcQu7fsg0X5WmAjXes70lM1DaqQgHLsfK2rfjJelOWf7GThd/ GcJp+cSphtCOSvj84dj43lXoQ4IXRWzzC35wB7nBPnX7PNj0h3Gnefk+EvSbxyDo qdtBGp56k91Hj1rKanymtvnGOJC/4TTf/kjh/Fun5GPpQL+0V6ekQ6lfyDUvXuJd Su1Ee3xaXOzznPUGxUsM26X/qBN0JLVWUi/ZaARGPO0LjuLISa0X46bPbnidfIkX 16edolB6R0EN5/kPxN0VjPr6d9duol6CeTCq58g8NMe6J9PAxfMFGOvttjGTF/k= =874u -----END PGP SIGNATURE----- --=-=-=--