emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Using orgmode to take "inline notes" for research
Date: Tue, 05 Apr 2011 21:32:15 -0600	[thread overview]
Message-ID: <87ipus12dc.fsf@gmail.com> (raw)
In-Reply-To: <BANLkTinQL4ejv4C9NqinmiYghH6FjNCrmA@mail.gmail.com> (John Hendy's message of "Tue, 5 Apr 2011 21:02:33 -0500")

[-- Attachment #1: Type: text/plain, Size: 868 bytes --]

Hi John,

Interesting use case, I definitely see the utility.  I think that blocks
may be an appropriate solution, for example if you enclose your notes in
"notes" blocks, then it should be easy to control whether or not they
are exported...

Using the following code, you can control whether notes enclosed in
"notes" blcks will be exported by changing the value of the
*export-my-notes* variable, when it is nil your notes will not be
exported, when t they will be exported as quoted text.

#+begin_src emacs-lisp
  (defvar *export-my-notes* nil)

  (defun org-exp-block-process-notes (body &rest headers)
    (if *export-my-notes*
        (format "\n#+begin_quote\n%s\n#+end_quote\n" body)
        ""))

  (org-export-blocks-add-block '(notes org-exp-block-process-notes nil))
#+end_src

Hope this Helps -- Eric

This works for me with the attached Org-mode file.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: something-with-notes.org --]
[-- Type: text/org, Size: 951 bytes --]

* top
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

#+begin_notes
  eric's notes on lorem
#+end_notes


Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

[-- Attachment #3: Type: text/plain, Size: 3093 bytes --]


John Hendy <jw.hendy@gmail.com> writes:

> Hi,
>
>
> One thing I really like to use orgmode for is research. Lately,
> there's a mass of stuff on-line that I've been reading though and am
> about to start reading through a series of articles and had the idea
> to yank them into org for "inline notes."
>
> My current experiment has been:
> - wget the website page
> - run a custom script of simple sed stuff to get the major stuff
> converted (<i> & </i> -> /, &quote; -> ", etc.)
> - turn things into headlines where applicable
> - manually tweak the rest
>
> What I'd like to do is find some way to take notes in the article and
> would like some suggestions from anyone who's done this. On one hand,
> I see the idea of keeping a separate headline for notes, and for a
> series of articles, my file might look like this:
> ,---
> | * Article 1
> | ** Notes on article 1
> | * Article 2
> | ** Notes on article 2
> `---
>
> One advantage to this is that I could very easily add :noexport: to my
> notes and print off a hard copy of the article if I want it, and it
> would also be easy to tag my notes :notes: and then replace-string to
> turn the Article :export: into :noexport: and :notes: into :export:.
> Then I'd have an easy to print copy of my notes for each article.
>
> On the other hand, I like quoting when I use notes, and could see it
> as advantageous to have something like:
> ,---
> | * Article 1
> | It goes along and says x, y, and z.
> | --- Me: that's interesting and here are my thoughts.
> |
> | It continues along saying all kinds of other things and my comments
> are interjected whenever I want.
> `---
>
> I think that might be more useful for studying things later, as I get
> to see an "annotated" version with my thoughts at the time I read it.
> What it *doesn't* allow for is the easy printing of both the article
> and the notes separately if I want.
>
> Would someone suggest a way that I might be able to have the best of
> both worlds? Some of my own not-at-all-hashed-out-ideas included:
> - using footnotes since org has easy ways to jump from one to another,
> but this would be tough when it came to actual footnotes, which there
> will definitely be plenty of.
>
> - highlighting the text I want to quote and then using refile somehow
> to send it off to my notes section with my comments. This would be
> cool if I could, at the same time, add an org-mode link to and from
> the notes and original section, but also if I could turn that link off
> when I export to PDF so I don't have hypertext to a non-existent link
> if I don't export my notes as well.
>
> Part of the reason that keeping notes/article separate is that I have
> others interested in the articles and, if I need to send them a copy,
> I want to get my junk out of there and have the original. I suppose I
> could just keep two copies, though?
>
> I think this idea could be useful to others and actually wouldn't
> doubt if someone has an awesome setup for something like this already.
>
>
> Thanks for any suggestions!
> John
>
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

  parent reply	other threads:[~2011-04-06  3:32 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-06  2:02 Using orgmode to take "inline notes" for research John Hendy
2011-04-06  3:21 ` Jeff Horn
2011-04-06 10:33   ` Sébastien Vauban
2011-04-06 16:33   ` John Hendy
2011-04-06 16:47     ` John Hendy
2011-04-06 17:27       ` Samuel Wales
2011-04-06 18:08         ` John Hendy
2011-04-06 18:16           ` Samuel Wales
2011-04-06 18:16             ` John Hendy
2011-04-06 19:11     ` Mark Elston
2011-04-07  4:19     ` Jeff Horn
2011-04-07  9:20       ` Sébastien Vauban
2011-04-07 15:26         ` John Hendy
2011-04-07 15:33           ` Jeff Horn
2011-04-07 15:48             ` John Hendy
2011-04-08 20:53               ` Sébastien Vauban
2011-04-12 16:30                 ` John Hendy
2011-04-12 16:39                   ` John Hendy
2011-04-12 17:57                     ` John Hendy
2011-04-25 19:51                       ` Sébastien Vauban
2011-04-26 13:07                         ` John Hendy
2011-04-12 18:20                   ` Eric S Fraga
2011-04-12 18:56                     ` John Hendy
2011-04-17 23:36                     ` Rasmus
2011-04-20 17:46                       ` Eric S Fraga
2011-04-16  7:24                   ` Nicolas Goaziou
2011-04-07 12:39       ` Nicolas Goaziou
2011-04-06  3:32 ` Eric Schulte [this message]
2011-04-06  4:10   ` Erik Iverson
2011-04-06  5:02     ` Eric Schulte
2011-04-06 16:16       ` John Hendy
2011-04-07  5:33         ` Eric S Fraga
2011-04-07 16:10           ` John Hendy
2011-04-08 18:18             ` Eric S Fraga
2011-04-08 20:08               ` John Hendy
2011-04-06 16:11     ` John Hendy
2011-04-06 16:09   ` John Hendy
2011-04-06 16:42     ` Eric Schulte
  -- strict thread matches above, loose matches on Subject: below --
2011-04-06  3:52 Rustom Mody

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=87ipus12dc.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jw.hendy@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).