From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Alan E. Davis" <lngndvs@gmail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Request for guidance: Export ONLY headlines matching occur search?
Date: Thu, 31 Dec 2009 09:22:01 +0100 [thread overview]
Message-ID: <055A70D4-7B33-47E9-9D36-67693FAE9B26@gmail.com> (raw)
In-Reply-To: <7bef1f890912210148k3cf03da3i8a1d4291f245f914@mail.gmail.com>
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 / <key phrase> . 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
>
> <memo-aed-
> products.cls><Bot.memo>_______________________________________________
> 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
prev parent reply other threads:[~2009-12-31 8:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-21 9:48 Request for guidance: Export ONLY headlines matching occur search? Alan E. Davis
2009-12-21 23:39 ` Alan E. Davis
2009-12-21 23:52 ` Alan E. Davis
2009-12-31 8:22 ` Carsten Dominik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=055A70D4-7B33-47E9-9D36-67693FAE9B26@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=lngndvs@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).