Giuseppe Bilotta wrote:

Hello all,

I have a document which is split into separate \parts. I
would like the \in command (& friends) to automatically add
the "part" reference when cross-referencing across parts.

Example:


"""
\part[part:one]{Part one}

\chapter[ch:one]{Chapter one}

\chapter[ch:two]{Chapter two}
As seen in \in chapter[ch:one]

\part[part:two]{Part two}

\chater[ch:2-1]{Chapter two}

As seen in \in chapter[ch:one]
"""

The first \in would say chapter~1, the second chapter~1,
part~1.

\setuphead[part][prefix=part]
\setuphead[chapter][prefix=ch]

\setuphead[chapter]prefix=+] % kind of automatic

(actually, prefixes are blabla::whatever deep down in context)

--

-----------------------------------------------------------------
                                         Hans Hagen | PRAGMA ADE
             Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                            | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to