Hello, How can I get the value of a variable or a mode in the lua part?
Example: context --arguments=MyVar=true test And in test.tex: \starttext \startluacode local my_var = loadstring("return " .. get_value_of("MyVar")) if my_var then tex.print("TRUE") else tex.print("FALSE") end \stopluacode \stoptext TIA for any help! Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________