[NTG-context] "Smart" \in

Giuseppe Bilotta gip.bilotta at iol.it
Fri Oct 7 18:25:26 CEST 2005


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.

-- 
Giuseppe "Oblomov" Bilotta



More information about the ntg-context mailing list