ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: setupsystem command with an example
@ 2009-11-16 13:55 Curiouslearn
  2009-11-16 13:58 ` Taco Hoekwater
  2009-11-16 14:05 ` luigi scarso
  0 siblings, 2 replies; 8+ messages in thread
From: Curiouslearn @ 2009-11-16 13:55 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1334 bytes --]

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 <curiouslearn@gmail.com>wrote:

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

[-- Attachment #1.2: Type: text/html, Size: 2038 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setupsystem command with an example
  2009-11-16 13:55 setupsystem command with an example Curiouslearn
@ 2009-11-16 13:58 ` Taco Hoekwater
  2009-11-16 14:04   ` Curiouslearn
  2009-11-16 14:05 ` luigi scarso
  1 sibling, 1 reply; 8+ messages in thread
From: Taco Hoekwater @ 2009-11-16 13:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users



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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setupsystem command with an example
  2009-11-16 13:58 ` Taco Hoekwater
@ 2009-11-16 14:04   ` Curiouslearn
  2009-11-16 14:09     ` Taco Hoekwater
  0 siblings, 1 reply; 8+ messages in thread
From: Curiouslearn @ 2009-11-16 14:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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"
--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 <taco@elvenkind.com> wrote:
>
>
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setupsystem command with an example
  2009-11-16 13:55 setupsystem command with an example Curiouslearn
  2009-11-16 13:58 ` Taco Hoekwater
@ 2009-11-16 14:05 ` luigi scarso
  2009-11-16 14:09   ` Curiouslearn
  1 sibling, 1 reply; 8+ messages in thread
From: luigi scarso @ 2009-11-16 14:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Nov 16, 2009 at 2:55 PM, Curiouslearn <curiouslearn@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setupsystem command with an example
  2009-11-16 14:04   ` Curiouslearn
@ 2009-11-16 14:09     ` Taco Hoekwater
  2009-11-16 14:10       ` Curiouslearn
  0 siblings, 1 reply; 8+ messages in thread
From: Taco Hoekwater @ 2009-11-16 14:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users



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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setupsystem command with an example
  2009-11-16 14:05 ` luigi scarso
@ 2009-11-16 14:09   ` Curiouslearn
  2009-11-16 14:17     ` luigi scarso
  0 siblings, 1 reply; 8+ messages in thread
From: Curiouslearn @ 2009-11-16 14:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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.scarso@gmail.com> wrote:
> On Mon, Nov 16, 2009 at 2:55 PM, Curiouslearn <curiouslearn@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setupsystem command with an example
  2009-11-16 14:09     ` Taco Hoekwater
@ 2009-11-16 14:10       ` Curiouslearn
  0 siblings, 0 replies; 8+ messages in thread
From: Curiouslearn @ 2009-11-16 14:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks Taco. I will try that.

On Mon, Nov 16, 2009 at 9:09 AM, Taco Hoekwater <taco@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setupsystem command with an example
  2009-11-16 14:09   ` Curiouslearn
@ 2009-11-16 14:17     ` luigi scarso
  0 siblings, 0 replies; 8+ messages in thread
From: luigi scarso @ 2009-11-16 14:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Nov 16, 2009 at 3:09 PM, Curiouslearn <curiouslearn@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-11-16 14:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-16 13:55 setupsystem command with an example Curiouslearn
2009-11-16 13:58 ` Taco Hoekwater
2009-11-16 14:04   ` Curiouslearn
2009-11-16 14:09     ` Taco Hoekwater
2009-11-16 14:10       ` Curiouslearn
2009-11-16 14:05 ` luigi scarso
2009-11-16 14:09   ` Curiouslearn
2009-11-16 14:17     ` luigi scarso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).