Could you enlighten me?
You need: \somenamedheadnumber{chapter}{current}
Thank you, esp. for the effort!
See my other mail – expansion got into my way, and I found a different
solution.
Hraban
___
If your ques
.
> Could you enlighten me?
You need: \somenamedheadnumber{chapter}{current}
\starttext
\startsection[title=First]
This is: \somenamedheadnumber{section}{current}
\ifodd\somenamedheadnumber{section}{current}\relax
This is odd
\else
This is even
\fi
yfont=11pt,
style={\tt}]
\defineenumeration
[Code]
[title=yes,
alternative=empty,
before=\startCountFramedText,
after=\stopCountFramedText,
left={\somenamedheadnumber{chapter}{current}.}]
\starttext
\startchapter
[title=first]
\startCode
[title={The First Title},
refer
tle.
Amemd the \defineenumeration as follows:
\defineenumeration
[Counter]
[title=yes,
alternative=empty,
before=\startCountFramedText,
after=\stopCountFramedText,
left={\somenamedheadnumber{chapter}{current}:}]
—
Bruce Horrock
Am 20.07.22 um 09:47 schrieb Taco Hoekwater:
Ok, I can access the wiki via Tor and found
\somenamedheadnumber{chapter}{current}
\somenamedheadnumber{chapter}{last}
These are expandable
\someheadnumber[chapter][current]
\someheadnumber[chapter][last]
These are not
\definecolor
justme.com says it would be
>> just me.)
>
> Ok, I can access the wiki via Tor and found
>
> \somenamedheadnumber{chapter}{current}
> \somenamedheadnumber{chapter}{last}
These are expandable
>
> or
>
> \someheadnumber[chapter][current]
> \someheadnumber[cha
*\namedstructurevariable{chapter}{number}/\numberofchapters,
]
and use it for a thumb index...
(I can’t access the wiki ATM; downforeveryoneorjustme.com says it would
be just me.)
Ok, I can access the wiki via Tor and found
\somenamedheadnumber{chapter}{current}
\somenamedheadnumber{chapter}{last}
or
[textcolor] [white]
\startuseMPgraphic{chapter-thumb}
path chap_frame ;
pair pos,a,b ;
picture Chap ;
if \somenamedheadnumber{chapter}{current} > 0 :
curr_chap := \somenamedheadnumber{chapter}{current} ;
else :
curr_chap := 1 ;
fi;
I look at the chapter number in order to set up the
> conditional?
Hi MIchael,
this might do the trick:
\starttext
\dorecurse{5}
{\chapter{Chapter \structurenumber}
\dorecurse{5}
{\section{Section \structurenumber}
\doifelse{\somenamedheadnumber{chapter}{current}}{1}
tion numbering ('1.0',
'2.0', etc) in \setupheadertexts
[\somenamedheadnumber{section}{current}][...etc].
fwiw: you can control numbering and prefixes at any level and for all
constructs .. there are examples in the test suite
Hans
tions
'way=bychapter, prefix=chapter') and the section numbering ('1.0',
'2.0', etc) in \setupheadertexts
[\somenamedheadnumber{section}{current}][...etc].
fwiw: you can control numbering and prefixes at any level and for all
constructs .. the
27;) and the section numbering ('1.0',
'2.0', etc) in \setupheadertexts
[\somenamedheadnumber{section}{current}][...etc].
Sytse Knypstra
On 15-12-15 09:45, Jan Willem Flamma wrote:
I ran into the following issue related to figure/float numbering.
I use numbered chapte
\page_shipouts_normal{#1}%
\else
\xdef\overview_current_headnumber{\somenamedheadnumber\overviewsection\c!current}%
\setbox\nextbox\hbox{#1}%
\ifx\overview_previous_headnumber\overview_current_headnumber \else
\glet\overview_previous_headnumber\overview_current_headnumber
On Fri, 7 Oct 2011, Wolfgang Schuster wrote:
\setuphead[section][textstyle=\tt,page=yes]
\starttext
\dorecurse{2}
{\section{[[#1]]}
\dorecurse{\numexpr#1+2\relax}
{\subsection{[[#1-##1]]}
\starttabulate
\NC First \EQ \somenamedheadnumber{subsection}{first} \NC\NR
\NC
> structurecounter associated with it? I am interested in also finding the
> total number of sections at the current level (equivalent to
> \laststructurecounter[...]).
\setuphead[section][textstyle=\tt,page=yes]
\starttext
\dorecurse{2}
{\section{[[#1]]}
\dorecurse{\numexpr#1+2\rel
;
fill fullcircle scaled 3cm shifted (skip,skip) ;
StopPage ;
\stopuseMPgraphic
not expandable and typeset ... so you i'll add
\somenamedheadnumber{chapter}{current}
-
Hans Hagen | PRAGM
16 matches
Mail list logo