From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Using orgmode to take "inline notes" for research Date: Wed, 6 Apr 2011 11:11:45 -0500 Message-ID: References: <87ipus12dc.fsf@gmail.com> <4D9BE79A.5010402@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=56733 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7VKe-0001pq-2h for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 12:11:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7VKc-0001SR-SA for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 12:11:47 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:48496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7VKc-0001Rz-EV for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 12:11:46 -0400 Received: by bwz17 with SMTP id 17so1483663bwz.0 for ; Wed, 06 Apr 2011 09:11:45 -0700 (PDT) In-Reply-To: <4D9BE79A.5010402@ccbr.umn.edu> 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: Erik Iverson Cc: emacs-orgmode On Tue, Apr 5, 2011 at 11:10 PM, Erik Iverson wrote: > If you export to HTML, you should be able to export your notes with a CSS > class to style your notes as differently from the text as you like. Great idea. Unfortunately, I'm almost entirely a LaTeX -> PDF guy. Though, if I ever wanted blog interaction, I definitely might look into this more, though I'm usually just needing pretty "bland" html code for blogger at that point. One question... if I were to do this, how would I "signal" that a certain portion of the text (my notes) should get a different css applied to them than the rest of the document that they are interspersed into? Would I have some sort of
tag wherever I have notes? Thanks, John > > On 04/05/2011 10:32 PM, Eric Schulte wrote: >> >> Hi John, >> >> Interesting use case, I definitely see the utility. =C2=A0I think that b= locks >> 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 >> =C2=A0 (defvar *export-my-notes* nil) >> >> =C2=A0 (defun org-exp-block-process-notes (body&rest headers) >> =C2=A0 =C2=A0 (if *export-my-notes* >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 (format "\n#+begin_quote\n%s\n#+end_quote\n"= body) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 "")) >> >> =C2=A0 (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. >> >> >> >> >> >> John Hendy =C2=A0writes: >> >>> 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 ( =C2=A0& =C2=A0 =C2=A0-> =C2=A0/,"e; -> =C2=A0", = 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 >>> >>> >> > >