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.

  • Have you read the polyglossia documentation (the section about both commands)?
    – TeXnician
    Oct 7 '17 at 7:21
  • I had not. I didn't know both were 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
  • Yes, it is. What is the correct procedure for closing? I don't have a 'close' option anywhere. Might be a privileges issue, though.
    – thymaro
    Oct 7 '17 at 9:42
  • What flag did you set?
    – thymaro
    Oct 7 '17 at 9:47
  • 3
    Since this question is on-topic and we don't have a duplicate, wouldn't it be better to provide an answer that can be found using google?
    – Johannes_B
    Oct 7 '17 at 12:40

The manual states on page 4 that you can set the primary language using \setdefaultlanguage and that \setmainlanguage acts identically (is a synonym).

  • 1
    I'd also remark that, in my opinion, \setmainlanguage is semantically better. Also babel has main=<language> and fontspec has \setmainfont.
    – egreg
    Oct 7 '17 at 17:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.