Hello Hans,
thanks for the idea.
Unfortunately, I'm getting error:
----
\starttext
\section{A}
\subsection{Aa}
\subsubsection{Aaa}
\startluacode
print("@@@", structures.sections.getnumber(2))
\stopluacode
\stoptext
----
"
! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/strc-doc.lua:762: attempt to index field 'references' (a nil value)
stack traceback:
...TeXt/tex/texmf-context/tex/context/base/strc-doc.lua:762: in function 'findnumber'
...TeXt/tex/texmf-context/tex/context/base/strc-doc.lua:863: in function 'getnumber'
<main ctx instance>:2: in main chunk.
"
How would I get the text? With "structures.sections.gettitle(2)"?
Best regards,
Lukas
On Tue, 17 Apr 2012 19:20:42 +0200, Hans Hagen
structures.sections.getnumber(2)
gives the number at level 2
-- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038