Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
efore \doifoddpageelse{} {\pushbackground[page] \resetlayer[chapCover] \setlayer [chapCover] {\determineheadnumber[chapter] \externalfigure [chap-cover-\currentheadnumber] [width=\paperwidth]} \setupbackgrounds[page][background=chap

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
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

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
\startsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \resetlayer[chapCover] \setlayer [chapCover] {\determineheadnumber[chapter] \externalfigure [chap-cover-\currentheadnumber] [width=\paperwidth]} \setupbackgrounds[page][backgroun

Re: [NTG-context] bug in \headnumber[section] in LMTX?

2021-03-07 Thread Pablo Rodriguez
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

Re: [NTG-context] bug in \headnumber[section] in LMTX?

2021-03-07 Thread Wolfgang Schuster
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

Re: [NTG-context] Placing a section ending depending on odd/even sectionnumber

2020-08-05 Thread Willi Egger
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

Re: [NTG-context] Placing a section ending depending on odd/even sectionnumber

2020-08-04 Thread Wolfgang Schuster
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

Re: [NTG-context] Omitting part number in chapter numbers

2019-02-20 Thread Wolfgang Schuster
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

[NTG-context] Omitting part number in chapter numbers

2019-02-19 Thread Simon Collier
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)

Re: [NTG-context] \currentheadnumber does not work

2016-07-11 Thread Fabrice Couvreur
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

Re: [NTG-context] \currentheadnumber does not work

2016-07-10 Thread Fabrice Couvreur
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

Re: [NTG-context] \currentheadnumber does not work

2016-07-09 Thread Wolfgang Schuster
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=

Re: [NTG-context] \currentheadnumber does not work

2016-07-09 Thread Fabrice Couvreur
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

Re: [NTG-context] \currentheadnumber does not work

2016-07-09 Thread Wolfgang Schuster
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

Re: [NTG-context] section headings

2011-04-19 Thread Willi Egger
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

Re: [NTG-context] section headings

2011-04-18 Thread Herbert Voss
[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

[NTG-context] section headings

2011-04-09 Thread Herbert Voss
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

Re: [NTG-context] \stretched in chapter titles in MKII

2011-02-21 Thread Tom
; 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

Re: [NTG-context] \stretched in chapter titles in MKII

2010-07-06 Thread Tom
\define[1]\ChapterTextStretch {\line{\stretched{#1}}} \define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStr etch{Chapter \currentheadnumber}} \setuphead [chapter] [alternative=middle, textstyle=sansbold, numberstyle=sans, deeptextcommand

Re: [NTG-context] \stretched in chapter titles in MKII

2010-07-06 Thread Tom
\define[1]\ChapterTextStretch {\line{\stretched{#1}}} \define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStr etch{Chapter \currentheadnumber}} \setuphead [chapter] [alternative=middle, textstyle=sansbold, numberstyle=sans, deeptextcommand

Re: [NTG-context] \stretched in chapter titles in MKII

2010-07-06 Thread Wolfgang Schuster
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

[NTG-context] labels and new structure code

2009-06-04 Thread Thomas A. Schmitz
" 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,

[NTG-context] titles question

2009-03-11 Thread Alan Stone
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 _

Re: [NTG-context] Kerning

2008-11-13 Thread Bart C. Wise
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 >

Re: [NTG-context] Kerning

2008-11-13 Thread Wolfgang Schuster
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,

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
numbers] # \defineXMLargument # \defineXMLcommand # \defineXMLenvironment # \defineXMLenvironmentsave # \defineXMLgrouped # \defineXMLgsave # \defineXMLgstore # \defineXMLignore # \defineXMLnested # \defineXMLpickup # \defineXMLprocess # \defineXMLsave # \defineXMLsavecontent # \de

[NTG-context] presentation `s-pre-13' conflicts with `rsteps' module?

2007-09-25 Thread Ruini Xue
ed. \@@koSubjectsection \countervalue #1->\ifcsname #1 \endcsname \csname #1\endcsname \fi \determineheadnumber [EMAIL PROTECTED] {\@@sectie } }\egroup

[NTG-context] rsteps module conflicts with s-pre-13?

2007-09-23 Thread Ruini Xue
ed. \@@koSubjectsection \countervalue #1->\ifcsname #1 \endcsname \csname #1\endcsname \fi \determineheadnumber [EMAIL PROTECTED] {\@@sectie } }\egroup

[NTG-context] broken section number

2007-04-12 Thread Wolfgang Werners-Lucchini
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

Re: [NTG-context] using headnumber

2006-04-20 Thread Hans Hagen
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]}\

Re: [NTG-context] using headnumber

2006-04-20 Thread Sanjoy Mahajan
> 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.' --

Re: [NTG-context] using headnumber

2006-04-20 Thread Sanjoy Mahajan
> \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

Re: [NTG-context] using headnumber

2006-04-20 Thread Thomas A. Schmitz
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

Re: [NTG-context] using headnumber

2006-04-20 Thread Peter Rolf
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={{

[NTG-context] using headnumber

2006-04-20 Thread Thomas A. Schmitz
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