summaryrefslogtreecommitdiff
path: root/rst_context.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-04 13:43:48 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-04 13:43:48 +0200
commit97aa5f28b096e2439d87a617c17eae52171e80d6 (patch)
tree7a5e923edd6ac5469b9adddfc37223c047348dd8 /rst_context.lua
parent5a9490c529fd711555f6dda702593602fc08d404 (diff)
downloadcontext-rst-97aa5f28b096e2439d87a617c17eae52171e80d6.tar.gz
option lists
Diffstat (limited to 'rst_context.lua')
-rw-r--r--rst_context.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/rst_context.lua b/rst_context.lua
index ff3851d..57725ed 100644
--- a/rst_context.lua
+++ b/rst_context.lua
@@ -366,4 +366,29 @@ function rst_context.block_comment (str)
]], str)
end
+function rst_context.option_list (str)
+ return [[
+\\setupTABLE[c][first] [background=color, backgroundcolor=grey, style=\tt]
+\\setupTABLE[c][each] [frame=off]
+\\setupTABLE[r][each] [frame=off]
+\\bTABLE[split=repeat,option=stretch]
+\\bTABLEhead
+\\bTR
+ \\bTH Option \\eTH
+ \\bTH Description \\eTH
+\\eTR
+\\eTABLEhead
+\\bTABLEbody
+]] .. str .. [[
+
+\\eTABLEbody
+\\eTABLE
+]]
+end
+
+function rst_context.option_item (tab)
+ return string.format([[\\bTR\\bTC %s \\eTC\\bTC %s \\eTC\\eTR
+]], tab[1], tab[2])
+end
+
return rst_context