diff options
author | Marius <mariausol@gmail.com> | 2012-03-13 23:00:13 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-03-13 23:00:13 +0200 |
commit | 8fe515a983f3af0391a5429f2afb446bb019a78a (patch) | |
tree | f0634675dc7c78b3245120fa4ab874df9aacc460 /tex/context/base/strc-num.mkiv | |
parent | ba034a1d2cd90c05bfa5d9a846a0d78c6dac85ec (diff) | |
download | context-8fe515a983f3af0391a5429f2afb446bb019a78a.tar.gz |
beta 2012.03.13 21:26
Diffstat (limited to 'tex/context/base/strc-num.mkiv')
-rw-r--r-- | tex/context/base/strc-num.mkiv | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/tex/context/base/strc-num.mkiv b/tex/context/base/strc-num.mkiv index e19e0b10b..2351389cd 100644 --- a/tex/context/base/strc-num.mkiv +++ b/tex/context/base/strc-num.mkiv @@ -44,7 +44,7 @@ \fi} \def\autostructureprefixsegments#1% todo: \c!prefixsegments=\v!auto - {2:\thenamedheadlevel{\ctxlua{structures.sections.way("#1\c!way","\v!by")}}} + {2:\thenamedheadlevel{\ctxlua{structures.sections.way("#1\c!way")}}} \def\structurecounterparameter#1#2% this will become \named.... {\csname @@ -108,10 +108,27 @@ % % % % \def\structurecounterway#1% slow, we need to store it at the tex end - {\ctxlua{structures.sections.way("\structurecounterparameter{#1}\c!way","\v!by")}} + {\ctxlua{structures.sections.way("\structurecounterparameter{#1}\c!way")}} + +% \def\thenamedstructurecounterlevel#1% +% {\thenamedheadlevel{\structurecounterway{#1}}} \def\thenamedstructurecounterlevel#1% - {\thenamedheadlevel{\structurecounterway{#1}}} + {\xthenamedheadlevel{\structurecounterway{#1}}} + +\def\xthenamedheadlevel#1% + {\xsectionlevel{#1}{\sectionheadsection{\sectionheadcoupling{#1}}}} + +\def\xsectionlevel#1#2% direct indirect + {\csname\??headlevel + \ifcsname\??headlevel#1\endcsname + #1% + \else\ifcsname\??headlevel#2\endcsname + #2% + \else + \v!none + \fi\fi + \endcsname} \def\docheckstructurecountersetup#1% does it have to happen here? {% this can be done at the lua end / a bit messy here ... todo ... |