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

Hans Hagen pragma at wxs.nl
Tue Apr 17 19:20:42 CEST 2012


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 number at level 2


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list