I did use ctxtools for purging files. But now the command is not found any longer. I installed new minimals, but that didn't help. context version: MTXrun | current version: 2010.09.05 13:23 platform: Mac OS X 10.6.4 Thanks, Jörg
Thanks, Wolfgang. But "context --purge(all)" gives me: -bash: syntax error near unexpected token `(' Did I misunderstand something? Jörg On 9/7/10 4:54 PM, Wolfgang Schuster wrote:
Am 07.09.2010 um 16:17 schrieb Jörg Hagmann:
I did use ctxtools for purging files. But now the command is not found any longer. I installed new minimals, but that didn't help.
context --purge(all)
Wolfgang
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Could somebody please tell me why this minimal example works in mk II but not in mk IV -- and what I have to change? Thanks very much, Jörg ---------minimal example-------------------------------- \definestartstop[Questions][before={\setupbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}]\startbackground},after=\stopbackground] \starttext \startQuestions \startitemize[packed] \item First question \item Second question \item Third question \stopitemize \stopQuestions \stoptext ------------end minimal example---------------------- PS: On 9/8/10 10:51 AM, luigi scarso wrote:
Did I misunderstand something? $> context --purge or $>context --purgeal I'm embarrassed ...
Ok, I narrowed it down: -------First minimal example----------- \setupcolors[state=start] \starttext \setupbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}] \startbackground \startitemize[packed] \item First question \item Second question \item Third question \stopitemize \stopbackground \stoptext ---------end of first minimal example This works in mk II, but not in mk IV. It seems that start/stopbackground has been deprecated (?). And replaced with \definetextbackground ? -------Second minimal example--------------------- \setupcolors[state=start] \starttext \setuptextbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}] \starttextbackground \startitemize[packed] \item First question \item Second question \item Third question \stopitemize \stoptextbackground \stoptext ---------end of second minimal example----------------------- This "works" in both mk II and mk IV, but compare the background with the one in the first example. Help appreciated, thanks Jörg On 9/10/10 9:28 AM, Jörg Hagmann wrote:
Could somebody please tell me why this minimal example works in mk II but not in mk IV -- and what I have to change? Thanks very much, Jörg
---------minimal example-------------------------------- \definestartstop[Questions][before={\setupbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}]\startbackground},after=\stopbackground]
\starttext
\startQuestions \startitemize[packed] \item First question \item Second question \item Third question \stopitemize \stopQuestions
\stoptext ------------end minimal example----------------------
PS: On 9/8/10 10:51 AM, luigi scarso wrote:
Did I misunderstand something? $> context --purge or $>context --purgeal I'm embarrassed ...
Am 10.09.2010 um 16:01 schrieb Jörg Hagmann:
Ok, I narrowed it down:
-------First minimal example----------- \setupcolors[state=start]
\starttext
\setupbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}] \startbackground
\startitemize[packed] \item First question \item Second question \item Third question \stopitemize
\stopbackground
\stoptext ---------end of first minimal example
This works in mk II, but not in mk IV. It seems that start/stopbackground has been deprecated (?). And replaced with \definetextbackground ?
The reason is simpler, Hans replaced in MkIV many \newcounter and \chardef definitions with real counters and forgot for the background macros to add \setnewconstant\backgroundsplit\zerocount to pack-rul.mkiv. Wolfgang
Thank you, Wolfgang. I added the line "\setnewconstant\backgroundsplit\zerocount" to pack-rul.mkiv, AND IT WORKED! This leaves the (not vital for me) question why minimal example 2 (using "setuptextbackground") produces that funny background with the same commands as in "setupbackground". Thanks again, Jörg On 9/10/10 4:06 PM, Wolfgang Schuster wrote:
Am 10.09.2010 um 16:01 schrieb Jörg Hagmann:
Ok, I narrowed it down:
-------First minimal example----------- \setupcolors[state=start]
\starttext
\setupbackground[background=color,backgroundcolor=lightgray,corner=round,frame=on,framecorner=round,framecolor=red,rulethickness=2pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.5cm,rightoffset=0.5cm,before={\blank[big]}] \startbackground
\startitemize[packed] \item First question \item Second question \item Third question \stopitemize
\stopbackground
\stoptext ---------end of first minimal example
This works in mk II, but not in mk IV. It seems that start/stopbackground has been deprecated (?). And replaced with \definetextbackground ? The reason is simpler, Hans replaced in MkIV many \newcounter and \chardef definitions with real counters and forgot for the background macros to add
\setnewconstant\backgroundsplit\zerocount
to pack-rul.mkiv.
Wolfgang
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- Prof. Jörg Hagmann-Zanolari MD University of Basel Department of Biomedicine Institute of Biochemistry and Genetics Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 267 3565
Am 10.09.2010 um 16:52 schrieb Jörg Hagmann:
Thank you, Wolfgang. I added the line "\setnewconstant\backgroundsplit\zerocount" to pack-rul.mkiv, AND IT WORKED! This leaves the (not vital for me) question why minimal example 2 (using "setuptextbackground") produces that funny background with the same commands as in "setupbackground".
Add “location=paragraph” to \setuptextbackground, to remove the empty line after the itemize environment add “nowhite” to \startitemize. Wolfgang
On 10-9-2010 4:06, Wolfgang Schuster wrote:
The reason is simpler, Hans replaced in MkIV many \newcounter and \chardef definitions with real counters and forgot for the background macros to add
\setnewconstant\backgroundsplit\zerocount
actually i forgot to change a couple of them into \backgroundsplitmode ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
Jörg Hagmann
-
luigi scarso
-
Wolfgang Schuster