aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-03-05 09:07:14 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-03-05 09:07:14 -0800
commit30cafd913a03fce20c55d065f1cd0cadec55375f (patch)
tree4fd0a310acc9cb286e16d5efbfb44c6a501a4549 /src/Text
parentb44fec5877ec9bb4801c640e8380b715d82aef2e (diff)
downloadpandoc-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/Text')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
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