From: Juan Pechiar <juan@pechiar.com>
To: Benny Simonsen <benny@slbs.dk>
Cc: emacs-orgmode@gnu.org
Subject: Re: Multiline #+MACRO:
Date: Mon, 3 Dec 2012 18:28:47 -0200 [thread overview]
Message-ID: <20121203202847.GA32043@soloJazz.com> (raw)
In-Reply-To: <CABFHgZ9gPv=hPRNtptV+9hX8s_34SSo9txCORzSjnLiqxbS9Zg@mail.gmail.com>
On Mon, Dec 03, 2012 at 08:28:26PM +0100, Benny Simonsen wrote:
> I would like to make a multiline macro that contains somethiing like this:
> #+ATTR_HTML: class="centerimg"
> file:./gallery/$1
>
> is it possible, and how?
Hi,
\n inside a macro definition gets expanded as a new-line.
So you can implement your macro thus:
#+MACRO myimg #+ATTR_HTML: class="centerimg"\nfile:./gallery/$1
prev parent reply other threads:[~2012-12-03 20:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-03 19:28 Multiline #+MACRO: Benny Simonsen
2012-12-03 20:28 ` Juan Pechiar [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=20121203202847.GA32043@soloJazz.com \
--to=juan@pechiar.com \
--cc=benny@slbs.dk \
--cc=emacs-orgmode@gnu.org \
/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).