Since context version: 2008.01.28 up to now there is an error when running the file attached below: ! Undefined control sequence. \dodosetupwhitespace ...g \witruimteflexibelfalse \ctxparskip 1 \ctxparskip \... l.31 \setupwhitespace[halfline] ? Process aborted (In context version: 2008.01.03 it still works.) Steffen \chardef\baselinegridmode=1 % not the default ! \def\dodosetupwhitespace % can go in core (or cont-new) {\ifgridsnapping \witruimteflexibelfalse \ctxparskip1\ctxparskip \ifdim\ctxparskip>\zeropoint \ifcase\baselinegridmode \ctxparskip\baselineskip % normal ! ! ! ! !! \or \ifdim\scratchdimen=\baselineskip % maybe range \ctxparskip\baselineskip % normal ! ! ! ! !! \else \ctxparskip\numexpr \ctxparskip/\dimexpr.5\lineheight\relax\relax\dimexpr.5\lineheight\relax \fi \else \ctxparskip\baselineskip % normal ! ! ! ! !! \fi \fi \else \ifwitruimteflexibel \else \ctxparskip1\ctxparskip \fi \fi \parskip\ctxparskip} \starttext \setuplayout[grid=yes] \showstruts \showgrid \showgridboxes \setupwhitespace[halfline] \setuphead[section][grid=fit] \section{Heading One} \input tufte \input knuth \stoptext
Hi Steffen, Steffen Wolfrum schrieb:
Since context version: 2008.01.28 up to now there is an error when running the file attached below:
! Undefined control sequence. \dodosetupwhitespace ...g \witruimteflexibelfalse \ctxparskip 1 \ctxparskip \... l.31 \setupwhitespace[halfline]
? Process aborted
(In context version: 2008.01.03 it still works.)
Steffen
\chardef\baselinegridmode=1 % not the default !
The same macro can be found in core-spa.tex, so your version of \dodosetupwhitespace is obsolete now. I haven't compared it to the last bit, but it should be the same. Time for you to clean up your sources too ;) Best Wishes, Peter
\def\dodosetupwhitespace % can go in core (or cont-new) {\ifgridsnapping \witruimteflexibelfalse \ctxparskip1\ctxparskip \ifdim\ctxparskip>\zeropoint \ifcase\baselinegridmode \ctxparskip\baselineskip % normal ! ! ! ! !! \or \ifdim\scratchdimen=\baselineskip % maybe range \ctxparskip\baselineskip % normal ! ! ! ! !! \else \ctxparskip\numexpr \ctxparskip/\dimexpr.5\lineheight\relax\relax\dimexpr.5\lineheight\relax \fi \else \ctxparskip\baselineskip % normal ! ! ! ! !! \fi \fi \else \ifwitruimteflexibel \else \ctxparskip1\ctxparskip \fi \fi \parskip\ctxparskip}
\starttext
\setuplayout[grid=yes] \showstruts \showgrid \showgridboxes
\setupwhitespace[halfline]
\setuphead[section][grid=fit]
\section{Heading One}
\input tufte
\input knuth
\stoptext
___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Steffen Wolfrum wrote:
Since context version: 2008.01.28 up to now there is an error when running the file attached below:
! Undefined control sequence. \dodosetupwhitespace ...g \witruimteflexibelfalse \ctxparskip 1
In the core, the \newif \witruimteflexibel became \newconditional \flexiblewhitespace so the get the same effect as the old \witruimteflexibelfalse and \ifwit... you now need \setfalse\flexiblewhitespace and \ifconditional\flexiblewhitespace. As Peter said: see core-spa.tex for details Best wishes, Taco PS Hans, the \newconditional itself is actually not there. Wouldn't it be nicer to add it? It would help while grepping through the source.
Thanks, Peter and Taco! Am 06.02.2008 um 08:44 schrieb Taco Hoekwater:
Steffen Wolfrum wrote:
Since context version: 2008.01.28 up to now there is an error when running the file attached below:
! Undefined control sequence. \dodosetupwhitespace ...g \witruimteflexibelfalse \ctxparskip 1
In the core, the \newif \witruimteflexibel became \newconditional \flexiblewhitespace
so the get the same effect as the old \witruimteflexibelfalse and \ifwit... you now need \setfalse\flexiblewhitespace and \ifconditional\flexiblewhitespace.
As Peter said: see core-spa.tex for details
Interesting lecture ... just, why does the file read: file=core-spa, version=1997.03.31 ? I hadn't expected changes by this version date. Steffen
Taco Hoekwater wrote:
Steffen Wolfrum wrote:
Since context version: 2008.01.28 up to now there is an error when running the file attached below:
! Undefined control sequence. \dodosetupwhitespace ...g \witruimteflexibelfalse \ctxparskip 1
In the core, the \newif \witruimteflexibel became \newconditional \flexiblewhitespace
so the get the same effect as the old \witruimteflexibelfalse and \ifwit... you now need \setfalse\flexiblewhitespace and \ifconditional\flexiblewhitespace.
As Peter said: see core-spa.tex for details
Best wishes, Taco
PS Hans, the \newconditional itself is actually not there. Wouldn't it be nicer to add it? It would help while grepping through the source.
ok, i now have \newconditional \flexiblewhitespace \settrue\flexiblewhitespace -- ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (5)
-
Arthur Reutenauer
-
Hans Hagen
-
Peter Rolf
-
Steffen Wolfrum
-
Taco Hoekwater