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.
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
Wow. How embarrassing - I am usually the one who chides my users about never actually trying simple experiments to see if something works.
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
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
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