How to get info about current [sub-...]section?
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? TIA. Best regards, Lukas -- 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
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
... Perfect, thank you!
Best regards,
Lukas
On Mon, 16 Apr 2012 12:26:52 +0200, Wolfgang Schuster
\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
-- 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
Hello,
one more question - is there a way how to get values of \structurenumber and \structuretitle in the Lua scope?
TIA.
Best regards,
Lukas
On Mon, 16 Apr 2012 12:26:52 +0200, Wolfgang Schuster
\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
-- 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
participants (2)
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster