ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to get info about current [sub-...]section?
@ 2012-04-16 10:15 Procházka Lukáš Ing. - Pontex s. r. o.
  2012-04-16 10:26 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-04-16 10:15 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

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

[-- Attachment #2: t-CurSec.mkiv --]
[-- Type: application/octet-stream, Size: 185 bytes --]

\starttext
  \section{A}
    \subsection{Aa}
      \subsubsection{Aaa}

        Here, in -- % How to get info about current [sub-...]section - texts "1.1.1" and "Aaa"?
\stoptext

[-- Attachment #3: t-CurSec.pdf --]
[-- Type: application/pdf, Size: 6954 bytes --]

[-- Attachment #4: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to get info about current [sub-...]section?
  2012-04-16 10:15 How to get info about current [sub-...]section? Procházka Lukáš Ing. - Pontex s. r. o.
@ 2012-04-16 10:26 ` Wolfgang Schuster
  2012-04-16 10:29   ` Procházka Lukáš Ing. - Pontex s. r. o.
  2012-04-17  6:53   ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 2 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2012-04-16 10:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to get info about current [sub-...]section?
  2012-04-16 10:26 ` Wolfgang Schuster
@ 2012-04-16 10:29   ` Procházka Lukáš Ing. - Pontex s. r. o.
  2012-04-17  6:53   ` Procházka Lukáš Ing. - Pontex s. r. o.
  1 sibling, 0 replies; 4+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-04-16 10:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

... Perfect, thank you!

Best regards,

Lukas


On Mon, 16 Apr 2012 12:26:52 +0200, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:

> \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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to get info about current [sub-...]section?
  2012-04-16 10:26 ` Wolfgang Schuster
  2012-04-16 10:29   ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2012-04-17  6:53   ` Procházka Lukáš Ing. - Pontex s. r. o.
  1 sibling, 0 replies; 4+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-04-17  6:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <schuster.wolfgang@googlemail.com> wrote:

> \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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-17  6:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-16 10:15 How to get info about current [sub-...]section? Procházka Lukáš Ing. - Pontex s. r. o.
2012-04-16 10:26 ` Wolfgang Schuster
2012-04-16 10:29   ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-04-17  6:53   ` Procházka Lukáš Ing. - Pontex s. r. o.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).