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.
I'd like to do the following type of setup.
if mainlanguage == kr then
do something A
elseif mainlanguage == en then
do something B
do something C
So, if \mainlanguage[kr] is set, then do A, and etc.
Thank you for reading.