diff options
author | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2010-09-22 22:07:51 +0200 |
---|---|---|
committer | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2010-09-22 22:07:51 +0200 |
commit | ec7dbffb15a99faa6c366a049ed3fdf919a51aaf (patch) | |
tree | e6702dc14edcad69f2a1d1db7614b7fb7137ba0e /rst_directives.lua | |
parent | 584c65e596bdc44bd5a9a4a3b6bd02847b48b981 (diff) | |
download | context-rst-ec7dbffb15a99faa6c366a049ed3fdf919a51aaf.tar.gz |
fixed literal blocks
Diffstat (limited to 'rst_directives.lua')
-rw-r--r-- | rst_directives.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rst_directives.lua b/rst_directives.lua index 0b042df..0d4b4e9 100644 --- a/rst_directives.lua +++ b/rst_directives.lua @@ -204,6 +204,20 @@ rst_directives.DANGER = function(addendum) ]], result) end +rst_directives.mp = function(name, data) + local mpcode = string.format([[ +\startreusableMPgraphic{%s} +%s +\stopreusableMPgraphic +]], name, data) + mpcode = mpcode .. string.format([[ +\def\RSTsubstitution%s{%% + \reuseMPgraphic{%s}%% +} +]], name, name) + return mpcode +end + rst_directives.ctx = function(name, data) local ctx = string.format([[ |