Re: [NTG-context] How to test which is current "mainlanguage"?

2015-12-31 Thread Lukáš Procházka
... Great, thank you! Lukas On Thu, 31 Dec 2015 11:52:46 +0100, Wolfgang Schuster wrote: Lukáš Procházka 31. Dezember 2015 um 11:07 Hello, how to detect which language set by \mainlanguage[xy] is active? How to detect it by a) ConTeXt

[NTG-context] xtables doesn't work in CLD

2015-12-31 Thread Romain Diss
Hi all, I am trying to use xtables in a CLD document but when I add a row, it doesn't compile anymore. Is there something wrong? If xtables is not usable with CLD, what is the best set of table commands to use with CLD? % Minimum not working example : context.starttext()

Re: [NTG-context] How to test which is current "mainlanguage"?

2015-12-31 Thread Wolfgang Schuster
Lukáš Procházka 31. Dezember 2015 um 11:07 Hello, how to detect which language set by \mainlanguage[xy] is active? How to detect it by a) ConTeXt and b) Lua? Something like: \mainlanguage[cz] \ifmainlanguage{cz} Do someting \fi and if context.languages.active() ==

[NTG-context] How to test which is current "mainlanguage"?

2015-12-31 Thread Lukáš Procházka
Hello, how to detect which language set by \mainlanguage[xy] is active? How to detect it by a) ConTeXt and b) Lua? Something like: \mainlanguage[cz] \ifmainlanguage{cz} Do someting \fi and if context.languages.active() == "cz" then -- Do somthing end Best regards, Lukas -- Ing.

Re: [NTG-context] Problem to place a label in an environment \startMPcode \stopMPcode

2015-12-31 Thread Alan BRASLAU
Works fine here. Alan P.S. I simplified your code slightly: \definefloat [recipe] [figure] [default={right,none}] \setupbodyfont [pagella,9pt] \starttext \startplacerecipe \startMPcode pair vert[] ; numeric n ; n := 5 ; numeric radius ; radius := 2cm ; for i=0 upto n

[NTG-context] Problem to place a label in an environment \startMPcode \stopMPcode

2015-12-31 Thread Fabrice Couvreur
Hello, The code below works perfectly without the placement of the label, but if I want to place the label, it no longer works. Thank you \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \starttext \switchtobodyfont [pagella, 9pt] \placerecipe{}{