emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: kmartino@pobox.com
Cc: emacs-orgmode@gnu.org
Subject: Re: One org file, multiple exports, is it possible?
Date: Sun, 23 May 2010 06:59:57 +0200	[thread overview]
Message-ID: <E10C227A-C221-4CEF-9347-71002D9FC700@gmail.com> (raw)
In-Reply-To: <AANLkTik1j46O0JAPAmGJQGtsN6LIcpln7aol79nnINCj@mail.gmail.com>


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  
> email list,
> 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.  It
> contains my journal, my task list, contacts, and notes on various  
> 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  
> 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  
> highlights I want
> to take special note of.
>
> This file's path is at ~/notes/org/index.org.  I'd like to export  
> the 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 you
> cannot indicate the export result file name.  But I can indicate  
> path.  So
> following is a sample org-publish-project-alist that that filters by  
> tag and
> puts the result in different publishing directories.  But I still  
> can't figure
> out how to change the title on those exported pages.  Can anyone  
> 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” - 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

  parent reply	other threads:[~2010-05-23  5:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-22 23:46 One org file, multiple exports, is it possible? Karl Martino
2010-05-23  0:47 ` Karl Martino
2010-05-23  4:59 ` Carsten Dominik [this message]
2010-05-23 12:22   ` Karl Martino
2010-05-23 15:58     ` Eric Schulte
2010-05-23 16:17     ` Carsten Dominik
2010-05-23 16:31       ` Karl Martino
2010-05-23 18:49         ` Thomas S. Dye
2010-05-23 20:57           ` Carsten Dominik
2010-05-23 22:01             ` Thomas S. Dye
2010-05-24  5:20               ` Carsten Dominik
2010-05-24 16:36                 ` Thomas S. Dye
2010-05-25  3:38                 ` Thomas S. Dye
2010-05-25  3:50                   ` Bernt Hansen
2010-05-25 16:20                     ` Thomas S. Dye
2010-05-25 16:52                       ` Nick Dokos
2010-05-25 17:51                         ` Thomas S. Dye
2010-05-28  3:40                         ` Thomas S. Dye
2010-05-25 17:26                       ` Mark Elston
2010-05-25 17:53                         ` Thomas S. Dye
2010-05-26 18:42                     ` Thomas S. Dye
2010-05-26 21:37                       ` Nick Dokos
2010-05-26 22:28                         ` Thomas S. Dye
2010-05-27  1:40                           ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E10C227A-C221-4CEF-9347-71002D9FC700@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=kmartino@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).