emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Selective Export of subheadings and plain text
@ 2009-04-03 19:38 Martin Stemplinger
  2009-04-04  3:08 ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Stemplinger @ 2009-04-03 19:38 UTC (permalink / raw)
  To: emacs-orgmode

I use org-mode as a GTD implementation with level-1 headings as area
of focus, level-3 headings for projects and level-5 headings as next
actions. For each project I also note a successful outcome in plain
text. 

So it looks like this

* Self development                                                     :TOPIC:
*** Learn org-mode						       :PROJECT:
    I improve my GTD implementation.
***** ONLINE post question to org-mode mailing list
*** Learn Esperanto						       :PROJECT:
    I speak Esperanto fluently.

What I would like to do is to export a project list together with the
successful outcome but without the next actions below it looking like
this

1 Self development
==========

1.1 Learn org-mode
---------------
    I improve my GTD implementation.

1.2 Learn Esperanto
---------------
    I speak Esperanto fluently.

Currently I use a script to produce this kind of output. Is there a
way to achieve this in org-mode alone?

Thanks in advance
Martin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Selective Export of subheadings and plain text
  2009-04-03 19:38 Selective Export of subheadings and plain text Martin Stemplinger
@ 2009-04-04  3:08 ` Carsten Dominik
  2009-04-05 16:19   ` Martin Stemplinger
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2009-04-04  3:08 UTC (permalink / raw)
  To: Martin Stemplinger; +Cc: emacs-orgmode

Hi Martin,

you can use tags to de-select entries for export.

http://orgmode.org/manual/Selective-export.html#Selective-export

- Carsten

On Apr 3, 2009, at 9:38 PM, Martin Stemplinger wrote:

> I use org-mode as a GTD implementation with level-1 headings as area
> of focus, level-3 headings for projects and level-5 headings as next
> actions. For each project I also note a successful outcome in plain
> text.
>
> So it looks like this
>
> * Self  
> development 
>                                                      :TOPIC:
> *** Learn org-mode						       :PROJECT:
>    I improve my GTD implementation.
> ***** ONLINE post question to org-mode mailing list
> *** Learn Esperanto						       :PROJECT:
>    I speak Esperanto fluently.
>
> What I would like to do is to export a project list together with the
> successful outcome but without the next actions below it looking like
> this
>
> 1 Self development
> ==========
>
> 1.1 Learn org-mode
> ---------------
>    I improve my GTD implementation.
>
> 1.2 Learn Esperanto
> ---------------
>    I speak Esperanto fluently.
>
> Currently I use a script to produce this kind of output. Is there a
> way to achieve this in org-mode alone?
>
> Thanks in advance
> Martin
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Selective Export of subheadings and plain text
  2009-04-04  3:08 ` Carsten Dominik
@ 2009-04-05 16:19   ` Martin Stemplinger
  2009-04-05 16:26     ` Carsten Dominik
  2009-04-05 16:59     ` Matthew Lundin
  0 siblings, 2 replies; 5+ messages in thread
From: Martin Stemplinger @ 2009-04-05 16:19 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Hi Carsten,

thanks for the info which does most of what I want but only if every
next action item receives a tag like "noexport". This is quite
cumbersome to do in large org-file. Is there a way to restrict
inheritance of the tags?

Martin
> Hi Martin,
>
> you can use tags to de-select entries for export.
>
> http://orgmode.org/manual/Selective-export.html#Selective-export
>
> - Carsten
>
> On Apr 3, 2009, at 9:38 PM, Martin Stemplinger wrote:
>
>> I use org-mode as a GTD implementation with level-1 headings as area
>> of focus, level-3 headings for projects and level-5 headings as next
>> actions. For each project I also note a successful outcome in plain
>> text.
>>
>> So it looks like this
>>
>> * Self development                                                      :TOPIC:
>> *** Learn org-mode						       :PROJECT:
>>    I improve my GTD implementation.
>> ***** ONLINE post question to org-mode mailing list
>> *** Learn Esperanto						       :PROJECT:
>>    I speak Esperanto fluently.
>>
>> What I would like to do is to export a project list together with the
>> successful outcome but without the next actions below it looking like
>> this
>>
>> 1 Self development
>> ==========
>>
>> 1.1 Learn org-mode
>> ---------------
>>    I improve my GTD implementation.
>>
>> 1.2 Learn Esperanto
>> ---------------
>>    I speak Esperanto fluently.
>>
>> Currently I use a script to produce this kind of output. Is there a
>> way to achieve this in org-mode alone?
>>
>> Thanks in advance
>> Martin
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

