Re: [Orgmode] Request for guidance: Export ONLY headlines matching occur search?

2009-12-31 Thread Carsten Dominik


On Dec 21, 2009, at 10:48 AM, Alan E. Davis wrote:


   I am keeping notes in a single file about several topics.  I can
   isolate headlines about these topics/products, by an agenda occur
   search: C-a a /  .   I have made a template to print a
   memo about these products, but it seems I must copy the headlines
   by hand to a register or file, then massage them into shape.

   I would like to do something like export a PDF of all
   entries/subtrees within the region that have the product's key
   phrase in the heading.   Is it possible to selectively export only
   the subtrees identified by the Occur agenda search, automagically?


No.

What you can do is to make a sparse tree showing only what you want,  
and then export with


  C-c C-e v b

note the "v"...



   Since my notes start with an inactive time stamp, I would like to
   strip these out as well.  I think I can easily write an elisp
   function to do this, but perhaps org-mode already has such
   capabilities built in, a regexp for an inactive time stamp.


Strangely enough, there is not.  But you can make it with

(concat "\\[" (substring org-ts-regexp 1 -1) "\\]")

HTH

- Carsten



   Perhaps I'll spend some time over Christmas break on this.  It's
   nice to easily make a memo, but it would be a big help to make it
   less laborious.

In case there is interest, here are the template and the fragments
   for the head and tail of the memo.

   Remember template:
 ("Memo"   ?Z "%[~/org/MEMO/Top.2.memo]  %?\n %i   
%&  %[~/org/MEMO/Bot.memo]"

   "~/or/MEMO/Memo.tex" top)

   The required files Top.2.memo and Bot.memo are attached.  Top. 
2.memo can be edited with any hard wired recipient and from lines.   
The class file, also included, is edited to change the header on the  
memo.  All three must be in the directory ~/org/MEMO.  I am  
using the sloppy approach of running LaTeX on the long Memo.tex file  
to which the current memo has been pre-pended.  Only the topmost  
memo is printed.


This approach works but it is currently a kluge, unpolished. The  
enhancements I have requested would make it possible to instantly  
fire off a memo about a specific product.





Alan Davis

products.cls>___

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





___
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


[Orgmode] Request for guidance: Export ONLY headlines matching occur search?

2009-12-21 Thread Alan E. Davis
   I am keeping notes in a single file about several topics.  I can
   isolate headlines about these topics/products, by an agenda occur
   search: C-a a /  .   I have made a template to print a
   memo about these products, but it seems I must copy the headlines
   by hand to a register or file, then massage them into shape.

   I would like to do something like export a PDF of all
   entries/subtrees within the region that have the product's key
   phrase in the heading.   Is it possible to selectively export only
   the subtrees identified by the Occur agenda search, automagically?
   Since my notes start with an inactive time stamp, I would like to
   strip these out as well.  I think I can easily write an elisp
   function to do this, but perhaps org-mode already has such
   capabilities built in, a regexp for an inactive time stamp.

   Perhaps I'll spend some time over Christmas break on this.  It's
   nice to easily make a memo, but it would be a big help to make it
   less laborious.

In case there is interest, here are the template and the fragments
   for the head and tail of the memo.

   Remember template:
 ("Memo"   ?Z "%[~/org/MEMO/Top.2.memo]  %?\n %i  %&
%[~/org/MEMO/Bot.memo]"
   "~/or/MEMO/Memo.tex" top)

   The required files Top.2.memo and Bot.memo are attached.  Top.2.memo can
be edited with any hard wired recipient and from lines.  The class file,
also included, is edited to change the header on the memo.  All three must
be in the directory ~/org/MEMO.  I am using the sloppy approach of
running LaTeX on the long Memo.tex file to which the current memo has been
pre-pended.  Only the topmost memo is printed.

This approach works but it is currently a kluge, unpolished. The
enhancements I have requested would make it possible to instantly fire off a
memo about a specific product.
  *

*

Alan Davis
%% 
%% This is file `memo.cls',
%% \CharacterTable
%%  {Upper-case\A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case\a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits\0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \! Double quote  \" Hash (number) \#
%%   Dollar\$ Percent   \% Ampersand \&
%%   Acute accent  \' Left paren\( Right paren   \)
%%   Asterisk  \* Plus  \+ Comma \,
%%   Minus \- Point \. Solidus   \/
%%   Colon \: Semicolon \; Less than \<
%%   Equals\= Greater than  \> Question mark \?
%%   Commercial at \@ Left bracket  \[ Backslash \\
%%   Right bracket \] Circumflex\^ Underscore\_
%%   Grave accent  \` Left brace\{ Vertical bar  \|
%%   Right brace   \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}[1996/06/01]
\ProvidesClass{memo}
  [1999/02/09 v1.2z
   Standard LaTeX document class]
\typeout{Document Class `memo' by Ray Seyfarth based on letter style, 9/2000. }
\typeout{  }

\newcomma...@ptsize{}
\DeclareOption{a4paper}
   {\setlength\paperheight {297mm}%
\setlength\paperwidth  {210mm}}
\DeclareOption{a5paper}
   {\setlength\paperheight {210mm}%
\setlength\paperwidth  {148mm}}
\DeclareOption{b5paper}
   {\setlength\paperheight {250mm}%
\setlength\paperwidth  {176mm}}
\DeclareOption{letterpaper}
   {\setlength\paperheight {11in}%
\setlength\paperwidth  {8.5in}}
\DeclareOption{legalpaper}
   {\setlength\paperheight {14in}%
\setlength\paperwidth  {8.5in}}
\DeclareOption{executivepaper}
   {\setlength\paperheight {10.5in}%
\setlength\paperwidth  {7.25in}}
\DeclareOption{landscape}
   {\setleng...@tempdima   {\paperheight}%
\setlength\paperheight {\paperwidth}%
\setlength\paperwidth  {...@tempdima}}
\declareoption{10pt}{\renewcomma...@ptsize{0}}
\declareoption{11pt}{\renewcomma...@ptsize{1}}
\declareoption{12pt}{\renewcomma...@ptsize{2}}
\...@compatibility
  \declareoption{twoside...@latexerr{no `twoside' layout for memo}%
   \...@eha}
\else
  \declareoption{twoside...@twosidetrue  \...@mparswitchtrue}
\fi
\declareoption{oneside...@twosidefalse \...@mparswitchfalse}
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
\DeclareOption{final}{\setlength\overfullrule{0pt}}
\DeclareOption{leqno}{\input{leqno.clo}}
\DeclareOption{fleqn}{\input{fleqn.clo}}
\ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
\ProcessOptions
\input{siz...@ptsize.clo}
\setlength\lineskip{...@}
\setlength\normallineskip{...@}
\renewcommand\baselinestretch{}
\setlength\parskip{0.7em}
\setlength\parindent{...@}
\...@lowpenalty   51
\...@medpenalty  151
\...@highpenalty 301
\setlength\headheight{1...@}
\setlength\headsep   {4...@}
\setlength\footskip{2...@}
\...@compatibility
  \setlength\textwidth{36...@}
  \setlength\textheight{50...@}
\fi
\...@compatibility
  \setlength\oddsidemargin{53pt}
  \setlength\evensidemargin{53pt}
  \setlength\marginparwidth{90p