ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Itemize starting at zero
@ 2007-12-03  3:20 Zeus Gómez Marmolejo
  2007-12-03 18:08 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Zeus Gómez Marmolejo @ 2007-12-03  3:20 UTC (permalink / raw)
  To: ntg-context

I've searched the documentation and emails, but I didn't find the 
answer... It sounds really simple:

How can I make the numbers in startitemize[n,...] start from 0 instead of 1?

Thanks,
Zeus.
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Itemize starting at zero
  2007-12-03  3:20 Itemize starting at zero Zeus Gómez Marmolejo
@ 2007-12-03 18:08 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2007-12-03 18:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2007/12/3, Zeus Gómez Marmolejo <zeus@aluzina.org>:
> I've searched the documentation and emails, but I didn't find the
> answer... It sounds really simple:
>
> How can I make the numbers in startitemize[n,...] start from 0 instead of 1?
>
> Thanks,
> Zeus.

Hi,

\startitemize has a start value, but it is not working a you have to define
your own conversion macro untill this will be fixed :-(

\def\zerostart#1{\number\numexpr#1-1\relax}
\defineconversion[zerostart][\zerostart]

\starttext
\startitemize[zerostart]
\dorecurse{10}{\item text}
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2007-12-03 18:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-03  3:20 Itemize starting at zero Zeus Gómez Marmolejo
2007-12-03 18:08 ` Wolfgang Schuster

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).