Re: [NTG-context] setupsystem command with an example

2009-11-16 Thread Curiouslearn
The following is an example. Randomization occurs with MKII, but not with
MKIV.

\setupsystem[random=123]

\starttext

\startitemize[a,random]
\startitem This is item 1 \stopitem
\startitem This is item 2 \stopitem
\startitem This is item 3 \stopitem
\startitem This is item 4 \stopitem
\stopitemize

\stoptext

On Sun, Nov 15, 2009 at 1:42 PM, curiouslearn curiousle...@gmail.comwrote:

 I wanted to bring this  to your attention. It seems that
 setupsystem[random= ]
 command does not work with MKIV. If I use different numbers for [random= ]
 option the arrangement of items changes when compiled with MKII but do not
 change when compiled with MKIV.

 I tried emailing the above message with my email, but it bounced everytime
 I
 sent it. Do you know what might have happened.

 Thanks.


 ___
 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

 ___

___
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
___


Re: [NTG-context] setupsystem command with an example

2009-11-16 Thread Taco Hoekwater


Curiouslearn wrote:
 The following is an example. Randomization occurs with MKII, but not
 with MKIV.

Works here (it outputs in 2-4-1-3 order)

Best wishes,
Taco
___
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
___


Re: [NTG-context] setupsystem command with an example

2009-11-16 Thread Curiouslearn
Thanks Taco. I am not sure, why it does not work for me. I am copying
and pasting the log file. Could please someone take a look and let me
know what the problem might be.

Thanks.
**
This is LuaTeX, Version beta-0.43.0-2009081911
 \write18 enabled.
(Test_setupsystem.tex

ConTeXt  ver: 2009.10.27 16:35 MKIV  fmt: 2009.10.28  int: english/english

system  : cont-new loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/user/cont-sys.rme
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.mkiv)))
system  : Test_setupsystem.top loaded
(Test_setupsystem.top)
fonts   : preloading latin modern fonts
bodyfont    : 12pt rm is loaded
language    : language en is active
systems : begin file Test_setupsystem at line 3
fonts   : resetting map file list
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-empty.map}
fonts   : using map file: original-base
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-base.map}
fonts   : using map file: original-ams-base
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map}
fonts   : using map file: original-ams-euler
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map}
fonts   : using map file: original-public-lm
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map}
fonts   : using map file: lm-math
{/Applications/ConTeXtMinimals/tex/texmf/fonts/map/dvips/lm/lm-math.map}
fonts   : using map file: lm-rm
{/Applications/ConTeXtMinimals/tex/texmf/fonts/map/dvips/lm/lm-rm.map}[1.1]
systems : end file Test_setupsystem at line 12
system  : cont-err loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) 
)/Applications/ConTeXtMinimals/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats : used config path  -
/Applications/ConTeXtMinimals/tex/texmf-local/web2c/texmf.cnf;/Applications/ConTeXtMinimals/tex/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path   -
/Applications/ConTeXtMinimals/tex/texmf-cache
mkiv lua stats : input load time   - 0.030 seconds
mkiv lua stats : stored bytecode data  - 190 modules, 46 tables, 236 chunks
mkiv lua stats : node list callback tasks  - 4 unique tasks, 3 created, 21 calls
mkiv lua stats : cleaned up reserved nodes - 24 nodes, 9 lists of 1408
mkiv lua stats : node memory usage - 20 glue_spec, 2 dir
mkiv lua stats : used backend  - pdf (backend for directly
generating pdf output)
mkiv lua stats : loaded patterns   - en:us:pat:exc:2
mkiv lua stats : startup time  - 0.561 seconds (including
runtime option file processing)
mkiv lua stats : callbacks - direct: 470, indirect:
3547, total: 4017
mkiv lua stats : loaded fonts  - 29 files:
lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf
lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf
lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf
lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf
eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm
msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm
lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm
mkiv lua stats : fonts load time   - 0.321 seconds
mkiv lua stats : result saved in file  - Test_setupsystem.pdf
mkiv lua stats : luatex banner - this is luatex, version
beta-0.43.0-2009081911
mkiv lua stats : control sequences - 29458 of 165536
mkiv lua stats : current memory usage  - 30 MB (ctx: 31 MB)
mkiv lua stats : runtime   - 1.172 seconds, 0
processed pages, 1 shipped pages, 0.853 pages/second
MTXrun | run 1: luatex
--fmt=/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/formats/cont-en

