Re: [NTG-context] numbered itemize

2010-01-19 Thread Willi Egger

Hi,

I tried to extend the example with a general setup-instruction,  
however this creates an error:


\setupitemgroup[itemize][each][n,fit,broad] 
[start=8,itemalign=flushright]

\starttext
\startitemize
\item bla
\item bli
\item di
\item bla
\item di
\item blu
\stopitemize
\stoptext

! Illegal unit of measure (pt inserted).
to be read again
   
\redostartitemgroup ...fdim \currentitemmaxwidth 
  \zeropoint  
\esetitemparame...

\dostartitemgroup ... {\dodostartitemgroup [#2][]}
  \fi
to be read again
   \item

Kind regards

Willi

On Jan 17, 2010, at 5:04 PM, Wolfgang Schuster wrote:



Am 17.01.2010 um 16:17 schrieb Peter Münster:


On Sun, Jan 17 2010, Wolfgang Schuster wrote:


That's not the problem, what did not work is

- 'itemalign=...' in combination with 'width=dimen' and
- 'fit' in combination with 'distance=dimen'


Bug or feature?  Should we add it to the tracker?


Bug, I think. Can you add them?

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] numbered itemize

2010-01-19 Thread Hans Hagen

On 19-1-2010 19:38, Willi Egger wrote:

Hi,

I tried to extend the example with a general setup-instruction, however
this creates an error:

\setupitemgroup[itemize][each][n,fit,broad][start=8,itemalign=flushright]
\starttext
\startitemize
\item bla
\item bli
\item di
\item bla
\item di
\item blu
\stopitemize
\stoptext

! Illegal unit of measure (pt inserted).
to be read again
 
\redostartitemgroup ...fdim \currentitemmaxwidth 
\zeropoint \esetitemparame...
\dostartitemgroup ... {\dodostartitemgroup [#2][]}
\fi
to be read again
\item


is that the latest beta?

-
  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
-
___
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] numbered itemize

2010-01-18 Thread Peter Münster
On Sun, Jan 17 2010, Wolfgang Schuster wrote:
 
  Bug or feature?  Should we add it to the tracker?
 
 Bug, I think. Can you add them?

Ok, done.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] numbered itemize

2010-01-18 Thread Hans Hagen

On 18-1-2010 10:32, Peter Münster wrote:

On Sun, Jan 17 2010, Wolfgang Schuster wrote:



Bug or feature?  Should we add it to the tracker?


Bug, I think. Can you add them?


Ok, done.


can you check the beta ...

\starttext

\setupitemize[start=9]

\startitemize[n][itemalign=flushright]
\dorecurse{2}{\item bla}
\stopitemize

\setupitemize[start=9]

\startitemize[n,fit][itemalign=flushright]
\dorecurse{2}{\item bla}
\stopitemize

\setupitemize[start=99]

\startitemize[n,fit][itemalign=flushright]
\dorecurse{2}{\item bla}
\stopitemize

\setupitemize[start=9]

\startitemize[n][itemalign=flushright,width=5cm,distance=2cm]
\dorecurse{2}{\item bla}
\stopitemize

\setupitemize[start=99]

\startitemize[n][itemalign=flushright,width=5cm,distance=2cm]
\dorecurse{2}{\item bla}
\stopitemize

\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
-
___
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] numbered itemize

2010-01-18 Thread Wolfgang Schuster

Am 18.01.10 14:59, schrieb Hans Hagen:

can you check the beta ...

There is a problem with the horizontal spacing.

\showframe

\starttext

\setupitemize[start=9]

\startitemize[n]
\dorecurse{2}{\item bla}
\stopitemize

\setupitemize[start=9]

\startitemize[n][itemalign=flushright]
\dorecurse{2}{\item bla}
\stopitemize

\setupitemize[start=9]

\startitemize[n,fit][itemalign=flushright]
\dorecurse{2}{\item bla}
\stopitemize

\setupitemize[start=9]

\startitemize[n,fit][itemalign=flushright,distance=1cm]
\dorecurse{2}{\item bla}
\stopitemize

\stoptext

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] numbered itemize

2010-01-17 Thread Hans van der Meer
Tricked by the mail program editor! Of course I meant to accomplish  
(with | for the left edge):


| 8. a
| 9. b
|10. c
|11. d

Hans van der Meer


On 17 jan 2010, at 14:51, Hans van der Meer wrote:

