From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Include a limited level of subheadings for export/publish? Date: Wed, 7 Nov 2012 17:27:28 -0600 Message-ID: References: <20121107164821.GD4519@elros.aperiodic.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb1f196e0158404cdf00f62 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWF1x-0005i4-Hv for emacs-orgmode@gnu.org; Wed, 07 Nov 2012 18:27:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWF1u-0000V4-2V for emacs-orgmode@gnu.org; Wed, 07 Nov 2012 18:27:33 -0500 Received: from mail-ob0-f169.google.com ([209.85.214.169]:37468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWF1t-0000Uw-Qu for emacs-orgmode@gnu.org; Wed, 07 Nov 2012 18:27:29 -0500 Received: by mail-ob0-f169.google.com with SMTP id va7so2477296obc.0 for ; Wed, 07 Nov 2012 15:27:29 -0800 (PST) In-Reply-To: <20121107164821.GD4519@elros.aperiodic.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Phil! Gold Cc: emacs-orgmode@gnu.org --e89a8fb1f196e0158404cdf00f62 Content-Type: text/plain; charset=UTF-8 On Wed, Nov 7, 2012 at 10:48 AM, Phil! Gold wrote: > I've been through all of the export and publishing documentation and what > I could find about includes and I can't see a way to do what I want to > accomplish. > > I have multiple org files, each of which represents a project, with the > first level headings representing milestones for the project and lower > headings providing more detail. I currently publish these as HTML for my > manager to peruse. I would like to construct, as automatically as > possible, an overview page for my manager. I would like to be able to > list my active and inactive projects and, for each one, include just the > milestone headings from the project file, ideally any SCHEDULED, DEADLINE, > or CLOSED timestamps on the headings. I haven't found anything that seems > to come close to doing what I want. Any pointers to similar examples, > useful functions or settings, and the link would be appreciated. > > For a concrete example, say I have the following two project files. > > # project-a.org > * DONE Milestone A-1 > CLOSED: [2012-11-01 Thu 15:54] DEADLINE: <2012-11-01 Thu> > ** Milestone details > * STARTED Milestone A-2 > * TODO Milestone A-3 > Some descriptive text. > > # project-b.org > * STALLED Milestone B-1 > DEADLINE: <2012-11-05 Mon> > * TODO Milestone B-3 > * Future Goal > ** Future goal details. > > I would like to do something that gets me HTML output similar to the > following: > >

Projects In Progress

> >

Project A

>

DONE Milestone A-1

>

CLOSED: 2012-11-01 Thu 15:54 DEADLINE: 2012-11-01 Thu

>

STARTED Milestone A-2

>

TODO Milestone A-3

> >

Project B

>

STALLED Milestone B-1

>

DEADLINE: 2012-11-05 Mon

>

TODO Milestone B-3

>

Future Goal

> >

Future Projects

> > > > I'm actually wondering if you couldn't write a custom agenda view for this easier than trying to concatenate two files. Agenda already includes the file name, so if it's descriptive enough it would be clear to your manager which "project bucket" it was looking at. Or make an agenda view with headers for each project. You could include the todo/done/stalled status as well as scheduled/deadline dates. Agenda views can easily be exported to html with C-x C-w while looking at the view. Maybe google around for some custom agenda views and see if exporting those to html format might be something that could work for you. Just thought it might be easier than trying to call together content from a bunch of files via an exporter that's not really made to do that. Agenda is. For custom agenda views (if you're not familiar), you might want to check out: - Exporting agenda to html: http://orgmode.org/manual/Exporting-Agenda-Views.html - Manual on custom views: http://orgmode.org/manual/Custom-agenda-views.html - Bernt Hansen's very nice section on custom agenda views: http://doc.norang.ca/org-mode.html#CustomAgendaViews Good luck! John --e89a8fb1f196e0158404cdf00f62 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Nov 7, 2012 at 10:48 AM, Phil! Gold <phil_g@pobox.com> wrote:
I've been through all of the export and publishing documentation and wh= at
I could find about includes and I can't see a way to do what I want to<= br> accomplish.

I have multiple org files, each of which represents a project, with the
first level headings representing milestones for the project and lower
headings providing more detail. =C2=A0I currently publish these as HTML for= my
manager to peruse. =C2=A0I would like to construct, as automatically as
possible, an overview page for my manager. =C2=A0I would like to be able to=
list my active and inactive projects and, for each one, include just the milestone headings from the project file, ideally any SCHEDULED, DEADLINE,<= br> or CLOSED timestamps on the headings. =C2=A0I haven't found anything th= at seems
to come close to doing what I want. =C2=A0Any pointers to similar examples,=
useful functions or settings, and the link would be appreciated.

For a concrete example, say I have the following two project files.

# project-a.org
* DONE Milestone A-1
=C2=A0 CLOSED: [2012-11-01 Thu 15:54] DEADLINE: <2012-11-01 Thu>
** Milestone details
* STARTED Milestone A-2
* TODO Milestone A-3
=C2=A0 Some descriptive text.

# project-b.org
* STALLED Milestone B-1
=C2=A0 DEADLINE: <2012-11-05 Mon>
* TODO Milestone B-3
* Future Goal
** Future goal details.

I would like to do something that gets me HTML output similar to the
following:

<h2>Projects In Progress</h2>

<h3>Project A</h3>
<h4>DONE Milestone A-1</h4>
<p>CLOSED: 2012-11-01 Thu 15:54 DEADLINE: 2012-11-01 Thu</p> <h4>STARTED Milestone A-2</h4>
<h4>TODO Milestone A-3</h4>

<h3>Project B</h3>
<h4>STALLED Milestone B-1</h4>
<p>DEADLINE: 2012-11-05 Mon</p>
<h4>TODO Milestone B-3</h4>
<h4>Future Goal</h4>

<h2>Future Projects</h2>
<!-- So on and so forth... -->




I'm actually wonder= ing if you couldn't write a custom agenda view for this easier than try= ing to concatenate two files. Agenda already includes the file name, so if = it's descriptive enough it would be clear to your manager which "p= roject bucket" it was looking at. Or make an agenda view with headers = for each project. You could include the todo/done/stalled status as well as= scheduled/deadline dates. Agenda views can easily be exported to html with= C-x C-w while looking at the view.

Maybe google around for some custom agenda views and se= e if exporting those to html format might be something that could work for = you. Just thought it might be easier than trying to call together content f= rom a bunch of files via an exporter that's not really made to do that.= Agenda is.



Good luck!
John


--e89a8fb1f196e0158404cdf00f62--