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:
parent
5b5d9bcd76
commit
4c9a85b821
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue