emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Multiline #+MACRO:
@ 2012-12-03 19:28 Benny Simonsen
  2012-12-03 20:28 ` Juan Pechiar
  0 siblings, 1 reply; 2+ messages in thread
From: Benny Simonsen @ 2012-12-03 19:28 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 169 bytes --]

Hi

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?

Thanks,
Benny

[-- Attachment #2: Type: text/html, Size: 210 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Multiline #+MACRO:
  2012-12-03 19:28 Multiline #+MACRO: Benny Simonsen
@ 2012-12-03 20:28 ` Juan Pechiar
  0 siblings, 0 replies; 2+ messages in thread
From: Juan Pechiar @ 2012-12-03 20:28 UTC (permalink / raw)
  To: Benny Simonsen; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-03 20:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-03 19:28 Multiline #+MACRO: Benny Simonsen
2012-12-03 20:28 ` Juan Pechiar

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