emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] my-mini-table(something)


From: Giovanni Ridolfi
Subject: Re: [Orgmode] my-mini-table(something)
Date: Thu, 18 Jun 2009 10:14:25 +0000 (GMT)

--- Gio 18/6/09, Stefan Vollmar <address@hidden> 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








reply via email to

[Prev in Thread] Current Thread [Next in Thread]