LaTeX writer: \textarabic fix

This commit is contained in:
mb21 2015-10-25 18:31:35 +01:00
parent f3e559c43c
commit f3f6483510

View file

@ -800,7 +800,7 @@ inlineToLaTeX (Span (id',classes,kvs) ils) = do
(if rtl then inCmd "RL" else id) .
(if ltr then inCmd "LR" else id) .
(case lookup "lang" kvs of
Just lng -> let (l, o) = toPolyglossiaEnv lng
Just lng -> let (l, o) = toPolyglossia $ splitBy (=='-') lng
ops = if null o then "" else brackets (text o)
in \c -> char '\\' <> "text" <> text l <> ops <> braces c
Nothing -> id)