Thank you all!
Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD
Am 2017-05-31 um 18:57 schrieb Hans Hagen
On 5/31/2017 4:51 PM, Pablo Rodriguez wrote:
This is the way to detect system modes, but I don’t know how to do it for \mainlanguage (**en). \mainlanguage[es] \starttext \en\startlua if tex.systemmodes['en'] then context('Language is English.') else context('Language is not English.') end context('\\par') if tex.modes['es'] then context('Main language is Spanish.') else context('Main language is not Spanish.') end \stoplua \stoptext Just in case it help, tex.modes['*en'] tex.modes['**en']
tex.systemmodes['en'] tex.systemmodes['*en']