Fixed ployglossia support in LaTeX template for multiple langs.

\setmainlanguage will now just use the last of a comma-separated
list of languages.
This commit is contained in:
John MacFarlane
2012-03-05 09:07:14 -08:00
parent b44fec5877
commit 30cafd913a
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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