From ec7dbffb15a99faa6c366a049ed3fdf919a51aaf Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 22 Sep 2010 22:07:51 +0200 Subject: fixed literal blocks --- rst_directives.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'rst_directives.lua') 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([[ -- cgit v1.2.3