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 18:17:01 +0200 Message-ID: <855B9DE3-A7FD-42B4-A863-DE036065EBD1@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=44784 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGDrQ-0003iI-68 for emacs-orgmode@gnu.org; Sun, 23 May 2010 12:17:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGDrO-0005Sw-80 for emacs-orgmode@gnu.org; Sun, 23 May 2010 12:17:08 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:44265) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGDrO-0005Sp-2P for emacs-orgmode@gnu.org; Sun, 23 May 2010 12:17:06 -0400 Received: by wwi14 with SMTP id 14so1991732wwi.0 for ; Sun, 23 May 2010 09:17:05 -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 2:22 PM, Karl Martino wrote: > Hi Carsten, > > Thanks for help, unfortunately I tried ":title" and it is ignored. No, it does in fact work, I just tested it. Here is the setup I used: (setq org-publish-project-alist '(("ttt" :base-directory "~/lib/emacs/work/org-mode/t/pub/src" :base-extension "org" :publishing-directory "~/lib/emacs/work/org-mode/t/pub/target" :section-numbers nil :table-of-contents nil ;; :plain-source t ;; :htmlized-source t :exclude "-source" :title "Test :title property" :auto-sitemap t :makeindex t :publishing-function (org-publish-org-to-html org-publish-org-to- org)))) You should *not* have a #+TITLE line in the buffer, and you should *not* have subtree marked - then :title is used. - Carsten > > The issue with #+TITLE in the buffer is that it is the same file I am > exporting various times, just with different tag filters, and the > title then remains the same for each export, where I want it to > reflect the subset of the file, ie Karl's Work Journal, or Karl's Home > Journal. > > A workaround that just occurred to me: > > I could write a method that would change the #+TITLE value in the > buffer, then org-reload, before exporting the component in the list. > That should work. > > But am I missing something? > > Thanks again, org-mode is fantastic and has helped me wrangle a lot of > complexity into something portable and easy to use. It's been a > lifesaver for me :) > > Thanks, > > Karl > >>> (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 >>> ) >>> )) >>> > > _______________________________________________ > 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