emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jarmo Hurri <jarmo.hurri@iki.fi>
To: emacs-orgmode@gnu.org
Subject: Multi-line macros (again)
Date: Fri, 07 Oct 2016 14:30:31 +0300	[thread overview]
Message-ID: <87int49z1k.fsf@iki.fi> (raw)


Greetings.

I think I have discussed multiline Org macros here before. But I bumped
into the issue again.

One of the most useful properties of LaTeX is \newcommand, which allows
you to reuse document structures. I really, _really_ miss this feature
in Org. Org has #+MACRO, but it is limited to a single line. That is
very inconvenient for any larger structures.

I was thinking (awfully sorry, will stop soon). Could we have multiline
macros, something like

#+BEGIN_MACRO name
#+END_MACRO

where everything between the begin and end would be expanded just like
(single line) macros are right now. With newlines included in the
expansion.

How about it?

Jarmo

             reply	other threads:[~2016-10-07 11:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-07 11:30 Jarmo Hurri [this message]
2016-10-09  9:25 ` Multi-line macros (again) Nicolas Goaziou
2016-10-12  9:56   ` Rasmus
2016-10-12 10:22     ` Nicolas Goaziou
2016-10-12 10:29       ` Rasmus

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=87int49z1k.fsf@iki.fi \
    --to=jarmo.hurri@iki.fi \
    --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).