Re: [NTG-context] setupsystem command with an example
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
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
___________________________________________________________________________________
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
) )
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"
--lua="/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/formats/cont-en.lui"
--backend=pdf "./Test_setupsystem.tex"
MTXrun | total runtime: 1.200
****************************************
On Mon, Nov 16, 2009 at 8:58 AM, 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 ___________________________________________________________________________________
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
Thanks Taco. I will try that.
On Mon, Nov 16, 2009 at 9:09 AM, 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 ___________________________________________________________________________________
On Mon, Nov 16, 2009 at 2:55 PM, 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
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
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
On Mon, Nov 16, 2009 at 2:55 PM, Curiouslearn
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 ___________________________________________________________________________________
On Mon, Nov 16, 2009 at 3:09 PM, 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.
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
participants (3)
-
Curiouslearn
-
luigi scarso
-
Taco Hoekwater