ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Itemizations
@ 2001-06-04  8:40 Giuseppe Bilotta
  2001-06-04 18:46 ` Itemizations Berend de Boer
  2001-06-05  8:30 ` Itemizations Hans Hagen
  0 siblings, 2 replies; 8+ messages in thread
From: Giuseppe Bilotta @ 2001-06-04  8:40 UTC (permalink / raw)


Hello, I have two questions on itemizations

First question: assume that I have an itemization

1. foo
2. bar
3. baz
4. quuz

and that I lately want to expand baz and quuz. This means that in
another itemization I would have

3. baz
   a. one
   b. two
   c. and three
4. quuz
   a. another
   b. and another
   c. ok

How could I tell the second itemization to start at 3, possibly
linking it to the actual number of baz (so that if baz changes
position, the numbers are always in sync)?

Second question: can I have "running" itemization? Like (1) This
is item 1 and (2) this is item two.

Thanks in advance,

Giuseppe "Oblomov" Bilotta


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

* Re: Itemizations
  2001-06-04  8:40 Itemizations Giuseppe Bilotta
@ 2001-06-04 18:46 ` Berend de Boer
  2001-06-04 22:12   ` Re[2]: Itemizations Giuseppe Bilotta
  2001-06-05  8:30 ` Itemizations Hans Hagen
  1 sibling, 1 reply; 8+ messages in thread
From: Berend de Boer @ 2001-06-04 18:46 UTC (permalink / raw)
  Cc: ntg-context

Giuseppe Bilotta <bourbaki@bigfoot.com> writes:

> How could I tell the second itemization to start at 3, possibly
> linking it to the actual number of baz (so that if baz changes
> position, the numbers are always in sync)?

Items can have a reference like \item[baz], which you can refer
to. Perhaps you can play with this?

> 
> Second question: can I have "running" itemization? Like (1) This
> is item 1 and (2) this is item two.

Yes, see english manual about itemizations.

Groetjes,

Berend. (-:


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

* Re[2]: Itemizations
  2001-06-04 18:46 ` Itemizations Berend de Boer
@ 2001-06-04 22:12   ` Giuseppe Bilotta
  0 siblings, 0 replies; 8+ messages in thread
From: Giuseppe Bilotta @ 2001-06-04 22:12 UTC (permalink / raw)
  Cc: ntg-context

Monday, June 04, 2001 Berend de Boer wrote:

BdB> Giuseppe Bilotta <bourbaki@bigfoot.com> writes:

>> How could I tell the second itemization to start at 3, possibly
>> linking it to the actual number of baz (so that if baz changes
>> position, the numbers are always in sync)?

BdB> Items can have a reference like \item[baz], which you can refer
BdB> to. Perhaps you can play with this?

I can find no way to report the value of baz (\in gives a
formatted reference). Also, I cannot find the option to set the
starting number. Is there one?

>> Second question: can I have "running" itemization? Like (1) This
>> is item 1 and (2) this is item two.

BdB> Yes, see english manual about itemizations.

Uh ... no, nothing of the sort. Browsing through core-itm.tex I
found an intext option, but it doesn't seem to work. Also, there
is a reference to a "concat" thing ... but I can't sort it out.

--
Giuseppe "Oblomov" Bilotta


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

* Re: Itemizations
  2001-06-04  8:40 Itemizations Giuseppe Bilotta
  2001-06-04 18:46 ` Itemizations Berend de Boer
@ 2001-06-05  8:30 ` Hans Hagen
  2001-06-05 10:25   ` Re[2]: Itemizations Giuseppe Bilotta
  1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2001-06-05  8:30 UTC (permalink / raw)
  Cc: ntg-context

At 10:40 AM 6/4/01 +0200, you wrote:
>Hello, I have two questions on itemizations
>
>First question: assume that I have an itemization
>
>1. foo
>2. bar
>3. baz
>4. quuz
>
>and that I lately want to expand baz and quuz. This means that in
>another itemization I would have
>
>3. baz
>   a. one
>   b. two
>   c. and three
>4. quuz
>   a. another
>   b. and another
>   c. ok
>
>How could I tell the second itemization to start at 3, possibly
>linking it to the actual number of baz (so that if baz changes
>position, the numbers are always in sync)?

\startitemize[continue]

>Second question: can I have "running" itemization? Like (1) This
>is item 1 and (2) this is item two.

see berends answer, add a  [ref]

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re[2]: Itemizations
  2001-06-05  8:30 ` Itemizations Hans Hagen
@ 2001-06-05 10:25   ` Giuseppe Bilotta
  2001-06-05 13:15     ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Giuseppe Bilotta @ 2001-06-05 10:25 UTC (permalink / raw)
  Cc: ntg-context

Tuesday, June 05, 2001 Hans Hagen wrote:

HH> At 10:40 AM 6/4/01 +0200, you wrote:
>>Hello, I have two questions on itemizations
>>
>>First question: assume that I have an itemization
>>
>>1. foo
>>2. bar
>>3. baz
>>4. quuz
>>
>>and that I lately want to expand baz and quuz. This means that in
>>another itemization I would have
>>
>>3. baz
>>   a. one
>>   b. two
>>   c. and three
>>4. quuz
>>   a. another
>>   b. and another
>>   c. ok
>>
>>How could I tell the second itemization to start at 3, possibly
>>linking it to the actual number of baz (so that if baz changes
>>position, the numbers are always in sync)?

