emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Dominik, C." <C.Dominik@uva.nl>
To: Adam Spiers <orgmode@adamspiers.org>,
	org-mode mailing list <emacs-orgmode@gnu.org>
Subject: RE: annotations (not the remember kind)
Date: Wed, 11 Jun 2008 07:36:43 +0200	[thread overview]
Message-ID: <9592BB6CDB1CEB48826BE86ACD71FA996ABF8B@kwik.ic.uva.nl> (raw)
In-Reply-To: 20080530213105.GB16661@atlantic.linksys.moosehall


[-- Attachment #1.1: Type: text/plain, Size: 1773 bytes --]

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=science.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="myannotation">
    This bit still needs some work.
    <span class="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


[-- Attachment #1.2: Type: text/html, Size: 2590 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

  reply	other threads:[~2008-06-11  5:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-30 21:31 annotations (not the remember kind) Adam Spiers
2008-06-11  5:36 ` Dominik, C. [this message]
2008-06-11 10:57   ` Adam Spiers

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=9592BB6CDB1CEB48826BE86ACD71FA996ABF8B@kwik.ic.uva.nl \
    --to=c.dominik@uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=orgmode@adamspiers.org \
    /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).