Start an itemized list with a given number
Hello everybody and thanks in advance for your advice, I’m unable to find in the documentation and in the wiki the way to start an itemized list with a number different from 1, for instance with 3. What I want to achieve is something like: Insert the key Try to turn the key If key is working 3. Open the door If key is not working 3. Change key 4. Goto step 1 So what is the way to start the list after « If key is not working » with the number 3 ? Eric Gerard
This seems to work:
\startitemize[n]
\item Insert the key
\item Try to turn the key
\stopitemize
If key is working
\startitemize[n,continue]
\item Open the door
\stopitemize
If key is not working
\setupitemize[start=3] %% <============
\startitemize[n]
\item Change key
\item Goto step 1
\stopitemize
Alan
On Tue, Dec 30, 2014 at 12:38 PM, Eric Gerard
Hello everybody and thanks in advance for your advice,
I’m unable to find in the documentation and in the wiki the way to start an itemized list with a number different from 1, for instance with 3.
What I want to achieve is something like:
1. Insert the key 2. Try to turn the key
*If key is working* 3. Open the door *If key is not working* 3. Change key 4. Goto step 1 So what is the way to start the list after « If key is not working » with the number 3 ?
Eric Gerard
___________________________________________________________________________________ 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
___________________________________________________________________________________
Am 30.12.2014 um 18:38 schrieb Eric Gerard
: Hello everybody and thanks in advance for your advice,
I’m unable to find in the documentation and in the wiki the way to start an itemized list with a number different from 1, for instance with 3.
What I want to achieve is something like:
Insert the key Try to turn the key If key is working 3. Open the door If key is not working 3. Change key 4. Goto step 1 So what is the way to start the list after « If key is not working » with the number 3 ?
You increment the number from a previous item with the “continue” keyword and set a different value for the first item in a list with the “start” key. \starttext \startitemize[n,packed] \item Insert the key \item Try to turn the key \stopitemize If key is working \startitemize[n,packed,continue] \item Open the door \stopitemize If key is not working \startitemize[n,packed][start=3] \item Change key \item Goto step 1 \stopitemize \stoptext Wolfgang
participants (3)
-
Alan Bowen
-
Eric Gerard
-
Wolfgang Schuster