From: Carsten Dominik <carsten.dominik@gmail.com>
To: Stefan Vollmar <vollmar@nf.mpg.de>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: MACRO with multiple arguments?
Date: Tue, 23 Jun 2009 12:07:47 +0200 [thread overview]
Message-ID: <B4F7F45E-EE27-4CF1-85BA-29A5648FC0C3@gmail.com> (raw)
In-Reply-To: <6D783254-2C0B-42FA-B7C4-4F02EC248874@nf.mpg.de>
On Jun 23, 2009, at 12:15 AM, Stefan Vollmar wrote:
> Hello,
>
> I need to occasionally export a simple table with two images (so
> they are nicely aligned in one row). My approach was to use a MACRO:
>
> #+MACRO: my-simple-2table #+HTML: <table><tr><td style="vertical-
> align:middle;margin-right:0em;margin-left:0em;padding:0;"><img
> src="./images/$1"/></td><td style="vertical-align:middle"><img
> src="./images/$2"/></td></tr></table>
>
> But
>
> {{{my-simple-2table(image1, image2)}}}
>
> does not work (MACROs with just one argument work fine in 6.27trans
> of some minutes ago; MACRO support was broken some hours ago):
>
> $1 -> "image1, image2"
> $2 -> ""
>
> I am not sure if this example is supposed to even work at all (there
> is no such claim in the 6.27 release notes), however, it would be
> nice if it did! Many thanks in advance!
>
> I am sorry if this topic has been discussed before.
The argument separator was ";", but I am actually changing it back to
comma, this
feels more natural to me.
If you need a comma in an argument, write it as "\,".
HTH
- Carsten
>
> Warm regards,
> Stefan
> --
> Dr. Stefan Vollmar, Dipl.-Phys.
> Max-Planck-Institut für neurologische Forschung
> Gleuelerstr. 50, 50931 Köln, Germany
> Tel.: +49-221-4726-213 FAX +49-221-4726-298
> Tel.: +49-221-478-5713 Mobile: 0160-93874279
> Email: vollmar@nf.mpg.de http://www.nf.mpg.de
>
>
>
>
>
>
>
> _______________________________________________
> 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
prev parent reply other threads:[~2009-06-23 10:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-22 22:15 MACRO with multiple arguments? Stefan Vollmar
2009-06-23 10:07 ` Carsten Dominik [this message]
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=B4F7F45E-EE27-4CF1-85BA-29A5648FC0C3@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=vollmar@nf.mpg.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).