emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: sebastian_rose@gmx.de
Cc: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Worg: common #+MACRO definitions
Date: Mon, 5 Oct 2009 08:01:00 +0200	[thread overview]
Message-ID: <477C7CE1-81FA-4754-AF26-01A6A3D1D151@gmail.com> (raw)
In-Reply-To: <1254702207.8436.42.camel@beteigeuze>


On Oct 5, 2009, at 2:23 AM, Sebastian wrote:

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

I would say no problem!  Just create it.  Bastien, any objections?

- Carsten

>
>
>
> Best wishes
>
>   Sebastian
> _______________________________________________
> 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:[~2009-10-05  6:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-05  0:23 Worg: common #+MACRO definitions Sebastian
2009-10-05  6:01 ` Carsten Dominik [this message]
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:
  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=477C7CE1-81FA-4754-AF26-01A6A3D1D151@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sebastian_rose@gmx.de \
    /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).