From 03bf8d3228645891312069656b4e8ab74e56f5d3 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 29 Aug 2011 00:13:26 +0200 Subject: workaround for unwilling contex() function --- mod/tex/context/third/rst/rst_parser.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mod/tex') diff --git a/mod/tex/context/third/rst/rst_parser.lua b/mod/tex/context/third/rst/rst_parser.lua index c871fb6..19f0a10 100644 --- a/mod/tex/context/third/rst/rst_parser.lua +++ b/mod/tex/context/third/rst/rst_parser.lua @@ -1553,8 +1553,11 @@ function thirddata.rst.do_rst_inclusion (iname, fname) end function thirddata.rst.do_rst_setups () - local out = table.concat(rst_incsetups ) - context(out) + local out = table.concat(rst_incsetups) + --context(out) --- why doesn’t this work? + local tmp_file = tex.jobname .. "–rst_setups.tex.tmp" + save_file(tmp_file, out) + context.input(tmp_file) end function thirddata.rst.get_rst_inclusion (iname) -- cgit v1.2.3