summaryrefslogtreecommitdiff
path: root/rst_context.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-03 23:42:09 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-03 23:42:09 +0200
commit327c881beb87e751e38c17c06b5e0490d2299d80 (patch)
treedbb2edfe4aadf3bc9f56b42e07290d52fbbea9d7 /rst_context.lua
parent1b9d29fb870019c8198d4c70662b4f6a37c401d7 (diff)
downloadcontext-rst-327c881beb87e751e38c17c06b5e0490d2299d80.tar.gz
definition lists
Diffstat (limited to 'rst_context.lua')
-rw-r--r--rst_context.lua35
1 files changed, 35 insertions, 0 deletions
diff --git a/rst_context.lua b/rst_context.lua
index 40dd719..e6c20ee 100644
--- a/rst_context.lua
+++ b/rst_context.lua
@@ -277,4 +277,39 @@ function rst_context.bullet_item (str)
]]
end
+--------------------------------------------------------------------------------
+-- Definition lists
+--------------------------------------------------------------------------------
+-- TODO define proper setups (probably bnf-like and some narrower for def-paragraphs)
+
+function rst_context.deflist (str)
+ return [[
+
+\\startdefinitionlist
+]] .. str .. [[
+
+\\stopdefinitionlist
+]]
+end
+
+function rst_context.deflist_item (str)
+ return [[\\definitionitem{%]] .. str .. [[}]]
+end
+
+function rst_context.deflist_classifier (str)
+ return [[\\definitionclassifier{]] .. str .. [[}]]
+end
+
+function rst_context.deflist_term (str)
+ return [[
+
+ \\definitionterm{]] .. str .. [[}]]
+end
+
+function rst_context.deflist_def (str)
+ return [[
+
+ \\definitiondef{%]] .. str .. [[}]]
+end
+
return rst_context