ConTeXt writer changes:

+ Use defined blockquote environment for block quotes (smaller
  font, no indent, narrower text)
+ Changed default font to 12pt
+ Changed default page layout


git-svn-id: https://pandoc.googlecode.com/svn/trunk@725 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2007-07-15 15:08:27 +00:00
parent 676b1ab149
commit 2f928d4c9d
2 changed files with 11 additions and 4 deletions

View file

@ -115,7 +115,7 @@ blockToConTeXt (Plain lst) = inlineListToConTeXt lst >>= (return . (++ "\n"))
blockToConTeXt (Para lst) = inlineListToConTeXt lst >>= (return . (++ "\n\n"))
blockToConTeXt (BlockQuote lst) = do
contents <- blockListToConTeXt lst
return $ "\\startnarrower\n" ++ contents ++ "\\stopnarrower\n\n"
return $ "\\startblockquote\n" ++ contents ++ "\\stopblockquote\n\n"
blockToConTeXt (CodeBlock str) =
return $ "\\starttyping\n" ++ str ++ "\n\\stoptyping\n"
blockToConTeXt (RawHtml str) = return ""

View file

@ -4,9 +4,10 @@
\setupinteraction[state=start, color=middlered] % needed for hyperlinks
\setuppapersize[letter][letter] % use letter paper
\setuplayout[width=6in, height=9.5in] % page layout
\setuppagenumbering[location={footer,center}, style=bold] % number pages
\setupbodyfont[11pt] % 11pt font
\setuplayout[width=middle, backspace=1.5in, cutspace=1.5in,
height=middle, header=0.75in, footer=0.75in] % page layout
\setuppagenumbering[location={footer,center}] % number pages
\setupbodyfont[12pt] % 12pt font
\setupwhitespace[medium] % inter-paragraph spacing
\setuphead[section][style=\tfc]
@ -52,3 +53,9 @@
\setupthinrules[width=15em] % width of horizontal rules
% for block quotations
\definestartstop [blockquote]
[before={\startnarrower\switchtobodyfont[11pt]
\whitespace\setupindenting[no]},
after={\stopnarrower\whitespace}]