* Oh no! Never update in the middle of a project. I am in trouble. @ 2006-06-27 19:59 David Arnold 2006-06-27 20:03 ` Gerben Wierda 2006-06-27 20:09 ` Hans Hagen 0 siblings, 2 replies; 18+ messages in thread From: David Arnold @ 2006-06-27 19:59 UTC (permalink / raw) All, I updated to Gerben's latest context and now files that formally compiled will not. Here's one error: The code: Let's look at another example. \startexample[exam:relT] Consider the relation $T$ defined by \placeformula[eq:rel2] \startformula T=\big\{(1,2), (3,2), (4,5)\big\}. \stopformula What is the domain and range of this relation? The result: ! Extra }, or forgotten \endgroup. \doattributes ...name #1#2\@EA \endcsname \fi {#4} \dostopattributes \special@@descriptionhandler ...t #2\endstrut }}}} \doifsomething {\descripti... \@@dostartdescription ...gnorespaces #3\endstrut } }\assignwidth \!! widtha {\... \@@descriptionserriedbroad ...\def \\{\crlf }}{#2} \noindent \ignorespaces \i... \dodogotopar ...description {example}[exam:relT]{} \BeforePar \emptytoks <to be read again> C l.100 C onsider the relation $T$ defined by ? Example is defined by: \defineenumeration [example] [location=serried, width=broad, text={\color[heavygreen]\bgroup\bold{Example}}, stopper={.\egroup}, style=slanted, inbetween=\blank, after=\blank] I need help! ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 19:59 Oh no! Never update in the middle of a project. I am in trouble David Arnold @ 2006-06-27 20:03 ` Gerben Wierda 2006-06-27 20:09 ` Hans Hagen 2006-06-27 20:12 ` David Arnold 2006-06-27 20:09 ` Hans Hagen 1 sibling, 2 replies; 18+ messages in thread From: Gerben Wierda @ 2006-06-27 20:03 UTC (permalink / raw) On Jun 27, 2006, at 21:59, David Arnold wrote: > I updated to Gerben's latest context and now files that formally > compiled will not. Let's shoot him! G ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 20:03 ` Gerben Wierda @ 2006-06-27 20:09 ` Hans Hagen 2006-06-27 20:12 ` David Arnold 1 sibling, 0 replies; 18+ messages in thread From: Hans Hagen @ 2006-06-27 20:09 UTC (permalink / raw) Gerben Wierda wrote: > On Jun 27, 2006, at 21:59, David Arnold wrote: > > >> I updated to Gerben's latest context and now files that formally >> compiled will not. >> > > Let's shoot him! > before doing that, will make sure that David behaved well -) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 20:03 ` Gerben Wierda 2006-06-27 20:09 ` Hans Hagen @ 2006-06-27 20:12 ` David Arnold 1 sibling, 0 replies; 18+ messages in thread From: David Arnold @ 2006-06-27 20:12 UTC (permalink / raw) Nah, Where would I get my cool Christmas and New Year's cards? On Jun 27, 2006, at 1:03 PM, Gerben Wierda wrote: > On Jun 27, 2006, at 21:59, David Arnold wrote: > >> I updated to Gerben's latest context and now files that formally >> compiled will not. > > Let's shoot him! > > G > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 19:59 Oh no! Never update in the middle of a project. I am in trouble David Arnold 2006-06-27 20:03 ` Gerben Wierda @ 2006-06-27 20:09 ` Hans Hagen 2006-06-27 20:23 ` David Arnold 2006-06-27 20:43 ` David Arnold 1 sibling, 2 replies; 18+ messages in thread From: Hans Hagen @ 2006-06-27 20:09 UTC (permalink / raw) David Arnold wrote: > All, > > I updated to Gerben's latest context and now files that formally > compiled will not. > > Here's one error: > > > \defineenumeration > [example] > [location=serried, > width=broad, > text={\color[heavygreen]\bgroup\bold{Example}}, > stopper={.\egroup}, > style=slanted, > inbetween=\blank, > after=\blank] > well, having bgroup/egroup split that way is asking for trouble, and i'm surprised that it worked before -) \defineenumeration [example] [location=serried, width=broad, text=Example, headcolor=green, headstyle=bold, % stopper=., style=slanted, inbetween=\blank, after=\blank] however, the stopper is doing funny things Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 20:09 ` Hans Hagen @ 2006-06-27 20:23 ` David Arnold 2006-06-27 21:30 ` Hans Hagen 2006-06-27 20:43 ` David Arnold 1 sibling, 1 reply; 18+ messages in thread From: David Arnold @ 2006-06-27 20:23 UTC (permalink / raw) Cc: Jacob Prystowsky Hans (please CC Jacob), here is the whole environment file. My student did this for me, but if you'd like to make some changes, that would be ok. He has in another environment file: \def\indetvskiponeem{\vskip 1em plus 1em minus 1em} Then he has: \def\startboxcode{\indetvskiponeem\hbox\bgroup\hskip 0.1\makeupwidth} \def\stopboxcode{\hskip 0.1\makeupwidth\egroup\indetvskiponeem} \def\keyprefix{\bigstar\hskip 1em} \def\tipprefix{\checkmark\hskip 1em} \def\summaryprefix{\bigstar\hskip 1em} \def\boxwidth{0.8\makeupwidth} \def\warningprefix{\bgroup\tfa\bold{!}\egroup\hskip 1em} \defineenumeration [summary] [location=serried, width=broad, text=\summaryprefix Summary, style=slanted, number=no, inbetween=\blank, before={\startboxcode\startframedtext[width=\boxwidth, background=color,backgroundcolor=tingedblue,frame=no]}, after={\stopframedtext\stopboxcode}] \defineenumeration [keyresult] [location=serried, width=broad, text=\keyprefix, style=slanted, number=no, inbetween=\blank, before={\startboxcode\startframedtext[width=\boxwidth, background=color,backgroundcolor=tingedblue,frame=no]}, after={\stopframedtext\stopboxcode}] \defineenumeration [tip] [location=serried, width=broad, text=\tipprefix, style=slanted, number=no, inbetween=\blank, before={\startboxcode\startframedtext[width=\boxwidth, background=color,backgroundcolor=icicle,frame=no]}, after={\stopframedtext\stopboxcode}] \defineblock[insummary] \def\placesectionsummary{\unnumberedsubsection{Section Summary}\bgroup \tfx\selectblocks[insummary]\egroup} \defineenumeration [example] [location=serried, width=broad, text={\color[heavygreen]\bgroup\bold{Example}}, stopper={.\egroup}, style=slanted, inbetween=\blank, after=\blank] \defineenumeration [warning] [location=serried, width=broad, text=\warningprefix, style=slanted, number=no, inbetween=\blank, before={\startboxcode\startframedtext[width=\boxwidth, background=color,backgroundcolor=lightred,frame=no]}, after={\stopframedtext\stopboxcode}] \defineenumeration [definition] [location=serried, width=broad, text={\color[darklavender]\bgroup\bold{Definition}}, stopper={.\egroup}, style=slanted, inbetween=\blank, before={\startboxcode\startframedtext[width=\boxwidth, background=color,backgroundcolor=lavender,frame=no]}, after={\stopframedtext\stopboxcode}] ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 20:23 ` David Arnold @ 2006-06-27 21:30 ` Hans Hagen 2006-06-27 21:45 ` Aditya Mahajan 0 siblings, 1 reply; 18+ messages in thread From: Hans Hagen @ 2006-06-27 21:30 UTC (permalink / raw) Cc: Jacob Prystowsky David Arnold wrote: > Hans (please CC Jacob), here is the whole environment file. My > student did this for me, but if you'd like to make some changes, that > would be ok. > > He has in another environment file: > > \def\indetvskiponeem{\vskip 1em plus 1em minus 1em} > > Then he has: > > \def\startboxcode{\indetvskiponeem\hbox\bgroup\hskip 0.1\makeupwidth} > \def\stopboxcode{\hskip 0.1\makeupwidth\egroup\indetvskiponeem} > \def\keyprefix{\bigstar\hskip 1em} > \def\tipprefix{\checkmark\hskip 1em} > \def\summaryprefix{\bigstar\hskip 1em} > \def\boxwidth{0.8\makeupwidth} > \def\warningprefix{\bgroup\tfa\bold{!}\egroup\hskip 1em} > > \defineenumeration > [summary] > [location=serried, > width=broad, > text=\summaryprefix Summary, > style=slanted, > number=no, > inbetween=\blank, > before={\startboxcode\startframedtext[width=\boxwidth, > background=color,backgroundcolor=tingedblue,frame=no]}, > after={\stopframedtext\stopboxcode}] > > \defineenumeration > [keyresult] > [location=serried, > width=broad, > text=\keyprefix, > style=slanted, > number=no, > inbetween=\blank, > before={\startboxcode\startframedtext[width=\boxwidth, > background=color,backgroundcolor=tingedblue,frame=no]}, > after={\stopframedtext\stopboxcode}] > > \defineenumeration > [tip] > [location=serried, > width=broad, > text=\tipprefix, > style=slanted, > number=no, > inbetween=\blank, > before={\startboxcode\startframedtext[width=\boxwidth, > background=color,backgroundcolor=icicle,frame=no]}, > after={\stopframedtext\stopboxcode}] > > \defineblock[insummary] > \def\placesectionsummary{\unnumberedsubsection{Section Summary}\bgroup > \tfx\selectblocks[insummary]\egroup} > > \defineenumeration > [example] > [location=serried, > width=broad, > text={\color[heavygreen]\bgroup\bold{Example}}, > stopper={.\egroup}, > style=slanted, > inbetween=\blank, > after=\blank] > > \defineenumeration > [warning] > [location=serried, > width=broad, > text=\warningprefix, > style=slanted, > number=no, > inbetween=\blank, > before={\startboxcode\startframedtext[width=\boxwidth, > background=color,backgroundcolor=lightred,frame=no]}, > after={\stopframedtext\stopboxcode}] > > \defineenumeration > [definition] > [location=serried, > width=broad, > text={\color[darklavender]\bgroup\bold{Definition}}, > stopper={.\egroup}, > style=slanted, > inbetween=\blank, > before={\startboxcode\startframedtext[width=\boxwidth, > background=color,backgroundcolor=lavender,frame=no]}, > after={\stopframedtext\stopboxcode}] > less tricky, cleaner, etc \defineframedtext[MyBox] \setuplabeltext[definition=Definition] \setuplabeltext [example=Example] \setuplabeltext [warning={\tfb !}] \setuplabeltext [key=\bigstar] \setuplabeltext [tip=\checkmark] \setuplabeltext [summary=\bigstar\quad Summary] \definemeasure[BoxWidth][.8\textwidth] \defineblank[BoxBlank][1em plus 1em minus 1em] \setupframedtexts [MyBox] [width=\measure{BoxWidth}, before={\blank[BoxBlank]}, after={\blank[BoxBlank]}, background=color, frame=no, location=middle] \defineenumeration [summary] [location=serried, width=broad, text=\labeltext{summary}, style=slanted, number=no, inbetween=\blank, before={\startMyBox[backgroundcolor=blue]}, after=\stopMyBox] \defineenumeration [keyresult] [location=serried, width=broad, text=\labeltext{key}, style=slanted, number=no, inbetween=\blank, before={\startMyBox[backgroundcolor=blue]}, after=\stopMyBox] \defineenumeration [tip] [location=serried, width=broad, distance=1em, text=\labeltext{tip}, style=slanted, number=no, inbetween=\blank, before={\startMyBox[backgroundcolor=blue]}, after=\stopMyBox] \defineenumeration [example] [location=serried, width=broad, distance=1em, headcolor=heavygreen, headstyle=bold, text=\labeltext{example}, stopper=., style=slanted, inbetween=\blank, after=\blank] \defineenumeration [warning] [location=serried, width=broad, distance=1em, text=\labeltext{warning}, style=slanted, number=no, inbetween=\blank, before={\startMyBox[backgroundcolor=red]}, after=\stopMyBox] \defineenumeration [definition] [location=serried, width=broad, distance=1em, headcolor=darklavender, headstyle=bold, text=\labeltext{definition}, stopper=., style=slanted, inbetween=\blank, before={\startMyBox[backgroundcolor=green]}, after=\stopMyBox] \setupcolors[state=start] \starttext \input tufte \startdefinition \input tufte \stopdefinition \stoptext no more time today -) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 21:30 ` Hans Hagen @ 2006-06-27 21:45 ` Aditya Mahajan 2006-06-27 22:18 ` Hans Hagen 0 siblings, 1 reply; 18+ messages in thread From: Aditya Mahajan @ 2006-06-27 21:45 UTC (permalink / raw) On Tue, 27 Jun 2006, Hans Hagen wrote: > David Arnold wrote: >> Hans (please CC Jacob), here is the whole environment file. My >> student did this for me, but if you'd like to make some changes, that >> would be ok. >> >> He has in another environment file: >> >> [code snipped] >> > less tricky, cleaner, etc > > \defineframedtext[MyBox] > > \setuplabeltext[definition=Definition] > \setuplabeltext [example=Example] > \setuplabeltext [warning={\tfb !}] > \setuplabeltext [key=\bigstar] > \setuplabeltext [tip=\checkmark] > \setuplabeltext [summary=\bigstar\quad Summary] > > \definemeasure[BoxWidth][.8\textwidth] > > \defineblank[BoxBlank][1em plus 1em minus 1em] Wow. Did not know about labeltexts. This goes one more step in separating content from presentation. Aditya ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 21:45 ` Aditya Mahajan @ 2006-06-27 22:18 ` Hans Hagen 2006-06-27 22:25 ` David Arnold 0 siblings, 1 reply; 18+ messages in thread From: Hans Hagen @ 2006-06-27 22:18 UTC (permalink / raw) Aditya Mahajan wrote: > On Tue, 27 Jun 2006, Hans Hagen wrote: > > >> David Arnold wrote: >> >>> Hans (please CC Jacob), here is the whole environment file. My >>> student did this for me, but if you'd like to make some changes, that >>> would be ok. >>> >>> He has in another environment file: >>> >>> [code snipped] >>> >>> >> less tricky, cleaner, etc >> >> \defineframedtext[MyBox] >> >> \setuplabeltext[definition=Definition] >> \setuplabeltext [example=Example] >> \setuplabeltext [warning={\tfb !}] >> \setuplabeltext [key=\bigstar] >> \setuplabeltext [tip=\checkmark] >> \setuplabeltext [summary=\bigstar\quad Summary] >> >> \definemeasure[BoxWidth][.8\textwidth] >> >> \defineblank[BoxBlank][1em plus 1em minus 1em] >> > > Wow. Did not know about labeltexts. This goes one more step in > separating content from presentation. > well, the code in the lang-* files is pretty old (therw you can see how do deal with languages as well; there is also left/right lable stuff, as needed for chinese), actually, this is the oldest code ... (reminds of frustrations with latex due to hard coded Chapter in the styles in those days) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 22:18 ` Hans Hagen @ 2006-06-27 22:25 ` David Arnold 2006-06-27 23:26 ` David Arnold 0 siblings, 1 reply; 18+ messages in thread From: David Arnold @ 2006-06-27 22:25 UTC (permalink / raw) Cc: Jacob Prystowsky Hans, I think when we make your fixes, we'll be OK. We have one more failure that won't compile. chapter1 $ texexec section3exercises This crashes on: (./section3exercises-texutil0.tmp ! Missing } inserted. <inserted text> } <to be read again> \endgroup \special@@descriptionhandler ...t #2\endstrut }}}} \doifsomething {\descripti... \@@dostartdescription ...gnorespaces #3\endstrut } }\assignwidth \!! widtha {\... \do@@description ...tion [#2]{\def \\{\crlf }}{#3} \noindent \ignorespaces #1... \dodogotopar ...escription {question}[ex:sec3.1]{} \BeforePar \emptytoks ... l.3 \startbuffer ? Pressing "e" takes me to this area: \startquestion[ex:sec3.1] \startbuffer numeric w,h; w=4cm;h=4cm; % inititialize numerator and denominator of the slope of f numeric a; a=1.5; Our exercise envrionment file looks like this: \defineenumeration[questions][location=serried,text=\blank] \setupenumerations[questions][before={\page[yes]\unnumberedsubsection {Exercises}\startcolumns[n=2]},after=\stopcolumns,number=no] \defineenumeration[answers][location=serried,text=\blank] \setupenumerations[answers][before={\unnumberedsubsection{Answers} \startcolumns[n=2]},after=\stopcolumns,number=no] \def\placeanswers{\startanswers\doifmodeelse{short}{\selectblocks [shortanswer][criterium=section]}{\selectblocks[longanswer] [criterium=section]}\stopanswers} \defineenumeration[question][location=inleft,text={\color[heavygreen] \bgroup}] \setupenumerations [question] [location=inleft, headcolor=heavygreen, % stopper={.\egroup}, way=bysection, sectionnumber=no] \defineenumeration[subquestion][location=hanging,text={\color [heavygreen]\bgroup},conversion=characters] \setupenumerations[subquestion][stopper={.\egroup}] \defineenumeration[answer][location=inleft,text={\color[heavygreen] \bgroup}] \setupenumerations [answer] [location=inleft, headcolor=heavygreen, % stopper={.\egroup}, way=bysection, sectionnumber=no] \defineenumeration[subanswer][location=hanging,text={\color [heavygreen]\bgroup},conversion=characters] \setupenumerations[subanswer][stopper={.\egroup}] \defineblock[question,shortanswer,longanswer] \hideblocks[shortanswer,longanswer] Do you see what might be causing the problem? On Jun 27, 2006, at 3:18 PM, Hans Hagen wrote: > Aditya Mahajan wrote: >> On Tue, 27 Jun 2006, Hans Hagen wrote: >> >> >>> David Arnold wrote: >>> >>>> Hans (please CC Jacob), here is the whole environment file. My >>>> student did this for me, but if you'd like to make some changes, >>>> that >>>> would be ok. >>>> >>>> He has in another environment file: >>>> >>>> [code snipped] >>>> >>>> >>> less tricky, cleaner, etc >>> >>> \defineframedtext[MyBox] >>> >>> \setuplabeltext[definition=Definition] >>> \setuplabeltext [example=Example] >>> \setuplabeltext [warning={\tfb !}] >>> \setuplabeltext [key=\bigstar] >>> \setuplabeltext [tip=\checkmark] >>> \setuplabeltext [summary=\bigstar\quad Summary] >>> >>> \definemeasure[BoxWidth][.8\textwidth] >>> >>> \defineblank[BoxBlank][1em plus 1em minus 1em] >>> >> >> Wow. Did not know about labeltexts. This goes one more step in >> separating content from presentation. >> > well, the code in the lang-* files is pretty old (therw you can see > how do deal with languages as well; there is also left/right lable > stuff, as needed for chinese), actually, this is the oldest > code ... (reminds of frustrations with latex due to hard coded > Chapter in the styles in those days) > > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 22:25 ` David Arnold @ 2006-06-27 23:26 ` David Arnold 0 siblings, 0 replies; 18+ messages in thread From: David Arnold @ 2006-06-27 23:26 UTC (permalink / raw) Hans et al, OK. I repaired this with: \setuplabeltext[question=] \setuplabeltext[answer=] \defineenumeration [questions] [location=serried, text=\blank] \setupenumerations [questions] [before={\page[yes]\unnumberedsubsection{Exercises}\startcolumns[n=2]}, after=\stopcolumns, number=no] \defineenumeration [answers] [location=serried, text=\blank] \setupenumerations [answers] [before={\unnumberedsubsection{Answers}\startcolumns[n=2]}, after=\stopcolumns, number=no] \def\placeanswers{% \startanswers \doifmodeelse{short} {\selectblocks[shortanswer][criterium=section]} {\selectblocks[longanswer][criterium=section]} \stopanswers} \defineenumeration [question] [location=inleft, text=\labeltext{question}, headcolor=heavygreen] \setupenumerations [question] [location=inleft, headcolor=heavygreen, stopper=., way=bysection, sectionnumber=no] \defineenumeration [subquestion] [location=hanging, headcolor=heavygreen, conversion=characters] \setupenumerations [subquestion] [stopper=.] \defineenumeration [answer] [location=inleft, text=\labeltext{answer}, headcolor=heavygreen] \setupenumerations [answer] [location=inleft, headcolor=heavygreen, stopper=., way=bysection, sectionnumber=no] \defineenumeration [subanswer] [location=hanging, headcolor=heavygreen, conversion=characters] \setupenumerations [subanswer] [stopper=.] \defineblock[question,shortanswer,longanswer] \hideblocks[shortanswer,longanswer] Now back in business. Although what is still needed here is a way of "hiding" subanswers. Suggestions are welcome. On Jun 27, 2006, at 3:25 PM, David Arnold wrote: > Hans, > > I think when we make your fixes, we'll be OK. > > We have one more failure that won't compile. > > chapter1 $ texexec section3exercises > > This crashes on: > > (./section3exercises-texutil0.tmp > ! Missing } inserted. > <inserted text> > } > <to be read again> > \endgroup > \special@@descriptionhandler ...t #2\endstrut }}}} > \doifsomething > {\descripti... > > \@@dostartdescription ...gnorespaces #3\endstrut } > }\assignwidth \!! > widtha {\... > > \do@@description ...tion [#2]{\def \\{\crlf }}{#3} > \noindent > \ignorespaces #1... > > \dodogotopar ...escription {question}[ex:sec3.1]{} > \BeforePar > \emptytoks > ... > l.3 \startbuffer > > ? > > Pressing "e" takes me to this area: > > \startquestion[ex:sec3.1] > > \startbuffer > numeric w,h; > w=4cm;h=4cm; > % inititialize numerator and denominator of the slope of f > numeric a; > a=1.5; > > Our exercise envrionment file looks like this: > > \defineenumeration[questions][location=serried,text=\blank] > \setupenumerations[questions][before={\page[yes]\unnumberedsubsection > {Exercises}\startcolumns[n=2]},after=\stopcolumns,number=no] > > \defineenumeration[answers][location=serried,text=\blank] > \setupenumerations[answers][before={\unnumberedsubsection{Answers} > \startcolumns[n=2]},after=\stopcolumns,number=no] > > \def\placeanswers{\startanswers\doifmodeelse{short}{\selectblocks > [shortanswer][criterium=section]}{\selectblocks[longanswer] > [criterium=section]}\stopanswers} > > \defineenumeration[question][location=inleft,text={\color[heavygreen] > \bgroup}] > \setupenumerations > [question] > [location=inleft, > headcolor=heavygreen, > % stopper={.\egroup}, > way=bysection, > sectionnumber=no] > > \defineenumeration[subquestion][location=hanging,text={\color > [heavygreen]\bgroup},conversion=characters] > \setupenumerations[subquestion][stopper={.\egroup}] > > \defineenumeration[answer][location=inleft,text={\color[heavygreen] > \bgroup}] > \setupenumerations > [answer] > [location=inleft, > headcolor=heavygreen, > % stopper={.\egroup}, > way=bysection, > sectionnumber=no] > > \defineenumeration[subanswer][location=hanging,text={\color > [heavygreen]\bgroup},conversion=characters] > \setupenumerations[subanswer][stopper={.\egroup}] > > \defineblock[question,shortanswer,longanswer] > \hideblocks[shortanswer,longanswer] > > Do you see what might be causing the problem? > > > > On Jun 27, 2006, at 3:18 PM, Hans Hagen wrote: > >> Aditya Mahajan wrote: >>> On Tue, 27 Jun 2006, Hans Hagen wrote: >>> >>> >>>> David Arnold wrote: >>>> >>>>> Hans (please CC Jacob), here is the whole environment file. My >>>>> student did this for me, but if you'd like to make some changes, >>>>> that >>>>> would be ok. >>>>> >>>>> He has in another environment file: >>>>> >>>>> [code snipped] >>>>> >>>>> >>>> less tricky, cleaner, etc >>>> >>>> \defineframedtext[MyBox] >>>> >>>> \setuplabeltext[definition=Definition] >>>> \setuplabeltext [example=Example] >>>> \setuplabeltext [warning={\tfb !}] >>>> \setuplabeltext [key=\bigstar] >>>> \setuplabeltext [tip=\checkmark] >>>> \setuplabeltext [summary=\bigstar\quad Summary] >>>> >>>> \definemeasure[BoxWidth][.8\textwidth] >>>> >>>> \defineblank[BoxBlank][1em plus 1em minus 1em] >>>> >>> >>> Wow. Did not know about labeltexts. This goes one more step in >>> separating content from presentation. >>> >> well, the code in the lang-* files is pretty old (therw you can see >> how do deal with languages as well; there is also left/right lable >> stuff, as needed for chinese), actually, this is the oldest >> code ... (reminds of frustrations with latex due to hard coded >> Chapter in the styles in those days) >> >> >> Hans >> >> ----------------------------------------------------------------- >> Hans Hagen | PRAGMA ADE >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com >> | www.pragma-pod.nl >> ----------------------------------------------------------------- >> >> _______________________________________________ >> ntg-context mailing list >> ntg-context@ntg.nl >> http://www.ntg.nl/mailman/listinfo/ntg-context > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 20:09 ` Hans Hagen 2006-06-27 20:23 ` David Arnold @ 2006-06-27 20:43 ` David Arnold 2006-06-27 20:51 ` Hans Hagen 1 sibling, 1 reply; 18+ messages in thread From: David Arnold @ 2006-06-27 20:43 UTC (permalink / raw) Hans, Commenting the stopper did not help. If we can't figure this out piecemeal, then I can give you access to the repository and you can look at the overall construction. On Jun 27, 2006, at 1:09 PM, Hans Hagen wrote: > David Arnold wrote: >> All, >> >> I updated to Gerben's latest context and now files that formally >> compiled will not. >> >> Here's one error: >> >> >> \defineenumeration >> [example] >> [location=serried, >> width=broad, >> text={\color[heavygreen]\bgroup\bold{Example}}, >> stopper={.\egroup}, >> style=slanted, >> inbetween=\blank, >> after=\blank] >> > well, having bgroup/egroup split that way is asking for trouble, > and i'm > surprised that it worked before -) > > \defineenumeration > [example] > [location=serried, > width=broad, > text=Example, > headcolor=green, > headstyle=bold, > % stopper=., > style=slanted, > inbetween=\blank, > after=\blank] > > however, the stopper is doing funny things > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 20:43 ` David Arnold @ 2006-06-27 20:51 ` Hans Hagen 2006-06-27 21:06 ` David Arnold 2006-06-27 22:29 ` David Arnold 0 siblings, 2 replies; 18+ messages in thread From: Hans Hagen @ 2006-06-27 20:51 UTC (permalink / raw) David Arnold wrote: > Hans, > > Commenting the stopper did not help. > i'll upload a fix for the stopper (something went wrong when i changed some code due to better suffix handling in split floats) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 20:51 ` Hans Hagen @ 2006-06-27 21:06 ` David Arnold 2006-06-27 22:29 ` David Arnold 1 sibling, 0 replies; 18+ messages in thread From: David Arnold @ 2006-06-27 21:06 UTC (permalink / raw) Cc: Jacob Prystowsky And I failed to make all the changes you posted previously. After I made all of them, one error went away, now I have to attack the other enumerations in the environment file. My young helper would appreciate any words of wisdom. On Jun 27, 2006, at 1:51 PM, Hans Hagen wrote: > David Arnold wrote: >> Hans, >> >> Commenting the stopper did not help. >> > i'll upload a fix for the stopper (something went wrong when i > changed some code due to better suffix handling in split floats) > > Hans > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 20:51 ` Hans Hagen 2006-06-27 21:06 ` David Arnold @ 2006-06-27 22:29 ` David Arnold 2006-06-28 7:18 ` Hans Hagen 1 sibling, 1 reply; 18+ messages in thread From: David Arnold @ 2006-06-27 22:29 UTC (permalink / raw) Cc: Jacob Prystowsky Should I just comment out all the "stopper' commands until this update circulates through G's context updater? On Jun 27, 2006, at 1:51 PM, Hans Hagen wrote: > David Arnold wrote: >> Hans, >> >> Commenting the stopper did not help. >> > i'll upload a fix for the stopper (something went wrong when i > changed some code due to better suffix handling in split floats) > > Hans > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-27 22:29 ` David Arnold @ 2006-06-28 7:18 ` Hans Hagen 2006-06-28 15:39 ` David Arnold 0 siblings, 1 reply; 18+ messages in thread From: Hans Hagen @ 2006-06-28 7:18 UTC (permalink / raw) David Arnold wrote: > Should I just comment out all the "stopper' commands until this > update circulates through G's context updater? > no, after all, it just sets an extra period (stopper) keep in mind that putting complex code in there (esp unbalanced grouping) will never work with stoppers Hans ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-28 7:18 ` Hans Hagen @ 2006-06-28 15:39 ` David Arnold 2006-06-28 21:17 ` Hans Hagen 0 siblings, 1 reply; 18+ messages in thread From: David Arnold @ 2006-06-28 15:39 UTC (permalink / raw) So, Wait a couple days and upload Context beta again from Gerben's site? Stopper problem will then be fixed? On Jun 28, 2006, at 12:18 AM, Hans Hagen wrote: > David Arnold wrote: >> Should I just comment out all the "stopper' commands until this >> update circulates through G's context updater? >> > no, after all, it just sets an extra period (stopper) > > keep in mind that putting complex code in there (esp unbalanced > grouping) will never work with stoppers > > Hans > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Oh no! Never update in the middle of a project. I am in trouble. 2006-06-28 15:39 ` David Arnold @ 2006-06-28 21:17 ` Hans Hagen 0 siblings, 0 replies; 18+ messages in thread From: Hans Hagen @ 2006-06-28 21:17 UTC (permalink / raw) David Arnold wrote: > So, > > Wait a couple days and upload Context beta again from Gerben's site? > Stopper problem will then be fixed? > > indeed, since gerben sync each day you should by now be able to update Hans ^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2006-06-28 21:17 UTC | newest] Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-06-27 19:59 Oh no! Never update in the middle of a project. I am in trouble David Arnold 2006-06-27 20:03 ` Gerben Wierda 2006-06-27 20:09 ` Hans Hagen 2006-06-27 20:12 ` David Arnold 2006-06-27 20:09 ` Hans Hagen 2006-06-27 20:23 ` David Arnold 2006-06-27 21:30 ` Hans Hagen 2006-06-27 21:45 ` Aditya Mahajan 2006-06-27 22:18 ` Hans Hagen 2006-06-27 22:25 ` David Arnold 2006-06-27 23:26 ` David Arnold 2006-06-27 20:43 ` David Arnold 2006-06-27 20:51 ` Hans Hagen 2006-06-27 21:06 ` David Arnold 2006-06-27 22:29 ` David Arnold 2006-06-28 7:18 ` Hans Hagen 2006-06-28 15:39 ` David Arnold 2006-06-28 21:17 ` Hans Hagen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).