efore
\doifoddpageelse{}
{\pushbackground[page]
\resetlayer[chapCover]
\setlayer
[chapCover]
{\determineheadnumber[chapter]
\externalfigure
[chap-cover-\currentheadnumber]
[width=\paperwidth]}
\setupbackgrounds[page][background=chap
tive=doublesided]
\definelayer
[chapCover]
[x=0mm,
y=0mm,
width=\paperwidth,
height=\paperheight,repeat=yes]
\startsetups chapter:before
\doifoddpageelse{}
{\pushbackground[page]
\resetlayer[chapCover]
\setlayer
[chapCover]
{\d
\startsetups chapter:before
\doifoddpageelse{}
{\pushbackground[page]
\resetlayer[chapCover]
\setlayer
[chapCover]
{\determineheadnumber[chapter]
\externalfigure
[chap-cover-\currentheadnumber]
[width=\paperwidth]}
\setupbackgrounds[page][backgroun
On 3/7/21 1:21 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 07.03.2021 um 10:49:
>> Dear list,
>>
>> I have the following sample:
>>
>>\starttext
>> \section{Section}
>>\currentheadnumber\\
>
> You ne
Pablo Rodriguez schrieb am 07.03.2021 um 10:49:
Dear list,
I have the following sample:
\starttext
\section{Section}
\currentheadnumber\\
You need \determineheadnumber[section] before you can use
\currentheadnumber.
\headnumbercontent\\
You can use
the the evaluation of the sectionnumber results always in “false”,
>> having therefore always odd as a sectionending.
>
> You have two problem:
>
> 1. To get the current value for \currentheadnumber you have use
> \determineheadnumber[section] before you use it but the examp
results always in “false”,
having therefore always odd as a sectionending.
You have two problem:
1. To get the current value for \currentheadnumber you have use
\determineheadnumber[section] before you use it but the example below
shows a better method.
2. What you do with \doifelse{...}{even} is
mit part number and get only the chapter number
displayed?
In wiki there is something that is almost suitable, namely setting:
numbercommand={\determineheadnumber[chapter]\currentheadnumber\gobbleoneargument}]
But this does not work for TOC, returning just zeros (and seems like
also an extra zer
layed?
In wiki there is something that is almost suitable, namely setting:
numbercommand={\determineheadnumber[chapter]\currentheadnumber\gobbleoneargument}]
But this does not work for TOC, returning just zeros (and seems like also an
extra zero is spilled on TOC, overall pretty hackish solution)
phead
>>[chapter]
>>[command=\HeadTitle,
>> headstyle=\ss,
>> numbercommand=\Headed]
>>
>> ConTeXt passes the section number to the argument of the \Headed command.
>>
>> But in this second example, using the command
>> \determi
o :
>
> \setuphead
>[chapter]
>[command=\HeadTitle,
> headstyle=\ss,
> numbercommand=\Headed]
>
> ConTeXt passes the section number to the argument of the \Headed command.
>
> But in this second example, using the command
> \determineheadnumber[ch
ection number to the argument of the \Headed command.
But in this second example, using the command
\determineheadnumber[chapter], the chapter number is always 0
You need \determineheadnumber[...] each time when the value for
\currentheadnumber should change.
\setuppagenumbering[location=
Hi Wolfgang,
In the first example, so I do not need the command \currentheadnumber
but just
do :
\setuphead
[chapter]
[command=\HeadTitle,
headstyle=\ss,
numbercommand=\Headed]
But in this second example, using the command
\determineheadnumber[chapter], the
chapter number is
Fabrice Couvreur <mailto:fabrice1.couvr...@gmail.com>
9. Juli 2016 um 11:12
Hello,
In this command, I have two problems:
- \currentheadnumber does not work
You need
\determineheadnumber[chapter]
before you can access the value with
\currentheadnumber
- the chapter number appe
on from the wiki and the documentation.
>>
>> \def\PartNo#1{#1.\,Teil}
>> \def\ChapterNo#1{§ \headnumber[part]
>> \determineheadnumber[chapter]\currentheadnumber}
>> \def\SectionNo#1{\determineheadnumber[section]\romannumeral\currentheadnumber}
>>
>> \setuphead[part][num
[part]
\determineheadnumber[chapter]\currentheadnumber}
\def\SectionNo#1{\determineheadnumber[section]\romannumeral\currentheadnumber}
\setuphead[part][number=yes,after=\blank,numbercommand=\PartNo,
style={\tfc\ss\bf},placehead=yes]
\setuphead[chapter][before=\blank,after=\blank,conversion
With the following code I get
1. Teil foo
§ 1 1 bar
i baz
but I need
1. Teil foo
§ 1 A. bar
I. baz
I cannot get the needed information from the wiki and the documentation.
\def\PartNo#1{#1.\,Teil}
\def\ChapterNo#1{§ \headnumber[part]
\determineheadnumber[chapter
; of being placed below it.
>
> 2. I get errors when using #1 and #2 as values, i.e {Chapter #1} and {#2}.
> Because of these errors I have hardcoded the values in the example that
> follows:
\define[1]\ChapterTextStretch {\line{\stretched{#1}}}
\define[1]\ChapterNumberStretch{\determineh
\define[1]\ChapterTextStretch {\line{\stretched{#1}}}
\define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStr
etch{Chapter
\currentheadnumber}}
\setuphead
[chapter]
[alternative=middle,
textstyle=sansbold,
numberstyle=sans,
deeptextcommand
\define[1]\ChapterTextStretch {\line{\stretched{#1}}}
\define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStr
etch{Chapter
\currentheadnumber}}
\setuphead
[chapter]
[alternative=middle,
textstyle=sansbold,
numberstyle=sans,
deeptextcommand
values, i.e {Chapter #1} and {#2}.
Because of these errors I have hardcoded the values in the example that
follows:
\define[1]\ChapterTextStretch {\line{\stretched{#1}}}
\define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStretch{Chapter
\currentheadnumber}}
\setuphead
" and
fails to compile in current beta:
\setupcolors[state=start]
\setuphead
[section]
[command={{\determineheadnumber[section]}\ifodd\currentheadnumber
\resetSlideNumber\incrementSlideNumber \else\incrementSlideNumber \fi},
expansion=yes]
\definelabel[SlideNumber][headstyle=normal,
With \setuphead[section][number=yes/no]
how do you test whether what's being typeset
is in a section or not ?
Using
\determineheadnumber[section]
\currentheadnumber
is only relevant when number=yes.
--
Alan
_
chapter][
> >command=\Myheader,
> >textcommand=\bfd,
> > ]
> > \setupheadtext[chapter=CHAPTER] % used by \headtext
> > \starttext
> > \chapter{Title for Chap 1}
> > \processfile{tufte}
> > \stoptext
>
> \def\Myheader#1#2%
> {\framed
>
ead [chapter][
>command=\Myheader,
>textcommand=\bfd,
> ]
> \setupheadtext[chapter=CHAPTER] % used by \headtext
> \starttext
> \chapter{Title for Chap 1}
> \processfile{tufte}
> \stoptext
\def\Myheader#1#2%
{\framed
[width=0.60\textwidth,
frame=off,
numbers]
# \defineXMLargument
# \defineXMLcommand
# \defineXMLenvironment
# \defineXMLenvironmentsave
# \defineXMLgrouped
# \defineXMLgsave
# \defineXMLgstore
# \defineXMLignore
# \defineXMLnested
# \defineXMLpickup
# \defineXMLprocess
# \defineXMLsave
# \defineXMLsavecontent
# \de
ed.
\@@koSubjectsection
\countervalue #1->\ifcsname #1
\endcsname \csname #1\endcsname \fi
\determineheadnumber [EMAIL PROTECTED] {\@@sectie }
}\egroup
ed.
\@@koSubjectsection
\countervalue #1->\ifcsname #1
\endcsname \csname #1\endcsname \fi
\determineheadnumber [EMAIL PROTECTED] {\@@sectie }
}\egroup
Hallo!
I need help with referencing a subsubsection-number
and the following setup:
---
\setuphead[chapter][number=no]
\setuphead[subsection][resetnumber=no]
\setuphead[subsubsection][
numbercommand={\determineheadnumber[section]\currentheadnumber
Thomas A. Schmitz wrote:
> Hi Peter,
>
> thanks for the help! The additional { must have been a fluke with
> copy/paste; wasn't in my file. By sheer stubbornness, I tried until I
> found something that works:
> command={{\determineheadnumber[section]}\
> So after \determineheadnumber[something], \currentheadnumber appears
> to have that value and doesn't take an argument.
Thanks, that information answers the question I just sent to the list.
-Sanjoy
`Never underestimate the evil of which men of power are capable.'
--
> \determineheadnumber[section]
Thanks for mentioning that command, which I'd been looking for. I
couldn't quite get it to work, but reading the code near its
definition helped me solve another problem. Each chapter has a
section for exercises, and each exercise is a subsection
Hi Peter,
thanks for the help! The additional { must have been a fluke with
copy/paste; wasn't in my file. By sheer stubbornness, I tried until I
found something that works:
command={{\determineheadnumber[section]}\ifodd\currentheadnumber
\resetSlideNumber\incrementSlideNumber
Hi Thomas,
Thomas A. Schmitz wrote:
> Hi,
>
> I have a counter which I want to be incremented after every \section
> command and reset after every odd \section (don't ask why...). So I
> tried this approach:
>
> \setuphead[section]
> [command={{
Hi,
I have a counter which I want to be incremented after every \section
command and reset after every odd \section (don't ask why...). So I
tried this approach:
\setuphead[section]
[command={{{\determineheadnumber[section]}
\ifodd{\currentheadnumber[section]}\resetSlideN
35 matches
Mail list logo