From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Martino Subject: Re: One org file, multiple exports, is it possible? Date: Sun, 23 May 2010 12:31:09 -0400 Message-ID: References: <855B9DE3-A7FD-42B4-A863-DE036065EBD1@gmail.com> 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=35785 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGE52-0001c1-G9 for emacs-orgmode@gnu.org; Sun, 23 May 2010 12:31:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGE50-0007EB-Ma for emacs-orgmode@gnu.org; Sun, 23 May 2010 12:31:12 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:58534) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGE50-0007E1-FU for emacs-orgmode@gnu.org; Sun, 23 May 2010 12:31:10 -0400 Received: by wwi14 with SMTP id 14so1997779wwi.0 for ; Sun, 23 May 2010 09:31:09 -0700 (PDT) In-Reply-To: <855B9DE3-A7FD-42B4-A863-DE036065EBD1@gmail.com> 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, carsten.dominik@gmail.com Hi, Ah! This worked once I tried this tip Carsten - thanks! I should have realized that the buffer setting was defeating that there. > You should *not* have a #+TITLE line in the buffer, and you should *not* > have subtree marked - then :title is used. Eric, thanks for the tip as well. I will check out org-jekyll even though this worked because producing a blog or some kind of knowledge base from my single-org-mode-life-file sounds great :) Thanks, Karl On Sun, May 23, 2010 at 12:17 PM, Carsten Dominik wrote: > > 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. =C2=A0Here is the setup I use= d: > > (setq org-publish-project-alist > =C2=A0 =C2=A0 =C2=A0'(("ttt" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 :base-directory "~/lib/emacs/work/org-mode/t/= pub/src" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 :base-extension "org" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 :publishing-directory "~/lib/emacs/work/org-m= ode/t/pub/target" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 :section-numbers nil > =C2=A0 =C2=A0 =C2=A0 =C2=A0 :table-of-contents nil > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; =C2=A0 =C2=A0 =C2=A0:plain-source t > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; =C2=A0 =C2=A0 =C2=A0:htmlized-source t > =C2=A0 =C2=A0 =C2=A0 =C2=A0 :exclude "-source" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 :title "Test :title property" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 :auto-sitemap t > =C2=A0 =C2=A0 =C2=A0 =C2=A0 :makeindex t > =C2=A0 =C2=A0 =C2=A0 =C2=A0 :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 =C2=A0subtree 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. =C2=A0It's been a >> lifesaver for me :) >> >> Thanks, >> >> Karl >> >>>> (setq org-publish-project-alist >>>> =C2=A0 =C2=A0 '( >>>> =C2=A0 =C2=A0 =C2=A0 ("highlights" >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:base-directory "~/notes/org/" >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:base-extension "org" >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:publishing-directory "~/notes/export" >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:publishing-function org-publish-org-to-htm= l >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:select-tags =C2=A0 =C2=A0 ("highlight") >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:include ("index.org") >>> >>> I have not tried it, but if you do not have #+TITLE in the buffer, >>> then >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:title "This is my title" >>> >>> in the publishing plist might work. =C2=A0Give it a try. >>> >>> - Carsten >>> >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0) >>>> =C2=A0 =C2=A0 =C2=A0 ("work" >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:base-directory "~/notes/org/" >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:base-extension "org" >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:publishing-directory "~/notes/export/work/= " >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:publishing-function org-publish-org-to-htm= l >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:select-tags =C2=A0 =C2=A0 ("@WORK") >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:include ("index.org") >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:exclude "\\.org$" >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0) >>>> =C2=A0 =C2=A0 =C2=A0 ("home" >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:base-directory "~/notes/org/" >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:base-extension "org" >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:publishing-directory "~/notes/export/home/= " >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:publishing-function org-publish-org-to-htm= l >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:select-tags =C2=A0 =C2=A0 ("@HOME") >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:include ("index.org") >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:exclude "\\.org$" >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0:link-up >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0) >>>> =C2=A0 =C2=A0 =C2=A0 )) >>>> >> >> _______________________________________________ >> 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 > > > > --=20 "Seek First to Understand, Then to be Understood=E2=80=9D - Steven Covey www.paradox1x.org, www.phillyfuture.org, @kmartino