mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
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:
@@ -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
|
||||
|
||||
+1
-1
Submodule templates updated: d8fc051068...49d45a23dc
Reference in New Issue
Block a user