From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dominik, C." Subject: RE: annotations (not the remember kind) Date: Wed, 11 Jun 2008 07:36:43 +0200 Message-ID: <9592BB6CDB1CEB48826BE86ACD71FA996ABF8B@kwik.ic.uva.nl> References: <20080530213105.GB16661@atlantic.linksys.moosehall> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0497761327==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6J5C-0000Wo-Ib for emacs-orgmode@gnu.org; Wed, 11 Jun 2008 01:41:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6J5B-0000Vm-K0 for emacs-orgmode@gnu.org; Wed, 11 Jun 2008 01:41:17 -0400 Received: from [199.232.76.173] (port=58257 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6J5B-0000VT-Dh for emacs-orgmode@gnu.org; Wed, 11 Jun 2008 01:41:17 -0400 Received: from kwik.ic.uva.nl ([146.50.98.168]:12765) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K6J5B-0003J4-LX for emacs-orgmode@gnu.org; Wed, 11 Jun 2008 01:41:17 -0400 Content-class: urn:content-classes:message 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: Adam Spiers , org-mode mailing list This is a multi-part message in MIME format. --===============0497761327== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8CB85.C41AE92C" This is a multi-part message in MIME format. ------_=_NextPart_001_01C8CB85.C41AE92C Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Adam. hmm, I can see nothing that would help you directly with this. However, there is org-export-preprocess-hook. This hook runs before the export conversion of a buffer is attempted. If you add a function to this hook it will be called in a temporary buffer containing the entire file or section to be exported. There will be a variable `htmlp' telling you if export is to HTML, and similarly variables `latexp' and `asciip'. Your function could go through the buffer, find sections with the ANNOTATION keyword and/or tags, and convert them to raw HTML, surrounded by #+BEGIN_HTML ... #+END_HTML HTH - Carsten -----Original Message----- From: emacs-orgmode-bounces+dominik=3Dscience.uva.nl@gnu.org on behalf = of Adam Spiers Sent: Fri 5/30/2008 11:31 PM To: org-mode mailing list Subject: [Orgmode] annotations (not the remember kind) =20 I have a straight-forward text document that I would like to export as HTML, but I would also like to add my own annotations to various bits of it, so that they end up something like this:
This bit still needs some work. Adam
Is this easily achievable using any existing org functionality? I couldn't think of anything obvious other than embedding raw HTML. It would be really cool if it could be attained starting from something like * Sample headline. ** This is the bit that's going to be annotated *** ANNOTATION This bit still needs some work. :Adam: or similar. _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ------_=_NextPart_001_01C8CB85.C41AE92C Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [Orgmode] annotations (not the remember kind)

Hi Adam.

hmm, I can see nothing that would help you directly with this.

However, there is org-export-preprocess-hook.

This hook runs before the export conversion of a buffer is = attempted.
If you add a function to this hook it will be called in a temporary
buffer containing the entire file or section to be exported.
There will be a variable `htmlp' telling you if export
is to HTML, and similarly variables `latexp' and `asciip'.

Your function could go through the buffer, find sections with
the ANNOTATION keyword and/or tags, and convert them to raw
HTML, surrounded by #+BEGIN_HTML ... #+END_HTML

HTH

- Carsten


-----Original Message-----
From: emacs-orgmode-bounces+dominik=3Dscience.uva.nl@gnu.org on behalf = of Adam Spiers
Sent: Fri 5/30/2008 11:31 PM
To: org-mode mailing list
Subject: [Orgmode] annotations (not the remember kind)

I have a straight-forward text document that I would like to export = as
HTML, but I would also like to add my own annotations to various = bits
of it, so that they end up something like this:

  <div class=3D"myannotation">
    This bit still needs some work.
    <span = class=3D"attribution">Adam</span>
  </div>

Is this easily achievable using any existing org functionality?  = I
couldn't think of anything obvious other than embedding raw HTML.  = It
would be really cool if it could be attained starting from something
like

  * Sample headline.
  ** This is the bit that's going to be annotated
  *** ANNOTATION This bit still needs some = work.        :Adam:

or similar.


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists= .gnu.org/mailman/listinfo/emacs-orgmode

------_=_NextPart_001_01C8CB85.C41AE92C-- --===============0497761327== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0497761327==--