diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-03-05 09:07:14 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-03-05 09:07:14 -0800 |
commit | 30cafd913a03fce20c55d065f1cd0cadec55375f (patch) | |
tree | 4fd0a310acc9cb286e16d5efbfb44c6a501a4549 /src | |
parent | b44fec5877ec9bb4801c640e8380b715d82aef2e (diff) | |
download | pandoc-30cafd913a03fce20c55d065f1cd0cadec55375f.tar.gz |
Fixed ployglossia support in LaTeX template for multiple langs.
\setmainlanguage will now just use the last of a comma-separated
list of languages.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 40334f0ad..55275e046 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -153,6 +153,8 @@ pandocToLaTeX options (Pandoc (Meta title authors date) blocks) = do [ ("book-class", "yes") | stBook st] ++ [ ("listings", "yes") | writerListings options || stLHS st ] ++ [ ("beamer", "yes") | writerBeamer options ] ++ + [ ("mainlang", maybe "" (reverse . takeWhile (/=',') . reverse) + (lookup "lang" $ writerVariables options)) ] ++ [ ("highlighting-macros", styleToLaTeX $ writerHighlightStyle options ) | stHighlighting st ] ++ citecontext |