Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
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
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
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 [EMAIL PROTECTED] \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! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
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
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
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
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
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 - ___
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
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
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
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