summaryrefslogtreecommitdiff
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
parentb44fec5877ec9bb4801c640e8380b715d82aef2e (diff)
Fixed ployglossia support in LaTeX template for multiple langs.
\setmainlanguage will now just use the last of a comma-separated list of languages.
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
m---------templates10
2 files changed, 7 insertions, 5 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
diff --git a/templates b/templates
-Subproject d8fc051068359559b5245c13e269238b266cd75
+Subproject 49d45a23dc71fcc88923273d7d92137c20a1500