parent
b4441c940d
commit
892ba2dd16
1 changed files with 4 additions and 2 deletions
|
@ -126,14 +126,16 @@ pandocToLaTeX options (Pandoc meta blocks) = do
|
||||||
(biblioTitle :: String) <- liftM (render colwidth) $ inlineListToLaTeX lastHeader
|
(biblioTitle :: String) <- liftM (render colwidth) $ inlineListToLaTeX lastHeader
|
||||||
let main = render colwidth $ vsep body
|
let main = render colwidth $ vsep body
|
||||||
st <- get
|
st <- get
|
||||||
|
titleMeta <- stringToLaTeX TextString $ stringify $ docTitle meta
|
||||||
|
authorsMeta <- mapM (stringToLaTeX TextString . stringify) $ docAuthors meta
|
||||||
let context = defField "toc" (writerTableOfContents options) $
|
let context = defField "toc" (writerTableOfContents options) $
|
||||||
defField "toc-depth" (show (writerTOCDepth options -
|
defField "toc-depth" (show (writerTOCDepth options -
|
||||||
if writerChapters options
|
if writerChapters options
|
||||||
then 1
|
then 1
|
||||||
else 0)) $
|
else 0)) $
|
||||||
defField "body" main $
|
defField "body" main $
|
||||||
defField "title-meta" (stringify $ docTitle meta) $
|
defField "title-meta" titleMeta $
|
||||||
defField "author-meta" (intercalate "; " $ map stringify $ docAuthors meta) $
|
defField "author-meta" (intercalate "; " authorsMeta) $
|
||||||
defField "documentclass" (if writerBeamer options
|
defField "documentclass" (if writerBeamer options
|
||||||
then ("beamer" :: String)
|
then ("beamer" :: String)
|
||||||
else if writerChapters options
|
else if writerChapters options
|
||||||
|
|
Loading…
Add table
Reference in a new issue