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 -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 11-2-2011 8:23, Florian Wobbe wrote:
I uploaded a beta. New: [...] \at{(}{)}[two]
Hi Hans, is there a way to get rid of the extra space after the opening bracket?
unofficially yes, but officially no as it is expected when you use 'page' instead of '(' and the \at command is definitely to be downward compatible so, if you want it different, you need to define a reference format Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
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
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 ___________________________________________________________________________________
Am 28.02.2011 um 17:38 schrieb Stefan Müller:
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?
Only the source files, mkii gets the labels from the lang-xxx.mkii files and mkiv from lang-lab.lua. What you can do is to list them on the wiki. Wolfgang
On 28.02.2011 17:58, Wolfgang Schuster wrote:
Am 28.02.2011 um 17:38 schrieb Stefan Müller:
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?
Only the source files, mkii gets the labels from the lang-xxx.mkii files and mkiv from lang-lab.lua. What you can do is to list them on the wiki.
Wolfgang
Only for clarification: did you mean lang-txt.lua with a lot stuff like ... july={ labels={ af="julie", ... in it? Or is there something wrong with my files (couldn't find this file at http://source.contextgarden.net/tex/context/base only on my harddrive...)? If that's the file: it looks like a clever thing to me to let a lua-function read "data.labels" and format it properly (table or something) and/or show only one language or something, rather then putting it on the wiki. Especially since there are some gaps in this file and there could be a lot updates in the future. I'll look into that in the not too far away future, but I'm not very experienced with Lua. Stefan.
2011/3/1 Stefan Müller
On 28.02.2011 17:58, Wolfgang Schuster wrote:
Am 28.02.2011 um 17:38 schrieb Stefan Müller:
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?
Only the source files, mkii gets the labels from the lang-xxx.mkii files and mkiv from lang-lab.lua. What you can do is to list them on the wiki.
Wolfgang
Only for clarification: did you mean lang-txt.lua with a lot stuff like ... july={ labels={ af="julie", ... in it? Or is there something wrong with my files (couldn't find this file at http://source.contextgarden.net/tex/context/base only on my harddrive...)?
That's because that repository is quite a bit out of date; the file was introduced quite recently. Regards, Vedran Miletić
participants (5)
-
Florian Wobbe
-
Hans Hagen
-
Stefan Müller
-
Vedran Miletić
-
Wolfgang Schuster