Modified ConTeXt writer to use \subsubsubsubsection etc.,

since these are supported (up to at least sub x 5).


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1082 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2007-11-17 23:26:51 +00:00
parent 5b5d9bcd76
commit 4c9a85b821

View file

@ -163,10 +163,8 @@ blockToConTeXt opts HorizontalRule = return $ text "\\thinrule\n"
blockToConTeXt opts (Header level lst) = do
contents <- inlineListToConTeXt opts lst
let base = if writerNumberSections opts then "section" else "subject"
return $ if level > 0 && level <= 3
then char '\\' <> text (concat (replicate (level - 1) "sub")) <>
text base <> char '{' <> contents <> char '}' <> char '\n'
else contents <> char '\n'
return $ char '\\' <> text (concat (replicate (level - 1) "sub")) <>
text base <> char '{' <> contents <> char '}' <> char '\n'
blockToConTeXt opts (Table caption aligns widths heads rows) = do
let colWidths = map printDecimal widths
let colDescriptor colWidth alignment = (case alignment of