From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alan E. Davis" Subject: Re: Request for guidance: Export ONLY headlines matching occur search? Date: Tue, 22 Dec 2009 09:52:15 +1000 Message-ID: <7bef1f890912211552s4b6b0caah5c0b9de273dddc1f@mail.gmail.com> References: <7bef1f890912210148k3cf03da3i8a1d4291f245f914@mail.gmail.com> <7bef1f890912211539n961c4aev1687129f59b14c75@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1392786246==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NMs3N-0002qA-9k for emacs-orgmode@gnu.org; Mon, 21 Dec 2009 18:52:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NMs3I-0002p6-D3 for emacs-orgmode@gnu.org; Mon, 21 Dec 2009 18:52:40 -0500 Received: from [199.232.76.173] (port=42703 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMs3I-0002p3-93 for emacs-orgmode@gnu.org; Mon, 21 Dec 2009 18:52:36 -0500 Received: from mail-iw0-f188.google.com ([209.85.223.188]:40526) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NMs3H-0006vg-SW for emacs-orgmode@gnu.org; Mon, 21 Dec 2009 18:52:36 -0500 Received: by iwn26 with SMTP id 26so3699764iwn.14 for ; Mon, 21 Dec 2009 15:52:35 -0800 (PST) In-Reply-To: <7bef1f890912211539n961c4aev1687129f59b14c75@mail.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: org-mode --===============1392786246== Content-Type: multipart/alternative; boundary=00151774149c96850c047b45c852 --00151774149c96850c047b45c852 Content-Type: text/plain; charset=ISO-8859-1 Another error, this time to the memo generating remember template. With yet another apology: ("Memo" ?Z "%[~/org/MEMO/Top.2.memo] %? \n %i %& %[~/org/MEMO/Bot.memo]" "~/org/MEMO/Memo.tex" top) ^^^^^^^^^^^^^^^^^^^^^^^^ Alan On Tue, Dec 22, 2009 at 9:39 AM, Alan E. Davis wrote: > For what it's worth, I forgot to attach one of the files. In case this is > of interest to others, it is attached herewith. > > All I really need to know is how to export ONLY the headlines that are > returned by an agenda "occur" search (C-a / ) as a PDF. > > With apologies. > > Alan > > On Mon, Dec 21, 2009 at 7:48 PM, 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? >> 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 >> >> > --00151774149c96850c047b45c852 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Another error, this time to the memo generating remember template.=A0 With = yet another apology:


=A0 =A0 =A0 =A0=A0 ("Memo"=A0=A0= =A0=A0=A0=A0 ?Z "%[~/org/MEMO/Top.2.memo]=A0 %?=A0=A0=A0 \n %i=A0 %&am= p;=A0 %[~/org/MEMO/Bot.memo]"
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 "~/= org/MEMO/Memo.tex" top)
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ^^^^^^^^^^^^^^^^^^^^^^^^

Alan
On Tue, Dec 22, 2009 at 9:39 AM, Alan E. D= avis <lngndvs@gma= il.com> wrote:
For what it's= worth, I forgot to attach one of the files.=A0 In case this is of interest= to others, it is attached herewith.=A0

All I really need to know is how to export ONLY the headlines that are = returned by an agenda "occur" search (C-a / ) as a PDF.

With apologies.

Alan

On Mon, Dec 21, 20= 09 at 7:48 PM, Alan E. Davis <lngndvs@gmail.com> wrote:
=A0=A0 I am keeping notes in a single file= about several topics.=A0 I can
=A0=A0 isolate headlines about these top= ics/products, by an agenda occur
=A0=A0 search: C-a a / <key phrase&g= t; .=A0=A0 I have made a template to print a
=A0=A0 memo about these products, but it seems I must copy the headlines=A0=A0 by hand to a register or file, then massage them into shape.=A0

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

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

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

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

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

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


=A0=A0=A0 Alan Davis



--00151774149c96850c047b45c852-- --===============1392786246== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1392786246==--