ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* offset for enumeration counter
@ 2010-09-17 10:22 Philipp Gesang
  2010-09-17 10:31 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Philipp Gesang @ 2010-09-17 10:22 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 804 bytes --]

Hi all,

some specification requests that a numbered list start at
arbitrary counter values. I'm using the following line after
“\startitemize[...]” to accomplish this:

··8<·····························································
\setnumber[itemgroup:itemize]{42}
··8<·····························································

Now I'd rather avoid this kind of brute interference with context
internals so I'd like to ask whether there is a recommended
high-level mechanism that I could use instead?

Thanks for your help,
Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: offset for enumeration counter
  2010-09-17 10:22 offset for enumeration counter Philipp Gesang
@ 2010-09-17 10:31 ` Wolfgang Schuster
  2010-09-17 11:11   ` Philipp Gesang
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2010-09-17 10:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 17.09.2010 um 12:22 schrieb Philipp Gesang:

> Hi all,
> 
> some specification requests that a numbered list start at
> arbitrary counter values. I'm using the following line after
> “\startitemize[...]” to accomplish this:
> 
> ··8<·····························································
> \setnumber[itemgroup:itemize]{42}
> ··8<·····························································
> 
> Now I'd rather avoid this kind of brute interference with context
> internals so I'd like to ask whether there is a recommended
> high-level mechanism that I could use instead?

\starttext

\startitemize[n]
\dorecurse{4}{\item text}
\stopitemize

\startitemize[n,continue]
\dorecurse{4}{\item text}
\stopitemize

\startitemize[n][start=30]
\dorecurse{4}{\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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: offset for enumeration counter
  2010-09-17 10:31 ` Wolfgang Schuster
@ 2010-09-17 11:11   ` Philipp Gesang
  2010-09-17 13:02     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Philipp Gesang @ 2010-09-17 11:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1566 bytes --]

On 2010-09-17 <12:31:41>, Wolfgang Schuster wrote:
> \starttext
> 
> \startitemize[n][start=30]
> \dorecurse{4}{\item text}
> \stopitemize
> 
> \stoptext

Great, that's exactly what I was looking for. Now that we're at
it: actually the spec wants this on per-item basis. This would
amount to having another (apart from the reference) argument to
“\item”, e.g.

···8<····························································
\startitemize[n]
\item[n=1]  foo 
\item[n=2]  bar 
\item[n=3]  foo 
\item[n=5]  bar 
\item[n=8]  foo 
\item[n=13] bar 
\stopitemize
···8<····························································

Regardless of if there's a practical use for that: is this
possible as well without resorting  to repeated \setnumber'ing?

Philipp

> 
> 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
> ___________________________________________________________________________________

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: offset for enumeration counter
  2010-09-17 11:11   ` Philipp Gesang
@ 2010-09-17 13:02     ` Wolfgang Schuster
  2010-09-17 13:36       ` Philipp Gesang
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2010-09-17 13:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 17.09.2010 um 13:11 schrieb Philipp Gesang:

> On 2010-09-17 <12:31:41>, Wolfgang Schuster wrote:
>> \starttext
>> 
>> \startitemize[n][start=30]
>> \dorecurse{4}{\item text}
>> \stopitemize
>> 
>> \stoptext
> 
> Great, that's exactly what I was looking for. Now that we're at
> it: actually the spec wants this on per-item basis. This would
> amount to having another (apart from the reference) argument to
> “\item”, e.g.
> 
> ···8<····························································
> \startitemize[n]
> \item[n=1]  foo 
> \item[n=2]  bar 
> \item[n=3]  foo 
> \item[n=5]  bar 
> \item[n=8]  foo 
> \item[n=13] bar 
> \stopitemize
> ···8<····························································
> 
> Regardless of if there's a practical use for that: is this
> possible as well without resorting  to repeated \setnumber'ing?

\starttext
\startitemize
\sym{1.} text
\sym{2.} text
\sym{4.} text
\sym{7.} text
\sym{8.} 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: offset for enumeration counter
  2010-09-17 13:02     ` Wolfgang Schuster
@ 2010-09-17 13:36       ` Philipp Gesang
  0 siblings, 0 replies; 5+ messages in thread
From: Philipp Gesang @ 2010-09-17 13:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 563 bytes --]

On 2010-09-17 <15:02:00>, Wolfgang Schuster wrote:
> Am 17.09.2010 um 13:11 schrieb Philipp Gesang:
> > Regardless of if there's a practical use for that: is this
> > possible as well without resorting  to repeated \setnumber'ing?
> 
> \starttext
> \startitemize
> \sym{1.} text
> \sym{2.} text
> \sym{4.} text
> \sym{7.} text
> \sym{8.} text
> \stopitemize
> \stoptext

Thanks again! I'll see what I can use this for.

Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2010-09-17 13:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-17 10:22 offset for enumeration counter Philipp Gesang
2010-09-17 10:31 ` Wolfgang Schuster
2010-09-17 11:11   ` Philipp Gesang
2010-09-17 13:02     ` Wolfgang Schuster
2010-09-17 13:36       ` Philipp Gesang

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