Re: [NTG-context] setupsystem command with an example

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 2:55 PM, Curiouslearn curiousle...@gmail.com wrote:
 The following is an example. Randomization occurs with MKII, but not with
 MKIV.

 \setupsystem[random=123]

 \starttext

 \startitemize[a,random]
     \startitem This is item 1 \stopitem
     \startitem This is item 2 \stopitem
     \startitem This is item 3 \stopitem
     \startitem This is item 4 \stopitem
 \stopitemize

 \stoptext

It works ok here, if I undertstand what you want.

What about
%%test.tex
\starttext

 \startitemize[a,random]
 \startitem This is item 1 \stopitem
 \startitem This is item 2 \stopitem
 \startitem This is item 3 \stopitem
 \startitem This is item 4 \stopitem
 \stopitemize
\stoptext

$context --purgeall; context test.tex ; mv test.pdf test-1.pdf
$context --purgeall; context test.tex ; mv test.pdf test-2.pdf
$context --purgeall; context test.tex ; mv test.pdf test-3.pdf

I see differents pdfs test-1,test-2,test-3

With your code, all pdf are the same.


-- 
luigi
___
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
___


Re: [NTG-context] setupsystem command with an example

2009-11-16 Thread Taco Hoekwater


Curiouslearn wrote:
 Thanks Taco. I am not sure, why it does not work for me. I am copying
 and pasting the log file. Could please someone take a look and let me
 know what the problem might be.

Could be a fix in a beta. I run

This is LuaTeX, Version beta-0.45.0-2009111614


 \write18 enabled.


