On Fri, Dec 10 2010, Renaud AUBIN wrote: > Ok but then why did you define a specific color palet? > > local function color_init() > color = 0 > local def_colors = -- \setupcolor[ema] introduces new line...
The comment says it: \setupcolor[ema] introduces new line and that's annoying when you do inline typing: bla bla \typeC{int main(){}} bla bla The \definecolor[] lines (dirty workaround) were just copied from colo-ema.tex. The problem with the pretty-c.lua was, that color_init() was called at every \typeC{} or \startC. In your t-pretty-c.mkiv you can use \setupcolor[ema] without problems. 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 ___________________________________________________________________________________