* 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
* Re: Worg: common #+MACRO definitions
2009-10-05 0:23 Worg: common #+MACRO definitions Sebastian
@ 2009-10-05 6:01 ` Carsten Dominik
2009-10-05 6:52 ` Bastien
0 siblings, 1 reply; 7+ messages in thread
From: Carsten Dominik @ 2009-10-05 6:01 UTC (permalink / raw
To: sebastian_rose; +Cc: Orgmode Mailing List
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Worg: common #+MACRO definitions
2009-10-05 6:01 ` Carsten Dominik
@ 2009-10-05 6:52 ` Bastien
2009-10-05 13:19 ` Sebastian
0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2009-10-05 6:52 UTC (permalink / raw
To: Carsten Dominik; +Cc: Orgmode Mailing List
Carsten Dominik <carsten.dominik@gmail.com> writes:
>> 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?
Sure, no objection!
--
Bastien, catching up emails from an airport
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Worg: common #+MACRO definitions
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
0 siblings, 2 replies; 7+ messages in thread
From: Sebastian @ 2009-10-05 13:19 UTC (permalink / raw
To: Bastien; +Cc: Orgmode Mailing List, Carsten Dominik
[-- Attachment #1.1: Type: text/plain, Size: 597 bytes --]
Am Montag, den 05.10.2009, 14:52 +0800 schrieb Bastien:
> Carsten Dominik <carsten.dominik@gmail.com> writes:
>
> >> 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?
>
> Sure, no objection!
But we would need to exclude it from the export, which I cannot do.
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
* Re: Worg: common #+MACRO definitions
2009-10-05 13:19 ` Sebastian
@ 2009-10-05 13:32 ` Carsten Dominik
2009-10-05 13:44 ` Bastien
1 sibling, 0 replies; 7+ messages in thread
From: Carsten Dominik @ 2009-10-05 13:32 UTC (permalink / raw
To: sebastian_rose; +Cc: Bastien, Orgmode Mailing List
On Oct 5, 2009, at 3:19 PM, Sebastian wrote:
> Am Montag, den 05.10.2009, 14:52 +0800 schrieb Bastien:
>> Carsten Dominik <carsten.dominik@gmail.com> writes:
>>
>>>> 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?
>>
>> Sure, no objection!
>
> But we would need to exclude it from the export, which I cannot do.
Why? It will create macros.php, yes, but no link to that file will
exist, and nobody should ever see that.
- Carsten
>
>
>
> Sebastian
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Worg: common #+MACRO definitions
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
1 sibling, 1 reply; 7+ messages in thread
From: Bastien @ 2009-10-05 13:44 UTC (permalink / raw
To: sebastian_rose; +Cc: Orgmode Mailing List, Carsten Dominik
Sebastian <sebastian_rose@gmx.de> writes:
> Am Montag, den 05.10.2009, 14:52 +0800 schrieb Bastien:
>> Carsten Dominik <carsten.dominik@gmail.com> writes:
>>
>> >> 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?
>>
>> Sure, no objection!
>
> But we would need to exclude it from the export, which I cannot do.
Please create the file and I will exclude it from export.
--
Bastien
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Worg: common #+MACRO definitions
2009-10-05 13:44 ` Bastien
@ 2009-10-05 14:19 ` Sebastian
0 siblings, 0 replies; 7+ messages in thread
From: Sebastian @ 2009-10-05 14:19 UTC (permalink / raw
To: Bastien; +Cc: Orgmode Mailing List, Carsten Dominik
[-- Attachment #1.1: Type: text/plain, Size: 924 bytes --]
Am Montag, den 05.10.2009, 21:44 +0800 schrieb Bastien:
> Sebastian <sebastian_rose@gmx.de> writes:
>
> > Am Montag, den 05.10.2009, 14:52 +0800 schrieb Bastien:
> >> Carsten Dominik <carsten.dominik@gmail.com> writes:
> >>
> >> >> 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?
> >>
> >> Sure, no objection!
> >
> > But we would need to exclude it from the export, which I cannot do.
>
> Please create the file and I will exclude it from export.
As Carsten proposed: I renamed macros.org to macros.setupfile to inhibit
export. No need to exclude it (?).
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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.