From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Martino Subject: Re: One org file, multiple exports, is it possible? Date: Sat, 22 May 2010 20:47:23 -0400 Message-ID: References: Reply-To: kmartino@pobox.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=33098 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFzLk-0001xq-4H for emacs-orgmode@gnu.org; Sat, 22 May 2010 20:47:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFzLh-0005Yl-VO for emacs-orgmode@gnu.org; Sat, 22 May 2010 20:47:27 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:42048) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFzLh-0005Yh-OS for emacs-orgmode@gnu.org; Sat, 22 May 2010 20:47:25 -0400 Received: by wyf22 with SMTP id 22so654040wyf.0 for ; Sat, 22 May 2010 17:47:24 -0700 (PDT) In-Reply-To: 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: emacs-orgmode@gnu.org Hello, I should have added, I realize that there are options to export separate subtrees using EXPORT_FILE_NAME and EXPORT_TITLE properties. I hope I described how this is similar to that but different. I a have content spread across subtrees I want to gather by tag and export using similar variables to these. I *could* reorganize my file to use seperate subtrees, but it seems a shame to do so since having an internal blog-like structure for my journal that I can filter by tag just maps real well to how I work and think. Thanks, Karl On Sat, May 22, 2010 at 7:46 PM, Karl Martino wrote: > Hello, > > I am a long time org-mode user, this my first time posting to the email l= ist, > and before I ask my question I first want to say thanks to all those who = are > helping maintain and grow this terrific software. > > I maintain a single org-mode file with half my life in it. =C2=A0It > contains my journal, my task list, contacts, and notes on various project= s. I > use tags to indicate what content is associated to what content. > > What I would like to do is publish multiple html exports of this file, fi= ltered > by tag. =C2=A0A file that comprises of journal entries that are tagged fo= r > work. Another with journal entries that are tagged as personal highlights= I want > to take special note of. > > This file's path is at ~/notes/org/index.org. =C2=A0I'd like to export th= e filtered > version of this file to ~/notes/export/index.html > ~/notes/export/index_[tagname].html and to change each filtered export's = title. > > So far in my reading of the docs, this does not seem possible. It seems y= ou > cannot indicate the export result file name. =C2=A0But I can indicate pat= h. =C2=A0So > following is a sample org-publish-project-alist that that filters by tag = and > puts the result in different publishing directories. =C2=A0But I still ca= n't figure > out how to change the title on those exported pages. =C2=A0Can anyone pro= vide me with > any pointers? > > (setq org-publish-project-alist > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '( > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ("highlights" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:base-directory "~/notes/org/= " > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:base-extension "org" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:publishing-directory "~/note= s/export" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:publishing-function org-publ= ish-org-to-html > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:select-tags =C2=A0=C2=A0=C2= =A0 ("highlight") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:include ("index.org") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ("work" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:base-directory "~/notes/org/= " > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:base-extension "org" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:publishing-directory "~/note= s/export/work/" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:publishing-function org-publ= ish-org-to-html > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:select-tags =C2=A0=C2=A0=C2= =A0 ("@WORK") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:include ("index.org") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:exclude "\\.org$" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ("home" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:base-directory "~/notes/org/= " > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:base-extension "org" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:publishing-directory "~/note= s/export/home/" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:publishing-function org-publ= ish-org-to-html > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:select-tags =C2=A0=C2=A0=C2= =A0 ("@HOME") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:include ("index.org") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:exclude "\\.org$" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0:link-up > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 )) > > I am using org-version 6.33f and Emacs 23.1.9 on OS-X. > > Thank you in advance, > > Karl > > -- > "Seek First to Understand, Then to be Understood=E2=80=9D - Steven Covey > > paradox1x.org, phillyfuture.org, @kmartino > --=20 "Seek First to Understand, Then to be Understood=E2=80=9D - Steven Covey www.paradox1x.org, www.phillyfuture.org, @kmartino