What is the difference between \setdefaultlanguage
vs \setmainlanguage
? I have seen either one and also both used with polyglossia
. I am confused as to which one I should use in my document.
The manual states on page 4 that you can set the primary language using \setdefaultlanguage
and that \setmainlanguage
acts identically (is a synonym).
-
1I'd also remark that, in my opinion,
\setmainlanguage
is semantically better. Alsobabel
hasmain=<language>
andfontspec
has\setmainfont
. – egreg Oct 7 '17 at 17:43
polyglossia
-commands. It states: You can determine the default language by means of the command:\setdefaultlanguage[⟨options⟩]{lang}
(or equivalently\setmainlanguage
). – thymaro Oct 7 '17 at 9:20