diff options
author | Mauro Bieg <mb21@users.noreply.github.com> | 2016-02-19 10:10:12 +0100 |
---|---|---|
committer | mb21 <mb21@users.noreply.github.com> | 2016-03-20 19:17:30 +0100 |
commit | 44f95484a4b4544ef41dab087af92a80fc5996cd (patch) | |
tree | 2479a1b9c38e7669be085a6bd957f121a431e6f3 /src/Text | |
parent | 2e2298abf3d51050d0c04e5d6c544a8fe0905ecf (diff) | |
download | pandoc-44f95484a4b4544ef41dab087af92a80fc5996cd.tar.gz |
LaTeX Writer: fix polyglossia to babel env mapping
allow for optional argument in square brackets, closes #2728
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 0f47132b3..3f7c28e81 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -223,7 +223,7 @@ pandocToLaTeX options (Pandoc meta blocks) = do ++ poly ++ "}{##2}}}\n" else "\\newcommand{\\text" ++ poly ++ "}[2][]{\\foreignlanguage{" ++ babel ++ "}{#2}}\n" ++ - "\\newenvironment{" ++ poly ++ "}[1]{\\begin{otherlanguage}{" + "\\newenvironment{" ++ poly ++ "}[2][]{\\begin{otherlanguage}{" ++ babel ++ "}}{\\end{otherlanguage}}\n" ) -- eliminate duplicates that have same polyglossia name |