I just learned that some of those labels are, in fact, reused. That caused some confusion when I tried something like \setuplabeltext[en][section=section~] Is there a "list" or something which labels alexist and what values they have? Stefan On 28.02.2011 16:08, Stefan Müller wrote:
Hi,
I think it could be useful to be able to "reuse" the label text setups elsewhere, too.
I have for example
\definereferenceformat[inexp][label=example] \setuplabeltext[en][example=example~]
in one of my documents. Why not specify this label when defining an enumeration "example":
\defineenumeration[example][label=example]
This way I could easily use several languages in parallel with one setup. The first letter should probably be capitalized in the enumeration label...
Stefan.
On 11.02.2011 18:27, Hans Hagen wrote:
Hi,
I uploaded a beta. New:
- Improved \textxt behaviour (for Mojca's code). - Korean labels and index tagging (with help from Jeong Dalyoung). - Cleaned of referencing (formats).
\setupinteraction[state=start]
\startbuffer[definitions] \definereferenceformat [PageOne] [left=(,right=),text=sometext] \definereferenceformat [PageTwo] [label=page] \definereferenceformat [PageThree] [label=*] \definereferenceformat [PageFour] [label=both]
\setuplabeltext[en][page=page~] \setuplabeltext[en][chapter=chapter~] \setuplabeltext[en][both={chapter~,~retpahc}] \stopbuffer
\getbuffer[definitions]
\starttext
\chapter[one]{One}
\typebuffer[definitions]
\startbuffer \PageOne[two] \PageTwo[two] \PageThree[two] \PageFour[two] \at{(}{)}[two] \at{!}[two] \at{page}[two] <<\at[two]>> \stopbuffer
\typebuffer \startlines \getbuffer \stoplines
\chapter[two]{Two}
\typebuffer[definitions]
\startbuffer \PageOne[one] \PageTwo[one] \PageThree[one] \PageFour[one] \at{(}{)}[one] \at{!}[one] \at{page}[one] <<\at[one]>> \stopbuffer
\typebuffer \startlines \getbuffer \stoplines
\stoptext
___________________________________________________________________________________
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 ___________________________________________________________________________________