Re: [NTG-context] How to get \structurenumber and \structuretitle by Lua?

2012-04-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
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

[NTG-context] How to get \structurenumber and \structuretitle by Lua?

2012-04-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
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 %

Re: [NTG-context] How to get \structurenumber and \structuretitle by Lua?

2012-04-17 Thread Hans Hagen
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