emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Worg: common #+MACRO definitions
@ 2009-10-05  0:23 Sebastian
  2009-10-05  6:01 ` Carsten Dominik
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastian @ 2009-10-05  0:23 UTC (permalink / raw)
  To: Orgmode Mailing List


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

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 #1.2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 2149 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-10-05 14:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-05  0:23 Worg: common #+MACRO definitions Sebastian
2009-10-05  6:01 ` Carsten Dominik
2009-10-05  6:52   ` Bastien
2009-10-05 13:19     ` Sebastian
2009-10-05 13:32       ` Carsten Dominik
2009-10-05 13:44       ` Bastien
2009-10-05 14:19         ` Sebastian

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).