Hello, On Tue, 22 Dec 2015 18:21:01 +0100, Hans Hagen <pra...@wxs.nl> wrote:
t = {["legend entries"]="{Cos,Sin2,Sin}", "reverse legend"}such a table is valid lua (mixture of indexed and hashed) but of course the application using it has to know how to use it
OK, so when '{["legend entries"]="{Cos,Sin2,Sin}", "reverse legend"}' is a valid Lua call and, what I guess, a valid Lua-to-context call - - why the code doesn't work? I also tried Aditya's way II - to build the "command-string" and to pass it to context: " context(string.format("\\startaxis[legend entries={%s},reverse legend]", "Sin,Cos")) " It works, although I'd rather use "context.startaxis{...options...}" style as it looks "nicer". Next question - why " context[[\startaxis]] " doesn't work, whilst context"\\startaxis" does? (See attached files.) Best regards, Lukas
Hans
-- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038
t-Plot4.mkiv
Description: Binary data
t-Plot4.pdf
Description: Adobe PDF document
___________________________________________________________________________________ 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 ___________________________________________________________________________________