Re: [NTG-context] defineenumeration does not work with MKIV. Works with MKII

2010-01-05 Thread 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.

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

 I'm newbie with ConTeXt but have experience with LaTeX.

 2010/1/5 Curiouslearn curiousle...@gmail.com:
 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
 ___

___
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] defineenumeration does not work with MKIV. Works with MKII

2010-01-05 Thread 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
___


Re: [NTG-context] defineenumeration does not work with MKIV. Works with MKII

2010-01-05 Thread Curiouslearn
Thanks! That worked great.

On Tue, Jan 5, 2010 at 8:52 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 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
 ___

___
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] defineenumeration does not work with MKIV. Works with MKII

2010-01-05 Thread Vladimir Lomov
Hello.
2010/1/5 Curiouslearn curiousle...@gmail.com:
 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 schuster.wolfg...@googlemail.com:

 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
___
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] defineenumeration does not work with MKIV. Works with MKII

2010-01-05 Thread 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]

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
___


Re: [NTG-context] defineenumeration does not work with MKIV. Works with MKII

2010-01-05 Thread Vladimir Lomov
Hi.
2010/1/5 Wolfgang Schuster schuster.wolfg...@googlemail.com:

 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
___
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] defineenumeration does not work with MKIV. Works with MKII

2010-01-04 Thread Vladimir Lomov
Hi.

I'm newbie with ConTeXt but have experience with LaTeX.

2010/1/5 Curiouslearn curiousle...@gmail.com:
 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
___