From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: One org file, multiple exports, is it possible? Date: Sun, 23 May 2010 06:59:57 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=46435 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OG3II-0002wj-C2 for emacs-orgmode@gnu.org; Sun, 23 May 2010 01:00:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OG3IB-0002iE-IG for emacs-orgmode@gnu.org; Sun, 23 May 2010 01:00:10 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:53029) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OG3IB-0002hr-Ce for emacs-orgmode@gnu.org; Sun, 23 May 2010 01:00:03 -0400 Received: by wwi14 with SMTP id 14so1764193wwi.0 for ; Sat, 22 May 2010 22:00:01 -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: kmartino@pobox.com Cc: emacs-orgmode@gnu.org On May 23, 2010, at 1:46 AM, Karl Martino wrote: > Hello, > > I am a long time org-mode user, this my first time posting to the =20 > email list, > and before I ask my question I first want to say thanks to all those =20= > who are > helping maintain and grow this terrific software. > > I maintain a single org-mode file with half my life in it. It > contains my journal, my task list, contacts, and notes on various =20 > projects. 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 =20 > file, filtered > by tag. A file that comprises of journal entries that are tagged for > work. Another with journal entries that are tagged as personal =20 > highlights I want > to take special note of. > > This file's path is at ~/notes/org/index.org. I'd like to export =20 > the filtered > version of this file to ~/notes/export/index.html > ~/notes/export/index_[tagname].html and to change each filtered =20 > export's title. > > So far in my reading of the docs, this does not seem possible. It =20 > seems you > cannot indicate the export result file name. But I can indicate =20 > path. So > following is a sample org-publish-project-alist that that filters by =20= > tag and > puts the result in different publishing directories. But I still =20 > can't figure > out how to change the title on those exported pages. Can anyone =20 > provide me with > any pointers? > > (setq org-publish-project-alist > '( > ("highlights" > :base-directory "~/notes/org/" > :base-extension "org" > :publishing-directory "~/notes/export" > :publishing-function org-publish-org-to-html > :select-tags ("highlight") > :include ("index.org") I have not tried it, but if you do not have #+TITLE in the buffer, then :title "This is my title" in the publishing plist might work. Give it a try. - Carsten > ) > ("work" > :base-directory "~/notes/org/" > :base-extension "org" > :publishing-directory "~/notes/export/work/" > :publishing-function org-publish-org-to-html > :select-tags ("@WORK") > :include ("index.org") > :exclude "\\.org$" > ) > ("home" > :base-directory "~/notes/org/" > :base-extension "org" > :publishing-directory "~/notes/export/home/" > :publishing-function org-publish-org-to-html > :select-tags ("@HOME") > :include ("index.org") > :exclude "\\.org$" > :link-up > ) > )) > > 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=94 - Steven Covey > > paradox1x.org, phillyfuture.org, @kmartino > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten