From d8e6a7412c51e827616cee03a4b657b6cde03b95 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 4 Sep 2010 19:14:39 +0200 Subject: block_quotes --- rst_context.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'rst_context.lua') diff --git a/rst_context.lua b/rst_context.lua index 8913fb9..6a0d2f3 100644 --- a/rst_context.lua +++ b/rst_context.lua @@ -435,4 +435,27 @@ function rst_context.line_block_empty() return "\n" end +function rst_context.block_quote (tab) + local str = [[ +\\setupdelimitedtext [blockquote][style={\\setupbodyfont[11pt]}] % awful placeholder +\\definedelimitedtext[attribution][blockquote] +\\setupdelimitedtext [attribution][style={\\setupbodyfont[11pt]\\it}] + +\\startlinecorrection +\\startblockquote +]] .. tab[1] .. [[ + +\\stopblockquote +]] + + return tab[2] and str .. [[ +\\startattribution +]] .. tab[2] .. [[ +\\stopattribution +\\stoplinecorrection +]] or str .. [[ +\\stoplinecorrection +]] +end + return rst_context -- cgit v1.2.3