[NTG-context] references

Hans Hagen pragma at wxs.nl
Fri Feb 11 18:27:55 CET 2011


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
-----------------------------------------------------------------


More information about the ntg-context mailing list