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
Hello,
values of number and title of the current (sub...)section can be received by
\structurenumber and \structuretitle commands.
Is there a way how to get these values by Lua?
Suppose:
\starttext
\section{Sec 1}
% Now \structurenumber yields 1 and \structuretitle gives Sec 1
%
On 17-4-2012 17:13, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello,
values of number and title of the current (sub...)section can be
received by \structurenumber and \structuretitle commands.
Is there a way how to get these values by Lua?
structures.sections.getnumber(2)
gives the