From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Request for guidance: Export ONLY headlines matching occur search? Date: Thu, 31 Dec 2009 09:22:01 +0100 Message-ID: <055A70D4-7B33-47E9-9D36-67693FAE9B26@gmail.com> References: <7bef1f890912210148k3cf03da3i8a1d4291f245f914@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQGIN-000618-RI for emacs-orgmode@gnu.org; Thu, 31 Dec 2009 03:22:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQGIH-0005zX-08 for emacs-orgmode@gnu.org; Thu, 31 Dec 2009 03:22:09 -0500 Received: from [199.232.76.173] (port=55091 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQGIG-0005zD-K5 for emacs-orgmode@gnu.org; Thu, 31 Dec 2009 03:22:04 -0500 Received: from ey-out-1920.google.com ([74.125.78.144]:55425) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQGIG-00013L-8h for emacs-orgmode@gnu.org; Thu, 31 Dec 2009 03:22:04 -0500 Received: by ey-out-1920.google.com with SMTP id 4so1270890eyg.34 for ; Thu, 31 Dec 2009 00:22:03 -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: "Alan E. Davis" Cc: org-mode 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