[NTG-context] \ref not working in current Ctx?
Procházka Lukáš Ing. - Pontex s. r. o.
LPr at pontex.cz
Thu Apr 12 14:24:55 CEST 2012
... OK, thank you.
I also found your piece of code at http://www.mail-archive.com/ntg-context@ntg.nl/msg62816.html where usage is shown.
But I still have a question:
Is it possible to create a "point" (or anchor) which would know about the current section, so to retrieve this information later?
See the code:
----
\setupinteraction[state=start]
\starttext
See: \at[MyRef1]
\about[MyRef1]
\getreference[page][MyRef1]
\getreference[title][MyRef1]
\getreference[text][MyRef1]
\getreference[number][MyRef1]
\page
\section{Sec1}
\subsection{SSec1}
\reference[MyRef1]{MyRef1} This is the first reference.
\stoptext
----
Gives:
"
See: 2 “” 2 MyRef1
"
And I'm looking for a way to obtain:
See: ... SSec1 ... - the current deepest (current) section name,
or
See: ... "SSec1" ... - quoted current deepest (current) section name, like \about does,
and
See: ... 1.1 ... - the current section number.
How to achieve this?
Best regards,
Lukas
On Thu, 12 Apr 2012 13:53:05 +0200, Wolfgang Schuster <schuster.wolfgang at googlemail.com> wrote:
>
> In MkIV you can use the \getreference command for this, see this mail for the arguments.
>
> The \ref command is now only a synonym for \getreference and needs the same arguments.
>
> Wolfgang
--
Ing. Lukáš Procházka [mailto:LPr at pontex.cz]
Pontex s. r. o. [mailto:pontex at pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax: +420 244 461 038
More information about the ntg-context
mailing list