Il 27/12/2009 19.41, Wolfgang Schuster ha scritto:
You're wrong, MkIV supports colors by default while you have to enable it in MkII by yourself for backwards compatibilities. The screen value for the background key could be used to set a gray background where you could change the gray value with the backgroundscreen key but real colored backgrounds are set with 'background=color,backgroundcolor=...'. In MkIV Hans made the decision to break sometimes backward compatibility and one result of this was that background=color is no longer supported because you could use backgroundcolor.
Yes, I'm wrong and I'm not surprised. I've said it clearly: I don't know ConTeXt as much as I need to use it correctly. Part of the problem is the documentation: it's difficult (for me) to navigate and know what works on what version, especially with very limited time to figure out everything. Another "problem" is the "fluidity" of ConTeXt: it changes rapidly and the documentation is left behind. It's good because it responds very quickly to the real world and users needs, on the other hand it's bad because a new user has to be "in the club" for some time to figure out everything.
---- \setupcolors[state=start] \setupbackground[background=screen] \setupbackground[state=start] \def\quotebox#1#2 {\blank \midaligned{\startbackground \quotation{\em #1} \crlf --#2 \stopbackground} \blank} ----
- the above \quotebox command, in some cases, sends pdftex and luatex (MKII and MKIV) to the moon with an infinite loop (100% CPU).
I guess this is a result of your own definition of the \quotebox macro which expects a space at the end of the command, you should write (untested) instead:
\define[2]\quotebox {\blank \startalignment[middle] \startbackground \quotation{\em#1}\crlf--#2 \stopbackground \stopalignment \blank}
A infinite loop with 100% cpu for some spaces? Well, I wasn't expecting this.
You should try to play a while with ConTeXt without such a strict and shirt timeline as you had it this time.
Best regards, Wolfgang
You are perfectly right, I've picked the wrong choice given this specific context and requirements. -- Manuel P.