emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian <sebastian_rose@gmx.de>
To: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Worg: common #+MACRO definitions
Date: Mon, 05 Oct 2009 02:23:27 +0200	[thread overview]
Message-ID: <1254702207.8436.42.camel@beteigeuze> (raw)

[-- 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


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

             reply	other threads:[~2009-10-05  0:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-05  0:23 Sebastian [this message]
2009-10-05  6:01 ` Worg: common #+MACRO definitions 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

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:

  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=1254702207.8436.42.camel@beteigeuze \
    --to=sebastian_rose@gmx.de \
    --cc=emacs-orgmode@gnu.org \


* 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


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