Risking that, like my previous question, this one too will be posed  
the Nth time, I nevertheless ask.
Typesetting a numbered list I tried a lot of paramaters on the  
itemize macros, but always the code:


\startitemize[][start=8]
\item a
\item b
\item c
\item d
\stopitemize

results in:

8. a
9. b
10. c
11. d

whereas I would have had:

8. a
9. b
10. c
11. d

That is, the item labels aligned at the stoppers.

Hans van der Meer




___
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] numbered itemize

2010-01-17 Thread Wolfgang Schuster

Am 17.01.2010 um 15:06 schrieb Hans van der Meer:

 Tricked by the mail program editor! Of course I meant to accomplish (with | 
 for the left edge):
 
 | 8. a
 | 9. b
 |10. c
 |11. d

\startitemize[fit][start=8,itemalign=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] numbered itemize

2010-01-17 Thread Hans van der Meer

Thanks.
'itemalign' seems absent from the original ConTeXt-manual I have in  
use (but that is fairly old, of course).


Your code results in very tight item labels:
1.start-of-item-text

I managed to get
1. start-of-item-text

by using [stopper={.~}] But is there a more general way to enlarge the  
item's width? Using [width=dimension] seemed no help, neither did  
changing [fit] with [broad], [2*broad]. And using  
[itemwidth=dimension] as an analogy to itemalign neither.


Hans van der Meer




On 17 jan 2010, at 15:11, Wolfgang Schuster wrote:



Am 17.01.2010 um 15:06 schrieb Hans van der Meer:

Tricked by the mail program editor! Of course I meant to accomplish  
(with | for the left edge):


| 8. a
| 9. b
|10. c
|11. d


\startitemize[fit][start=8,itemalign=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] numbered itemize

2010-01-17 Thread Wolfgang Schuster

Am 17.01.2010 um 15:28 schrieb Hans van der Meer:

 Thanks.
 'itemalign' seems absent from the original ConTeXt-manual I have in use (but 
 that is fairly old, of course).

itemalign is a newer option (was added about 2 years ago)

 Your code results in very tight item labels:
 1.start-of-item-text
 
 I managed to get
 1. start-of-item-text
 
 by using [stopper={.~}] But is there a more general way to enlarge the item's 
 width? Using [width=dimension] seemed no help, neither did changing [fit] 
 with [broad], [2*broad]. And using [itemwidth=dimension] as an analogy to 
 itemalign neither.

\startitemize[n,fit,broad][start=8,itemalign=flushright]
\dorecurse{10}{\item item \recurselevel}
\stopitemize

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] numbered itemize

2010-01-17 Thread Peter Münster
On Sun, Jan 17 2010, Hans van der Meer wrote:

 But is there a more general way to enlarge the 
 item's width? Using [width=dimension] seemed no help

Hello Hans,

It works here:

\starttext
\startitemize[width=5em]
\item bla
\stopitemize
\stoptext

My version: 2010.01.15 15:49

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] numbered itemize

2010-01-17 Thread Wolfgang Schuster

Am 17.01.2010 um 15:49 schrieb Peter Münster:

 On Sun, Jan 17 2010, Hans van der Meer wrote:
 
 But is there a more general way to enlarge the 
 item's width? Using [width=dimension] seemed no help
 
 Hello Hans,
 
 It works here:
 
 \starttext
 \startitemize[width=5em]
 \item bla
 \stopitemize
 \stoptext

That's not the problem, what did not work is

- 'itemalign=...' in combination with 'width=dimen' and
- 'fit' in combination with 'distance=dimen'

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] numbered itemize

2010-01-17 Thread Peter Münster
On Sun, Jan 17 2010, Wolfgang Schuster wrote:
 
 That's not the problem, what did not work is
 
 - 'itemalign=...' in combination with 'width=dimen' and
 - 'fit' in combination with 'distance=dimen'

Bug or feature?  Should we add it to the tracker?

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] numbered itemize

2010-01-17 Thread Wolfgang Schuster

Am 17.01.2010 um 16:17 schrieb Peter Münster:

 On Sun, Jan 17 2010, Wolfgang Schuster wrote:
 
 That's not the problem, what did not work is
 
 - 'itemalign=...' in combination with 'width=dimen' and
 - 'fit' in combination with 'distance=dimen'
 
 Bug or feature?  Should we add it to the tracker?

Bug, I think. Can you add them?

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
___