From: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>
To: emacs-orgmode <emacs-orgmode@gnu.org>,
Stefan Vollmar <vollmar@nf.mpg.de>
Subject: Re: my-mini-table(something)
Date: Thu, 18 Jun 2009 10:14:25 +0000 (GMT) [thread overview]
Message-ID: <53831.25060.qm@web28311.mail.ukl.yahoo.com> (raw)
--- Gio 18/6/09, Stefan Vollmar <vollmar@nf.mpg.de> ha scritto:
>
> For one project, I used several statements like this
> (simplified):
>
> #+HTML: <table><tr><td><img
> src="./images/icon.png"/></td><td<code>something</code></td></tr></table>
>
> #+HTML: <table><tr><td><img
> src="./images/icon.png"/></td><td<code>other</code></td></tr></table>
>
> The result looks exactly the way we have planned it,
> however, ideally one would want to write:
>
> \my-mini-table(something)
> \my-mini-table(other)
>
+ you can use yasnippet
http://code.google.com/p/yasnippet/
http://doc.norang.ca/org-mode.html#sec-15.1
+ Or macros? manual, chapter 12.1 Markup rules
Macro replacement
-----------------
You can define text snippets with
#+MACRO: name replacement text
which can be referenced anywhere in the document (even in code
examples) with `{{{name}}}'.
#+MACRO: my-mt-sth #+HTML: <table><tr><td><img> src="./images/icon.png"/></td><td<code>something</code></td></tr></table>
cheers
Giovanni
next reply other threads:[~2009-06-18 10:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-18 10:14 Giovanni Ridolfi [this message]
2009-06-18 11:40 ` my-mini-table(something) Stefan Vollmar
2009-06-18 14:00 ` my-mini-table(something) Sebastian Rose
-- strict thread matches above, loose matches on Subject: below --
2009-06-18 13:11 my-mini-table(something) giovanni.ridolfi
2009-06-19 5:42 ` my-mini-table(something) Carsten Dominik
2009-06-18 9:56 my-mini-table(something) Stefan Vollmar
2009-06-18 12:25 ` my-mini-table(something) Matthew Lundin
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53831.25060.qm@web28311.mail.ukl.yahoo.com \
--to=giovanni.ridolfi@yahoo.it \
--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 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.