HH> \startitemize[continue]

This would start from 5 (the number after quuz), while I would
like it to restart from 3 (baz's number)

>>Second question: can I have "running" itemization? Like (1) This
>>is item 1 and (2) this is item two.

HH> see berends answer, add a  [ref]

Uh? How would this solve the "running" itemization problem?

--
Giuseppe "Oblomov" Bilotta


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

* Re: Re[2]: Itemizations
  2001-06-05 10:25   ` Re[2]: Itemizations Giuseppe Bilotta
@ 2001-06-05 13:15     ` Hans Hagen
  2001-06-07 11:16       ` Re[4]: Itemizations Giuseppe Bilotta
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2001-06-05 13:15 UTC (permalink / raw)
  Cc: ntg-context

At 12:25 PM 6/5/01 +0200, Giuseppe Bilotta wrote:

>This would start from 5 (the number after quuz), while I would
>like it to restart from 3 (baz's number)

\sub{yournumber} -) 

or if you know where to patch: 

\unprotected \def\doadvanceitem
  {\ifsubsom\else\ifsymsom\else
     \scratchcounter=0\getvalue{\??op\itemlevel\c!start}\relax
     \ifcase\scratchcounter
       \pluscounter{\s!itemcount\itemlevel}%
     \else
       \setcounter{\s!itemcount1}{\scratchcounter}%
       \setvalue{\??op\itemlevel\c!start}{0}%
     \fi
   \fi\fi}

\startitemize[n]
\item test
\item test
\item test
\stopitemize

\startitemize[continue][start=2]
\item test
\item test
\item test
\stopitemize

This may work for you 

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re[4]: Itemizations
  2001-06-05 13:15     ` Hans Hagen
@ 2001-06-07 11:16       ` Giuseppe Bilotta
  2001-06-07 15:07         ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Giuseppe Bilotta @ 2001-06-07 11:16 UTC (permalink / raw)
  Cc: ntg-context

Tuesday, June 05, 2001 Hans Hagen wrote:

HH> At 12:25 PM 6/5/01 +0200, Giuseppe Bilotta wrote:

>>This would start from 5 (the number after quuz), while I would
>>like it to restart from 3 (baz's number)

HH> \sub{yournumber} -) 

Uh, I was hoping in a more auto-ConTeXt way :-)

HH> or if you know where to patch: 

Well, I know and I could, but ... since this should go in the
EuroTeX presentation, I was hoping for a "standard" way. What
version of ConTeXt will they use at EuroTeX?

HH> \unprotected \def\doadvanceitem
HH>   {\ifsubsom\else\ifsymsom\else
HH>      \scratchcounter=0\getvalue{\??op\itemlevel\c!start}\relax
HH>      \ifcase\scratchcounter
HH>        \pluscounter{\s!itemcount\itemlevel}%
HH>      \else
HH>        \setcounter{\s!itemcount1}{\scratchcounter}%
HH>        \setvalue{\??op\itemlevel\c!start}{0}%
HH>      \fi
HH>    \fi\fi}

HH> \startitemize[n]
HH> \item test
HH> \item test
HH> \item test
HH> \stopitemize

HH> \startitemize[continue][start=2]
HH> \item test
HH> \item test
HH> \item test
HH> \stopitemize

That's exactly what I wanted, now is there a way to use the value
of the counter pointed at by "baz" instead of the "fixed" 2?

Also, what about the in-line itemizations?

--
Giuseppe "Oblomov" Bilotta


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

* Re: Re[4]: Itemizations
  2001-06-07 11:16       ` Re[4]: Itemizations Giuseppe Bilotta
@ 2001-06-07 15:07         ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2001-06-07 15:07 UTC (permalink / raw)
  Cc: ntg-context

At 01:16 PM 6/7/01 +0200, Giuseppe Bilotta wrote:

>That's exactly what I wanted, now is there a way to use the value
>of the counter pointed at by "baz" instead of the "fixed" 2?

hm, you can peek into core-ref

\doifreferencefoundelse{bla}
  {\global\let\MyBla\currenttextreference}
  {\global\def\MyBla{1}}

...start=\MyBla

or something similar ugly

>Also, what about the in-line itemizations?

well, some day ..., first i have to finish steptables and stepcharts and
the extra otr's  

hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

end of thread, other threads:[~2001-06-07 15:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-04  8:40 Itemizations Giuseppe Bilotta
2001-06-04 18:46 ` Itemizations Berend de Boer
2001-06-04 22:12   ` Re[2]: Itemizations Giuseppe Bilotta
2001-06-05  8:30 ` Itemizations Hans Hagen
2001-06-05 10:25   ` Re[2]: Itemizations Giuseppe Bilotta
2001-06-05 13:15     ` Hans Hagen
2001-06-07 11:16       ` Re[4]: Itemizations Giuseppe Bilotta
2001-06-07 15:07         ` Hans Hagen

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