![](https://secure.gravatar.com/avatar/ecffc5c1eb6692198d091ee98e921822.jpg?s=120&d=mm&r=g)
27 May
2011
27 May
'11
3:49 a.m.
Dear all, Is it possible to check what is the mainlanguage set in document? Now, I use \enablemode[kr] to do something A. But, I'd like to do it automatically if possible. For example, I'd like to do the following type of setup. if mainlanguage == kr then do something A elseif mainlanguage == en then do something B else do something C endif So, if \mainlanguage[kr] is set, then do A, and etc. Thank you for reading. Best regards, Dalyoung