[NTG-context] How to get info about current [sub-...]section?

Wolfgang Schuster schuster.wolfgang at googlemail.com
Mon Apr 16 12:26:52 CEST 2012


Am 16.04.2012 um 12:15 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

> Hello,
> 
> suppose having the following code:
> 
> ----
> \starttext
>  \section{A}
>    \subsection{Aa}
>      \subsubsection{Aaa}
> 
>        Here, in -- % How to get info about current [sub-...]section - texts "1.1.1" and "Aaa"?
> \stoptext
> ----
> 
> Is there a way how to get info about the current [sub-...]section, i.e. texts "1.1.1" and "Aaa" in the case above?
> 
> E.g. anyhow by Lua?

\defineconversionset[default][n,n,a,r,n][n]

\starttext

\section{A}

\starttabulate
\NC Number \EQ \structurenumber \NC\NR
\NC Title  \EQ \structuretitle  \NC\NR
\stoptabulate

\subsection{Aa}

\starttabulate
\NC Number \EQ \structurenumber \NC\NR
\NC Title  \EQ \structuretitle  \NC\NR
\stoptabulate

\subsubsection{Aaa}

\starttabulate
\NC Number \EQ \structurenumber \NC\NR
\NC Title  \EQ \structuretitle  \NC\NR
\stoptabulate

\stoptext

Wolfgang


More information about the ntg-context mailing list