![](https://secure.gravatar.com/avatar/44ca9eda7aaa681c0e3b3e90125c56b0.jpg?s=120&d=mm&r=g)
Hi all, can someone test the attached example with the (latest) alpha version of ConTeXt? Using mkiv I get no additional space in case of the \scratchdimen example. I tried it with two new installations (minimals) from the scratch and also used several luatex versions, but the error remains. Strange... Best wishes, Peter MtxRun | current version: 2009.01.04 22:10 This is LuaTeX, Version snapshot-0.30.3-2008112822, build 1587 OS is Windows XP SP3 \starttext \def\Space#1#2% {\framed[width=#1,height=#2,frame=on,framecolor=green,rulethickness=.25pt,offset=overlay]{}} \scratchdimen\dimexpr3cm\relax \newdimen\MYscratchdimA \MYscratchdimA\dimexpr3cm\relax A dummy placeholder to skip \Space\scratchdimen{1ex} some space. A dummy placeholder to skip \Space\MYscratchdimA{1ex} some space. \stoptext
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 05.01.2009 um 14:27 schrieb Peter Rolf:
Hi all,
can someone test the attached example with the (latest) alpha version of ConTeXt? Using mkiv I get no additional space in case of the \scratchdimen example. I tried it with two new installations (minimals) from the scratch and also used several luatex versions, but the error remains. Strange...
\scratchdimen is a internal value and redefined in the \framed macro, you get different results in MkII and MkIV because both use their own definition of \framed. Wolfgang
![](https://secure.gravatar.com/avatar/44ca9eda7aaa681c0e3b3e90125c56b0.jpg?s=120&d=mm&r=g)
Wolfgang Schuster schrieb:
Am 05.01.2009 um 14:27 schrieb Peter Rolf:
Hi all,
can someone test the attached example with the (latest) alpha version of ConTeXt? Using mkiv I get no additional space in case of the \scratchdimen example. I tried it with two new installations (minimals) from the scratch and also used several luatex versions, but the error remains. Strange...
\scratchdimen is a internal value and redefined in the \framed macro, you get different results in MkII and MkIV because both use their own definition of \framed.
ok. So the mess was on my side. :) Thanks Wolfgang !
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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Mon, 5 Jan 2009, Peter Rolf wrote:
Hi all,
can someone test the attached example with the (latest) alpha version of ConTeXt? Using mkiv I get no additional space in case of the \scratchdimen example. I tried it with two new installations (minimals) from the scratch and also used several luatex versions, but the error remains. Strange...
Best wishes, Peter
MtxRun | current version: 2009.01.04 22:10 This is LuaTeX, Version snapshot-0.30.3-2008112822, build 1587 OS is Windows XP SP3
The same "error" is in the month old context and luatex that I have. I suspect that framed or the page builder is using \scratchdimen internally, and that is messing things up. Aditya
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Peter Rolf wrote:
Hi all,
can someone test the attached example with the (latest) alpha version of ConTeXt? Using mkiv I get no additional space in case of the \scratchdimen example. I tried it with two new installations (minimals) from the scratch and also used several luatex versions, but the error remains. Strange...
well, you can never rely on scratchdimen not being used inside the macro that you call (in this case it's used right at the start of \framed) for mkiv i now use a local scratchdimen but you can not rely on that to happen fro all places where i use scratcdimen myself \def\Space#1#2% {\expanded {\framed [width=\the\dimexpr#1\relax, height=\the\dimexpr#1\relax, frame=on, framecolor=green, rulethickness=.25pt, offset=overlay]} {}} or so is another solution ----------------------------------------------------------------- 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/44ca9eda7aaa681c0e3b3e90125c56b0.jpg?s=120&d=mm&r=g)
Hans Hagen schrieb:
Peter Rolf wrote:
Hi all,
can someone test the attached example with the (latest) alpha version of ConTeXt? Using mkiv I get no additional space in case of the \scratchdimen example. I tried it with two new installations (minimals) from the scratch and also used several luatex versions, but the error remains. Strange...
well, you can never rely on scratchdimen not being used inside the macro that you call (in this case it's used right at the start of \framed)
i forgot for one second, that context is evolving... :)
for mkiv i now use a local scratchdimen but you can not rely on that to happen fro all places where i use scratcdimen myself
no need to change things on your side. i already use private (scratchdimen) registers in nearly all of my macros, so i'll simply fix the remaining ones.
\def\Space#1#2% {\expanded {\framed [width=\the\dimexpr#1\relax, height=\the\dimexpr#1\relax, frame=on, framecolor=green, rulethickness=.25pt, offset=overlay]} {}}
or so is another solution
----------------------------------------------------------------- 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 ----------------------------------------------------------------- ___________________________________________________________________________________
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 ___________________________________________________________________________________
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Peter Rolf
-
Wolfgang Schuster