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:39:56 +1000 Message-ID: <7bef1f890912211539n961c4aev1687129f59b14c75@mail.gmail.com> References: <7bef1f890912210148k3cf03da3i8a1d4291f245f914@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=0016e65ae5d68a001f047b459cf9 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NMrrT-0001Sy-EN for emacs-orgmode@gnu.org; Mon, 21 Dec 2009 18:40:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NMrrO-0001SI-NQ for emacs-orgmode@gnu.org; Mon, 21 Dec 2009 18:40:23 -0500 Received: from [199.232.76.173] (port=35292 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMrrO-0001SD-Ho for emacs-orgmode@gnu.org; Mon, 21 Dec 2009 18:40:18 -0500 Received: from mail-iw0-f188.google.com ([209.85.223.188]:57717) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NMrrN-00054J-2L for emacs-orgmode@gnu.org; Mon, 21 Dec 2009 18:40:17 -0500 Received: by iwn26 with SMTP id 26so3694759iwn.14 for ; Mon, 21 Dec 2009 15:40:16 -0800 (PST) In-Reply-To: <7bef1f890912210148k3cf03da3i8a1d4291f245f914@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 --0016e65ae5d68a001f047b459cf9 Content-Type: multipart/alternative; boundary=0016e65ae5d68a0018047b459cf7 --0016e65ae5d68a0018047b459cf7 Content-Type: text/plain; charset=ISO-8859-1 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 > > --0016e65ae5d68a0018047b459cf7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable For what it's worth, I forgot to attach one of the files.=A0 In case th= is is of interest to others, it is attached herewith.=A0

All I real= ly 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 <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


--0016e65ae5d68a0018047b459cf7-- --0016e65ae5d68a001f047b459cf9 Content-Type: application/octet-stream; name="Top.2.memo" Content-Disposition: attachment; filename="Top.2.memo" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g3hw038b2 XGRvY3VtZW50Y2xhc3NbMTFwdF17bWVtby1hZWQtcHJvZHVjdHN9CiVcdXNlcGFja2FnZXtmdWxs cGFnZX0KCgpcYmVnaW57ZG9jdW1lbnR9CgpcVVNNCgpcVG97QWRtaW5pc3RyYXRvciAvIFByb2R1 Y3RzIFNlY3Rpb259ClxGcm9te0FsYW4gRGF2aXMsIHByb2R1Y3Qgc3VwZXJ2aXNvcn0KXERhdGV7 XHRvZGF5fQpcU3ViamVjdHtQcm9kdWN0IFN0YXR1c30KJVxDQ3t9CgpcYmVnaW57bWVtb30K --0016e65ae5d68a001f047b459cf9 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 --0016e65ae5d68a001f047b459cf9--