summaryrefslogtreecommitdiff
path: root/mod/tex
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2011-08-29 00:13:26 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2011-08-29 00:13:26 +0200
commit03bf8d3228645891312069656b4e8ab74e56f5d3 (patch)
treee2dd953e5b51486e5ad0a7fe5d3c20fab37f3a70 /mod/tex
parentc87b1eb960d7bb862a9fbb6a8c115d6a9ba34769 (diff)
downloadcontext-rst-03bf8d3228645891312069656b4e8ab74e56f5d3.tar.gz
workaround for unwilling contex() function
Diffstat (limited to 'mod/tex')
-rw-r--r--mod/tex/context/third/rst/rst_parser.lua7
1 files changed, 5 insertions, 2 deletions
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)