defineenumeration does not work with MKIV. Works with MKII
Minimal example \setuppapersize[letter][letter] \starttext \defineenumeration[problem][text= ,location=inleft] \setupenumerations[problem][stopper=)] \problem problem 1 \problem problem 2 \stoptext In MKIV there are numbers do not appear. Thanks.
Sorry to hijack your post and since we're already there, why are \setupenumerations and \setupdescriptions written in the plural form.
\setupenumerations[problem][stopper=)]
When I would follow the system from other setup commands in context i expect as correct names \setupenumeration and \setupdescription. Wolfgang
Hi.
2010/1/5 Wolfgang Schuster
Sorry to hijack your post and since we're already there, why are \setupenumerations and \setupdescriptions written in the plural form.
\setupenumerations[problem][stopper=)]
When I would follow the system from other setup commands in context i expect as correct names \setupenumeration and \setupdescription.
If I understand context manual correctly (I not checked this) (cont-enp.pdf, pp. 181,183) I could use more than one name in \setupenumerations (\setupdescriptions), e.g. \setupenumerations[problem,remark][stopper=)] so name of commands are correct (in some sense one is a limit of several :).
Am 05.01.2010 um 05:08 schrieb Vladimir Lomov:
2010/1/5 Wolfgang Schuster
: Sorry to hijack your post and since we're already there, why are \setupenumerations and \setupdescriptions written in the plural form.
\setupenumerations[problem][stopper=)]
When I would follow the system from other setup commands in context i expect as correct names \setupenumeration and \setupdescription.
If I understand context manual correctly (I not checked this) (cont-enp.pdf, pp. 181,183) I could use more than one name in \setupenumerations (\setupdescriptions), e.g. \setupenumerations[problem,remark][stopper=)] so name of commands are correct (in some sense one is a limit of several :).
You could also use more names in \setuphead, \setupblock etc. but these command names are singular. Changing \setupenumerations/descriptions is no option but one can do this: \let\setupdescription\setupdescriptions \let\setupenumeration\setupenumerations Wolfgang
Hi.
I'm newbie with ConTeXt but have experience with LaTeX.
2010/1/5 Curiouslearn
Minimal example
\setuppapersize[letter][letter]
\starttext \defineenumeration[problem][text= ,location=inleft] \setupenumerations[problem][stopper=)]
\problem problem 1
\problem problem 2
\stoptext
In MKIV there are numbers do not appear.
Thanks. This is because of your settings. Try change location. In order to understand what's wrong with your settings see output for this example (I tried with context minimals):
\setuppapersize[A5][A4] \setuplayout[location=middle] \starttext \defineenumeration[problem][text= ,location=inleft] \setupenumerations[problem][stopper=)] \problem problem 1 \problem problem 2 \stoptext In okular (or Adobe Reader) you see that enumeration numbers are out of page and you don't see them.
Vladimir, I am not sure that the settings are incorrect. Why does it
work with MKII then? Also it worked with MKIV before. It broke only
recently.
Can someone please throw light on this? Is the disapperance of the
numbers, as Vladimir suggests, expected behavior of the minimal
example in MKIV.
On Mon, Jan 4, 2010 at 11:03 PM, Vladimir Lomov
Hi.
I'm newbie with ConTeXt but have experience with LaTeX.
2010/1/5 Curiouslearn
: Minimal example
\setuppapersize[letter][letter]
\starttext \defineenumeration[problem][text= ,location=inleft] \setupenumerations[problem][stopper=)]
\problem problem 1
\problem problem 2
\stoptext
In MKIV there are numbers do not appear.
Thanks. This is because of your settings. Try change location. In order to understand what's wrong with your settings see output for this example (I tried with context minimals):
\setuppapersize[A5][A4]
\setuplayout[location=middle] \starttext \defineenumeration[problem][text= ,location=inleft] \setupenumerations[problem][stopper=)]
\problem problem 1
\problem problem 2
\stoptext
In okular (or Adobe Reader) you see that enumeration numbers are out of page and you don't see them. ___________________________________________________________________________________ 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 ___________________________________________________________________________________
Am 05.01.2010 um 14:22 schrieb Curiouslearn:
Vladimir, I am not sure that the settings are incorrect. Why does it work with MKII then? Also it worked with MKIV before. It broke only recently.
Add 'headalign=flushright'. Wolfgang
Thanks! That worked great.
On Tue, Jan 5, 2010 at 8:52 AM, Wolfgang Schuster
Am 05.01.2010 um 14:22 schrieb Curiouslearn:
Vladimir, I am not sure that the settings are incorrect. Why does it work with MKII then? Also it worked with MKIV before. It broke only recently.
Add 'headalign=flushright'.
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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Hello.
2010/1/5 Curiouslearn
Vladimir, I am not sure that the settings are incorrect. Why does it work with MKII then? Also it worked with MKIV before. It broke only recently. Sorry, I didn't try to check texexec (MKII) also I just checked context (MKIV).
Can someone please throw light on this? Is the disapperance of the numbers, as Vladimir suggests, expected behavior of the minimal example in MKIV. I also notice the difference between resulted pdf files produced by MKII and MKIV: MKIV gives labels _below_ line respect to item entry but MKII gives labels on the same line as item entry (also MKIV moves labels much more to left edge). This is what I figured out, sorry I too novice with ConTeXt and can't give more information on topic.
2010/1/5 Wolfgang Schuster
Am 05.01.2010 um 14:22 schrieb Curiouslearn:
Vladimir, I am not sure that the settings are incorrect. Why does it work with MKII then? Also it worked with MKIV before. It broke only recently.
Add 'headalign=flushright'.
Hm, this gives more unpleasant result for MKIV format but reveals the problem of "disappearing" :) --- WBR, Vladimir Lomov
Am 05.01.2010 um 14:56 schrieb Vladimir Lomov:
Vladimir, I am not sure that the settings are incorrect. Why does it work with MKII then? Also it worked with MKIV before. It broke only recently.
Add 'headalign=flushright'.
Hm, this gives more unpleasant result for MKIV format but reveals the problem of "disappearing" :)
It's side effect of the new 'headalign' key, you can correct by setting the correct width for the number box. \defineenumeration [problem] [text=, location=inleft, headalign=flushright, stopper=), width=\leftmarginwidth] Wolfgang
Hi.
2010/1/5 Wolfgang Schuster
Am 05.01.2010 um 14:56 schrieb Vladimir Lomov:
Vladimir, I am not sure that the settings are incorrect. Why does it work with MKII then? Also it worked with MKIV before. It broke only recently.
Add 'headalign=flushright'.
Hm, this gives more unpleasant result for MKIV format but reveals the problem of "disappearing" :)
It's side effect of the new 'headalign' key, you can correct by setting the correct width for the number box.
\defineenumeration [problem] [text=, location=inleft, headalign=flushright, stopper=), width=\leftmarginwidth]
Yes, this works like a charm (checked in both TL2009 and context-minimals for MKII and MKIV formats). --- WBR, Vladimir Lomov
participants (3)
-
Curiouslearn
-
Vladimir Lomov
-
Wolfgang Schuster