(./rand



ConTeXt  ver: 2009.11.15 18:01 MKIV  fmt: 2009.11.16  int: english/english

Best wishes,
Taco
___
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
___


Re: [NTG-context] setupsystem command with an example

2009-11-16 Thread Curiouslearn
Does not work for me.

Luigi, the reason I have used the \setupsystem[random=] is to control
the randomization and not have it change everytime I compile it. This
is I think necessary if I want the answerkey that identfies the
correct option.



On Mon, Nov 16, 2009 at 9:05 AM, luigi scarso luigi.sca...@gmail.com wrote:
 On Mon, Nov 16, 2009 at 2:55 PM, Curiouslearn curiousle...@gmail.com wrote:
 The following is an example. Randomization occurs with MKII, but not with
 MKIV.

 \setupsystem[random=123]

 \starttext

 \startitemize[a,random]
     \startitem This is item 1 \stopitem
     \startitem This is item 2 \stopitem
     \startitem This is item 3 \stopitem
     \startitem This is item 4 \stopitem
 \stopitemize

 \stoptext

 It works ok here, if I undertstand what you want.

 What about
 %%test.tex
 \starttext

  \startitemize[a,random]
     \startitem This is item 1 \stopitem
     \startitem This is item 2 \stopitem
     \startitem This is item 3 \stopitem
     \startitem This is item 4 \stopitem
  \stopitemize
 \stoptext

 $context --purgeall; context test.tex ; mv test.pdf test-1.pdf
 $context --purgeall; context test.tex ; mv test.pdf test-2.pdf
 $context --purgeall; context test.tex ; mv test.pdf test-3.pdf

 I see differents pdfs test-1,test-2,test-3

 With your code, all pdf are the same.


 --
 luigi
 ___
 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
 ___

___
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
___


Re: [NTG-context] setupsystem command with an example

2009-11-16 Thread Curiouslearn
Thanks Taco. I will try that.

On Mon, Nov 16, 2009 at 9:09 AM, Taco Hoekwater t...@elvenkind.com wrote:


 Curiouslearn wrote:
 Thanks Taco. I am not sure, why it does not work for me. I am copying
 and pasting the log file. Could please someone take a look and let me
 know what the problem might be.

 Could be a fix in a beta. I run

 This is LuaTeX, Version beta-0.45.0-2009111614


  \write18 enabled.


 (./rand



 ConTeXt  ver: 2009.11.15 18:01 MKIV  fmt: 2009.11.16  int: english/english

 Best wishes,
 Taco
 ___
 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
 ___

___
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
___


Re: [NTG-context] setupsystem command with an example

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 3:09 PM, Curiouslearn curiousle...@gmail.com wrote:
 Does not work for me.

 Luigi, the reason I have used the \setupsystem[random=] is to control
 the randomization and not have it change everytime I compile it. This
 is I think necessary if I want the answerkey that identfies the
 correct option.

ok -- just to be sure that I understood you . No randomization  with
another seed or without it  and/or more \item maybe be a bug somewhere
, but your log seems ok to me.

It seems also that your and my code  work ok here with

luatex --credits
This is LuaTeX, Version beta-0.44.0-2009110210

context --version
MTXrun | main context file:
/opt/luatex/minimals-beta/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2009.11.10 13:30


-- 
luigi
___
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
___


[NTG-context] setupsystem command

2009-11-15 Thread curiouslearn
I wanted to bring this  to your attention. It seems that setupsystem[random= ]
command does not work with MKIV. If I use different numbers for [random= ] 
option the arrangement of items changes when compiled with MKII but do not
change when compiled with MKIV.

I tried emailing the above message with my email, but it bounced everytime I
sent it. Do you know what might have happened.

Thanks.

___
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
___


Re: [NTG-context] \setupsystem[random]

2004-11-29 Thread Christopher Creutzig
h h extern wrote:
PS. you can say:  setupsystem[random=100]
 I know.  But I tried to use larger numbers, e.g., to copy the values 
of a previous run from the line

systems: randomizer starts with 379377681
yet always get the above error.  What is the reason for this line if not 
to copy the number into \setupsystem?

rgeards,
Christopher Creutzig
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setupsystem[random]

2004-11-29 Thread Hans Hagen
Christopher Creutzig wrote:
h h extern wrote:
PS. you can say:  setupsystem[random=100]

 I know.  But I tried to use larger numbers, e.g., to copy the values of 
a previous run from the line

systems: randomizer starts with 379377681
yet always get the above error.  What is the reason for this line if not 
to copy the number into \setupsystem?
this is why i sent the patch for texexec (1440 - 2880)
the problem is that the tex/mp randomizers are based on time and therefore too 
fragile (too little resolution) on fast machines; so i let texexec set the seed

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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setupsystem[random]

2004-11-29 Thread Christopher Creutzig
Hans Hagen wrote:
the problem is that the tex/mp randomizers are based on time and 
therefore too fragile (too little resolution) on fast machines; so i let 
texexec set the seed
 So even in the case where the TeX code contains 
\setupsystem[seed=212], texexec does some additional calculations?  (The 
error I got made me think that the number I entered was directly used in 
TeX calculations.)

Christopher
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setupsystem[random]

2004-11-29 Thread Hans Hagen
Christopher Creutzig wrote:
Hans Hagen wrote:
the problem is that the tex/mp randomizers are based on time and 
therefore too fragile (too little resolution) on fast machines; so i 
let texexec set the seed

 So even in the case where the TeX code contains \setupsystem[seed=212], 
texexec does some additional calculations?  (The error I got made me 
think that the number I entered was directly used in TeX calculations.)
it does the calculation but the following setup does it again; this is why the 
texexec patch is needed (although i never ran into such large number side effects)

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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setupsystem[random]

2004-11-27 Thread h h extern
Christopher Creutzig wrote:
Salvete,
 the line
  \setupsystem[random=261113]
causes an error for me:
./CDaufdruck.tex:10: Arithmetic overflow.
\verynormalnextrandom ...al \multiply \randomi 31
  \global \advance 
\randomi ...

\normalnextrandom ...alyear \verynormalnextrandom
  \egroup
\nextrandom -\bgroup \normalnextrandom
\gdef \nextrandom {\ifcase 
\randomse...
argument ...ormaltime =\@@svrandom ]\nextrandom
  \egroup
\firstofoneargument #1-#1

\dosetupsystem ...1]\setuprandomize [\@@svrandom ]
  \beforesplitstring 
\@@svre...
...

ConTeXt  ver: 2004.10.07  fmt: 2004.10.29  int: english  mes: english
regards,
Christopher
we could consider changing 1440 by 2880 in the next code (in texexec)
my ($sec, $min) = gmtime;
my $RandomSeed = ($min * 60 + $sec) % 1440;
ideas welcome ...
Hans
PS. you can say:  setupsystem[random=100]
-
  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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \setupsystem[random]

2004-11-26 Thread Christopher Creutzig
Salvete,
 the line
  \setupsystem[random=261113]
causes an error for me:
./CDaufdruck.tex:10: Arithmetic overflow.
\verynormalnextrandom ...al \multiply \randomi 31
  \global \advance 
\randomi ...

\normalnextrandom ...alyear \verynormalnextrandom
  \egroup
\nextrandom -\bgroup \normalnextrandom
\gdef \nextrandom {\ifcase 
\randomse...
argument ...ormaltime =\@@svrandom ]\nextrandom
  \egroup
\firstofoneargument #1-#1

\dosetupsystem ...1]\setuprandomize [\@@svrandom ]
  \beforesplitstring 
\@@svre...
...

ConTeXt  ver: 2004.10.07  fmt: 2004.10.29  int: english  mes: english
regards,
Christopher

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context