![](https://secure.gravatar.com/avatar/27427d520d34959cc400ae23a1c4f0c7.jpg?s=120&d=mm&r=g)
Is there some way to set up a reference tag so that I can refer to a particular item in a list, e.g., something vaguely like: You must do the following steps: \startitemize[n] \item Buy the ingredients \item Cook the food \item [??????] Put out the fire \stopitemize Note that Step \in[?????] is optional for experienced chefs. It looks like there are mechanisms to support this in the tex code, but I don't know how to use them.
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
On Wed, Apr 30, 2008 at 4:15 PM,
Is there some way to set up a reference tag so that I can refer to a particular item in a list, e.g., something vaguely like:
\starttext
You must do the following steps: \startitemize[n] \item Buy the ingredients \item Cook the food \item [??????] Put out the fire
\item [fire] Put out the fire
\stopitemize Note that Step \in[?????] is optional for experienced chefs.
Note that Step \in[fire] is optional for experienced chefs. \stoptext
It looks like there are mechanisms to support this in the tex code, but I don't know how to use them.
;-) Wolfgang
![](https://secure.gravatar.com/avatar/29e8339e4059b7990b4fe917e5926179.jpg?s=120&d=mm&r=g)
Wow. How embarrassing - I am usually the one who chides my users about never actually trying simple experiments to see if something works.
![](https://secure.gravatar.com/avatar/36fe2e1a70ee9905ec5b6d8e53503684.jpg?s=120&d=mm&r=g)
2008/4/30, Michael P. Urban
Wow. How embarrassing - I am usually the one who chides my users about never actually trying simple experiments to see if something works.
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- Johan Sandblom, MD PhD m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Wed, 30 Apr 2008, Michael.Urban@jpl.nasa.gov wrote:
Is there some way to set up a reference tag so that I can refer to a particular item in a list, e.g., something vaguely like:
You must do the following steps: \startitemize[n] \item Buy the ingredients \item Cook the food \item [??????] Put out the fire \stopitemize Note that Step \in[?????] is optional for experienced chefs.
Wolfgang has already answered your question. A suggestion: I usually prefer Note that \in Step[fire] is optional for experienced chefs. This way, if you enable interaction, "Step 3" will become a link, rather than just "3". Aditya
![](https://secure.gravatar.com/avatar/04cfbd1c38bcc2b54ab30e598516cfbc.jpg?s=120&d=mm&r=g)
Aditya Mahajan
I usually prefer
Note that \in Step[fire] is optional for experienced chefs.
This way, if you enable interaction, "Step 3" will become a link, rather than just "3".
An example showing a third alternative. This alternative is useful if you use that kind of reference a lot: \definereferenceformat[instep][text=Step] \starttext You must do the following steps: \startitemize[n] \item Buy the ingredients \item Cook the food \item [abc] Put out the fire \stopitemize Note that Step \in[abc] is optional for experienced chefs. Note that \in Step[abc] is optional for experienced chefs. Note that \instep[abc] is optional for experienced chefs. \stoptext
participants (6)
-
Aditya Mahajan
-
jsandblom@gmail.com
-
Michael P. Urban
-
Michael.Urban@jpl.nasa.gov
-
Sanjoy Mahajan
-
Wolfgang Schuster