emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Worg: common #+MACRO definitions


From: Sebastian
Subject: [Orgmode] Worg: common #+MACRO definitions
Date: Mon, 05 Oct 2009 02:23:27 +0200

Hello Worg,


I'm currently (still) sitting in front of a little tutorial (images in
XHTML export).

Every now and then, I'd like to display a (info/warning) box. Locally,
what I do is this:


In the head section of the Org-file, I define four macros:

#+MACRO: InfoBox @<div ....>@<img src="../images/icons/info.png"..
#+MACRO: EndInfoBox      @</div> 
#+MACRO: WarningBox      @<div ....>@<img src="..../warning.png"..
#+MACRO: EndWarningBox   @</div>


A box looks like this (currently without borders, but they're just
commented in worg.css):


 +----------------------------------------------------+
 | +-----+                                            |
 | | ICO |  Note, that this is the message in the     |
 | +-----+  box. The text flows aroung the image on   |
 | The left. There are different icons for info and   |
 | Warning.                                           |
 +----------------------------------------------------+

I would like to keep them in.


To do so:

  1.) I've added a directory worg/images/icons/ and
      put those little icons there.

  2.) This is the crucial point: can we have (have we?)
      a common #+SETUPFILE:, where we could define those
      macros? That way we could use those boxes in all
      our files, and they all would look the same, even
      if changed. worg/macros.org ???



Best wishes

   Sebastian

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]