summaryrefslogtreecommitdiff
path: root/rst_context.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-16 14:56:47 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-16 14:56:47 +0200
commit853269887cbef331d95e5cb410ac4f6110a3cee4 (patch)
tree2d81bb97f3e0c752029faf9958f80dc9bf530cc9 /rst_context.lua
parentf000dddf30b29568512dcdaa969c2ece42b88413 (diff)
downloadcontext-rst-853269887cbef331d95e5cb410ac4f6110a3cee4.tar.gz
line blocks have now a setup
Diffstat (limited to 'rst_context.lua')
-rw-r--r--rst_context.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/rst_context.lua b/rst_context.lua
index d8b8516..0abcdc6 100644
--- a/rst_context.lua
+++ b/rst_context.lua
@@ -768,6 +768,7 @@ function rst_context.literal_block (str)
end
function rst_context.line_block (str)
+ rst_context.addsetups("lines")
return [[
\\startlines
@@ -1207,4 +1208,19 @@ function optional_setups.deflist ()
]]
end
+function optional_setups.lines ()
+ return [[
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Lines environment (line blocks) %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\setuplines[%
+ space=on,%
+ before={\startlinecorrection\blank[small]},%
+ after={\blank[small]\stoplinecorrection},%
+]
+]]
+end
+
return rst_context