Hans and all other font wizards— Thomas and I have been stumped by problem that arises when one re- installs Latin Modern (in order to get margin kerning) and uses the t- greek module. Thomas suspects that Latin Modern, being a "clone" of Computer Modern, comes in different design sizes and uses slightly different fonts for different sizes. This setup breaks when the t- greek module expects to have a completely scalable font. But this is only a guess, as he says. The problem may be described as follows: A. If I do not re-install Latin Modern (and thus forego margin kerning and so forth), there is no problem: I can vary the typesize of the footnotes and insert Greek at will. I use the following code for this: \setupencoding[default=ec] \setupbodyfontenvironment[default][em=italic] \definebodyfont[10.5pt][rm][default] \setupbodyfont[modern,10.5pt] \setupfootnotes[conversion=numbers, way=bytext,location=page,rule=on,bodyfont=9.5pt,style=normal] \usemodule[t-greek] \setupfontsynonym[Alkaios][handling=grkpure] \setupfontsynonym[GreekOxoniensis][handling=grkpure] \setupgreek[font=Alkaios,altfont=GreekOxoniensis,scale=0.9] B. If I do reinstall the Latin Modern, I get “Arithmetic overflow errors” when there is Greek in the footnotes. My code for this is: \setupencoding[default=texnansi] \starttypescript[serif][default][size] \definebodyfont[10.5pt][rm][default] %<<< \definebodyfont[10.5pt][mm][default] \stoptypescript \setupfontsynonym[Serif][handling=normal] \usetypescript[modern][texnansi] \setupbodyfont[modern,10.5pt] \setupfootnotes[conversion=numbers, way=bytext,location=page,rule=on,bodyfont=9.5pt,style=normal] \usemodule[t-greek] \setupfontsynonym[GreekOxoniensis][handling=greekpure] \setupfontsynonym[GreekDioxipe][handling=greekpure] \setupgreek[font=GreekOxoniensis,scale=1.15] \setupgreek[altfont=GreekDioxipe,scale=1.15] But remove the Greek from the notes and all is well. Note that inserting \definebodyfont[10.5pt,9.5pt][rm][default] at the line <<< (above) fails with the same error message even when there is no Greek in the footnotes. If you have any suggestions on this, we would be grateful to receive them. All best, Alan
Alan Bowen wrote:
*B.* If I *do* reinstall the Latin Modern, I get �Arithmetic overflow errors� when there is Greek in the footnotes. My code for this is:
hwo does the error message look? (the metrics of cm and lm are the same but there may be additional glyohs) 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 -----------------------------------------------------------------
Hi, I need to make several versions of a multiple choice questions exam. In each exam the questions have to appear in a different order. Did you know a easy way to do that? Thanks Jorge
batela wrote:
Hi,
I need to make several versions of a multiple choice questions exam. In each exam the questions have to appear in a different order. Did you know a easy way to do that?
i did post some example code, didn't i? ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Thanks for the reply. Currently I make my examinations with MUCH+LaTeX, but I am exploring ConTeXT and would like to know all its potentialities before dedicating it more intensive atttention. However, as a teacher I recognize the importance of good examples in the pedagogical actions. Thanks a lot. Jorge Em 27/05/2006, às 5:22, Hans Hagen escreveu:
batela wrote:
Hi,
I need to make several versions of a multiple choice questions exam. In each exam the questions have to appear in a different order. Did you know a easy way to do that?
i did post some example code, didn't i?
----------------------------------------------------------------- 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Abraços, Jorge Manuel de Almeida Magalhães
batela wrote:
Thanks for the reply.
Currently I make my examinations with MUCH+LaTeX, but I am exploring ConTeXT and would like to know all its potentialities before dedicating it more intensive atttention.
However, as a teacher I recognize the importance of good examples in the pedagogical actions.
i'll make you a \startitemize[a,packed,random] \startitem ... \stopitem \startitem ... \stopitem \startitem ... \stopitem \stopitemize i.e. a random option, since it's only a few lines of code 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 -----------------------------------------------------------------
batela wrote:
Thanks for the reply.
Currently I make my examinations with MUCH+LaTeX, but I am exploring ConTeXT and would like to know all its potentialities before dedicating it more intensive atttention.
However, as a teacher I recognize the importance of good examples in the pedagogical actions.
ok, since it's a rainy day here, just for fun i implemented: \startitemize[a,random,packed] \startitem first \stopitem \startitem second \stopitem \startitem third \stopitem \startitem fourth \stopitem \stopitemize \startitemize[a,random,packed] \startitem first \stopitem \startitem second \stopitem \startitem third \stopitem \startitem fourth \stopitem \stopitemize \startitemize[a,packed] \startitem first \stopitem \startitem second \stopitem \startitem third \stopitem \startitem fourth \stopitem \stopitemize ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Thanks very much. In fact, in Context is very easy doing hard tasks. But, it is great if I can do things like: n_exam_versions=3; for (nversion=1 to n_exam_versions) { Final Math Exam Your name: ID: Yor exam version is: #nversion; \startitemize[a,random,packed] \startitem first \stopitem \startitem second \doifmode[answers]{correctchoice}\stopitem \startitem third \stopitem \startitem fourth \stopitem \stopitemize \startitemize[a,random,packed] \startitem first \stopitem \startitem second \stopitem \startitem third \stopitem \startitem fourth \doifmode[answers]{correctchoice}\stopitem \stopitemize \startitemize[a,random,packed] \startitem first \doifmode[answers]{correctchoice} \stopitem \startitem second \stopitem \startitem third \stopitem \startitem fourth \stopitem \stopitemize nversion++; } In this way I have all exam versions in a simple document.
batela wrote:
Thanks for the reply.
Currently I make my examinations with MUCH+LaTeX, but I am exploring ConTeXT and would like to know all its potentialities before dedicating it more intensive atttention.
However, as a teacher I recognize the importance of good examples in the pedagogical actions.
ok, since it's a rainy day here, just for fun i implemented:
Here it's a hot day: something like 37ºC.
\startitemize[a,random,packed] \startitem first \stopitem \startitem second \stopitem \startitem third \stopitem \startitem fourth \stopitem \stopitemize
\startitemize[a,random,packed] \startitem first \stopitem \startitem second \stopitem \startitem third \stopitem \startitem fourth \stopitem \stopitemize
\startitemize[a,packed] \startitem first \stopitem \startitem second \stopitem \startitem third \stopitem \startitem fourth \stopitem \stopitemize
----------------------------------------------------------------- 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Um Abraço, Jorge Magalhães
batela wrote:
Thanks very much. In fact, in Context is very easy doing hard tasks. But, it is great if I can do things like:
n_exam_versions=3; for (nversion=1 to n_exam_versions) { Final Math Exam Your name: ID: Yor exam version is: #nversion;
\startitemize[a,random,packed] \startitem first \stopitem \startitem second \doifmode[answers]{correctchoice}\stopitem \startitem third \stopitem \startitem fourth \stopitem \stopitemize
\startitemize[a,random,packed] \startitem first \stopitem \startitem second \stopitem \startitem third \stopitem \startitem fourth \doifmode[answers]{correctchoice}\stopitem \stopitemize
\startitemize[a,random,packed] \startitem first \doifmode[answers]{correctchoice} \stopitem \startitem second \stopitem \startitem third \stopitem \startitem fourth \stopitem \stopitemize
nversion++; }
In this way I have all exam versions in a simple document.
This should get you started ... please wikify this: \setupitemgroup[itemize][1][a,random,packed] \startsetups examn:make \setuppagenumber[number=1] \title{Final Math Examn} \blank[2*big] \starttabulate \NC Your name \EQ \NC \NR \NC ID \EQ \NC \NR \NC Version \EQ \recurselevel \NC \NR \stoptabulate \blank[2*big] \getbuffer[examn] \stopsetups \startsetups examn:ok \doifmode {answers} { \inleft{\symbol[star]} } \ignorespaces \stopsetups \starttext \startbuffer[examn] \startitemize \startitem first \stopitem \startitem \setups[examn:ok] second \stopitem \startitem third \stopitem \startitem fourth \stopitem \stopitemize \startitemize \startitem first \stopitem \startitem second \stopitem \startitem \setups[examn:ok] third \stopitem \startitem fourth \stopitem \stopitemize \startitemize \startitem first \stopitem \startitem second \stopitem \startitem \setups[examn:ok] third \stopitem \startitem fourth \stopitem \stopitemize \stopbuffer \setuprandomize[1234] % set a seed \enablemode[answers] \dorecurse{10} {\setups[examn:make]} \stoptext ----------------------------------------------------------------- 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 -----------------------------------------------------------------
This is interesting. I have a couple of questions. On Sun, 28 May 2006, Hans Hagen wrote:
This should get you started ... please wikify this:
\setupitemgroup[itemize][1][a,random,packed]
\startsetups examn:make [snipped] \stopsetups
\startsetups examn:ok \doifmode {answers} { \inleft{\symbol[star]} } \ignorespaces \stopsetups
For some reason, ignorespaces is ignored. The output is shifted left by one space. Is this because of some grouping issue.
\starttext
\startbuffer[examn]
\startitemize \startitem first \stopitem \startitem \setups[examn:ok] second \stopitem \startitem third \stopitem \startitem fourth \stopitem \stopitemize [snipped] \stopbuffer
Any particular reason for using \startitem ... \stopitem instead of \item? I could not notice any difference between the two. Is it just a matter of taste?
\setuprandomize[1234] % set a seed
\enablemode[answers]
\dorecurse{10} {\setups[examn:make]}
\stoptext
Aditya
Aditya Mahajan wrote:
This is interesting. I have a couple of questions.
On Sun, 28 May 2006, Hans Hagen wrote:
This should get you started ... please wikify this:
\setupitemgroup[itemize][1][a,random,packed]
\startsetups examn:make [snipped] \stopsetups
\startsetups examn:ok \doifmode {answers} { \inleft{\symbol[star]} } \ignorespaces \stopsetups
For some reason, ignorespaces is ignored. The output is shifted left by one space. Is this because of some grouping issue.
\starttext
\startbuffer[examn]
\startitemize \startitem first \stopitem \startitem \setups[examn:ok] second \stopitem \startitem third \stopitem \startitem fourth \stopitem \stopitemize [snipped] \stopbuffer
Any particular reason for using \startitem ... \stopitem instead of \item? I could not notice any difference between the two. Is it just a matter of taste?
well, you don't have the 'random' option in your version; we need the start/stop then because we need to collect the items first 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 -----------------------------------------------------------------
On Thu, 1 Jun 2006, Hans Hagen wrote:
Aditya Mahajan wrote:
This is interesting. I have a couple of questions.
On Sun, 28 May 2006, Hans Hagen wrote:
This should get you started ... please wikify this:
\setupitemgroup[itemize][1][a,random,packed]
\startsetups examn:make [snipped] \stopsetups
\startsetups examn:ok \doifmode {answers} { \inleft{\symbol[star]} } \ignorespaces \stopsetups
For some reason, ignorespaces is ignored. The output is shifted left by one space. Is this because of some grouping issue.
\starttext
\startbuffer[examn]
\startitemize \startitem first \stopitem \startitem \setups[examn:ok] second \stopitem \startitem third \stopitem \startitem fourth \stopitem \stopitemize [snipped] \stopbuffer
Any particular reason for using \startitem ... \stopitem instead of \item? I could not notice any difference between the two. Is it just a matter of taste?
well, you don't have the 'random' option in your version; we need the start/stop then because we need to collect the items first
Oops, was testing with the wrong setup. Thanks for the explaination. Aditya
Hans, In deze release is de definitie van \czsortdivisionch verwijderd, maar die zie ik nog wel een keer in sort definitielijst gebruikt worden. Ik neem aan dat dat niet goed is? Taco
Hans—
I have updated everything, I think, including Thomas’ Greek module.
Now, in processing a file with Greek, the error messages are like the
one below:
! Arithmetic overflow.
\dododefineprotrudefactor ...\font \fi \fi \relax
\rpcode
\handledfont #1\di...
\dosetpairhandling ...ng \let \char \normalchar }}
\fi
<inserted text> ...ododefineprotrudefactor ! 0 .2
\dosetpairhandling
\dodode...
\next1 ...csname \the \csname \@fha@ #1\endcsname
\fi
\rawprocesscommaitem ...commalevel \endcsname {#1}
\expandafter
\rawprocessco...
<argument> punctuation,a
lpha,extended
...
l.67 ...wn >embol'imwn
Alan Bowen wrote:
*B.* If I *do* reinstall the Latin Modern, I get �Arithmetic overflow errors� when there is Greek in the footnotes. My code for this is:
hwo does the error message look?
(the metrics of cm and lm are the same but there may be additional glyohs)
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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (5)
-
Aditya Mahajan
-
Alan Bowen
-
batela
-
Hans Hagen
-
Taco Hoekwater