-- 
Gruß
Martin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Selective Export of subheadings and plain text
  2009-04-05 16:19   ` Martin Stemplinger
@ 2009-04-05 16:26     ` Carsten Dominik
  2009-04-05 16:59     ` Matthew Lundin
  1 sibling, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2009-04-05 16:26 UTC (permalink / raw)
  To: Martin Stemplinger; +Cc: emacs-orgmode


On Apr 5, 2009, at 6:19 PM, Martin Stemplinger wrote:

> Hi Carsten,
>
> thanks for the info which does most of what I want but only if every
> next action item receives a tag like "noexport". This is quite
> cumbersome to do in large org-file. Is there a way to restrict
> inheritance of the tags?

I do not understand your question in this context.  What do you mean?

- Carsten

>
> Martin
>> Hi Martin,
>>
>> you can use tags to de-select entries for export.
>>
>> http://orgmode.org/manual/Selective-export.html#Selective-export
>>
>> - Carsten
>>
>> On Apr 3, 2009, at 9:38 PM, Martin Stemplinger wrote:
>>
>>> I use org-mode as a GTD implementation with level-1 headings as area
>>> of focus, level-3 headings for projects and level-5 headings as next
>>> actions. For each project I also note a successful outcome in plain
>>> text.
>>>
>>> So it looks like this
>>>
>>> * Self  
>>> development 
>>>                                                       :TOPIC:
>>> *** Learn org-mode						       :PROJECT:
>>>   I improve my GTD implementation.
>>> ***** ONLINE post question to org-mode mailing list
>>> *** Learn Esperanto						       :PROJECT:
>>>   I speak Esperanto fluently.
>>>
>>> What I would like to do is to export a project list together with  
>>> the
>>> successful outcome but without the next actions below it looking  
>>> like
>>> this
>>>
>>> 1 Self development
>>> ==========
>>>
>>> 1.1 Learn org-mode
>>> ---------------
>>>   I improve my GTD implementation.
>>>
>>> 1.2 Learn Esperanto
>>> ---------------
>>>   I speak Esperanto fluently.
>>>
>>> Currently I use a script to produce this kind of output. Is there a
>>> way to achieve this in org-mode alone?
>>>
>>> Thanks in advance
>>> Martin
>>>
>>>
>>> _______________________________________________
>>> Emacs-orgmode mailing list
>>> Remember: use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
> -- 
> Gruß
> Martin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Selective Export of subheadings and plain text
  2009-04-05 16:19   ` Martin Stemplinger
  2009-04-05 16:26     ` Carsten Dominik
@ 2009-04-05 16:59     ` Matthew Lundin
  1 sibling, 0 replies; 5+ messages in thread
From: Matthew Lundin @ 2009-04-05 16:59 UTC (permalink / raw)
  To: Martin Stemplinger; +Cc: emacs-orgmode

Martin Stemplinger <mstemplinger@gmx.de> writes:

>> On Apr 3, 2009, at 9:38 PM, Martin Stemplinger wrote:
>>
>>> I use org-mode as a GTD implementation with level-1 headings as area
>>> of focus, level-3 headings for projects and level-5 headings as next
>>> actions. For each project I also note a successful outcome in plain
>>> text.
>>>
>>> So it looks like this
>>>
>>> * Self development                                                      :TOPIC:
>>> *** Learn org-mode						       :PROJECT:
>>>    I improve my GTD implementation.
>>> ***** ONLINE post question to org-mode mailing list
>>> *** Learn Esperanto						       :PROJECT:
>>>    I speak Esperanto fluently.
>>>
>>> What I would like to do is to export a project list together with the
>>> successful outcome but without the next actions below it looking like
>>> this
>>>
>>> 1 Self development
>>> ==========
>>>
>>> 1.1 Learn org-mode
>>> ---------------
>>>    I improve my GTD implementation.
>>>
>>> 1.2 Learn Esperanto
>>> ---------------
>>>    I speak Esperanto fluently.
>>>

If you are consistent about tagging all your projects you could, you
could create a custom agenda command for sparse trees in which
org-use-tag-inheritance is turned off.

--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
      '(("p" "Projects" tags-tree "PROJECT"
	 ((org-show-entry-below t)
	  (org-use-tag-inheritance nil)))
	;; other commands here
	))
--8<---------------cut here---------------end--------------->8---

This will create a sparse tree that hides the ONLINE line. E.g., the
following file:

--8<---------------cut here---------------start------------->8---
#+STARTUP: odd
#+OPTIONS: tags:nil

* Self development 						      :TOPIC:
*** Learn org-mode 						    :PROJECT:
    I improve my GTD implementation.
***** ONLINE post question to org-mode mailing list
*** Learn Esperanto 						    :PROJECT:
  I speak Esperanto fluently.
--8<---------------cut here---------------end--------------->8---

Will be shown as:

--8<---------------cut here---------------start------------->8---
#+STARTUP: odd
#+OPTIONS: tags:nil

* Self development 						      :TOPIC:
*** Learn org-mode 						    :PROJECT:
    I improve my GTD implementation.

*** Learn Esperanto 						    :PROJECT:
  I speak Esperanto fluently.
--8<---------------cut here---------------end--------------->8---

Then you can export only the visible portions of the org file to ascii
(or any other format):

C-c C-e v a

Here is the resulting ascii export:

,----
| Table of Contents
| =================
| 1 Self development
|     1.1 Learn org-mode
|     1.2 Learn Esperanto
| 
| 
| 1 Self development
| ~~~~~~~~~~~~~~~~~~
| 
| 1.1 Learn org-mode
| ==================
|     I improve my GTD implementation.
| 
| 1.2 Learn Esperanto
| ===================
|   I speak Esperanto fluently.
`----

You could accomplish the same thing with a slightly different custom
agenda command:

--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
      '(("p" "Projects" tags-tree "LEVEL=2"
	 ((org-show-entry-below t)
	  (org-use-tag-inheritance nil)))
	;; other commands here
	))
--8<---------------cut here---------------end--------------->8---

Hope this helps,
Matt

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-04-05 16:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-03 19:38 Selective Export of subheadings and plain text Martin Stemplinger
2009-04-04  3:08 ` Carsten Dominik
2009-04-05 16:19   ` Martin Stemplinger
2009-04-05 16:26     ` Carsten Dominik
2009-04-05 16:59     ` Matthew Lundin

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).