Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Hans Hagen via ntg-context
roman numerals prefixed sections, but starting from Zero and not One (even if I know that roman numerals don't have a sign for 0). Is there a way to achieve this? My code looks like that at the moment: ### \setuphead[section][conversion=Romannumerals] \starttext \setupheadnumber[section] [-1

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Alex Leray via ntg-context
a sign for 0). Is there a way to achieve this? My code looks like that at the moment: ### \setuphead[section][conversion=Romannumerals] \starttext \setupheadnumber[section] [-1] \startsection[title={Section zero}]\stopsection \startsection[title={Section one}]\stopsection \stoptext ### Thank you

[NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Alex Leray via ntg-context
\setupheadnumber[section] [-1] \startsection[title={Section zero}]\stopsection \startsection[title={Section one}]\stopsection \stoptext ### Thank you, Alex ___ If your question is of interest to others as well, please

Re: [NTG-context] numbering questions

2022-12-31 Thread Henning Hraban Ramm via ntg-context
ero”) and let ConTeXt continue from there? \setupheadnumber[chapter][3] % will start with 4 Thank you, that works. I hope it helps. »Einen guten Rutsch ins Neujahr!« Dito! (In proper German that would be just “Guten Rutsch” or “Guten Rutsch ins neue Jahr”; Neujahr ist just the name of t

Re: [NTG-context] numbering questions

2022-12-31 Thread Pablo Rodriguez via ntg-context
scheme. Itemize has “start”. How can I start > section chapter numbering at 3 (or -1 or whatever; I know I can start at > 0 with “zero”) and let ConTeXt continue from there? \setupheadnumber[chapter][3] % will start with 4 I hope it helps. »Einen guten R

Re: [NTG-context] Structure: multi-volume products

2022-12-16 Thread Richard Mahoney | Indica et Buddhica via ntg-context
lume is presently a separate *product* in the project structure. I presently set the counters in the second volume using: \setupheadnumber   [part] [2] \setupheadnumber   [chapter] [5] (I have multiple [5] parts in the project, and the first volume ends with part 2 and chapter 5.)

Re: [NTG-context] Structure: multi-volume products

2022-12-16 Thread Denis Maier via ntg-context
structure. > I presently set the counters in the second volume using: > > \setupheadnumber > [part] [2] > > \setupheadnumber > [chapter] [5] > > (I have multiple [5] parts in the project, and the first volume ends with > part 2 > and chapter 5.) > > >

[NTG-context] Structure: multi-volume products

2022-12-15 Thread Alan Braslau via ntg-context
Hello, I have a book project that is being cut into two volumes (because it is too long and will be sold as a boxed set). Each volume is presently a separate *product* in the project structure. I presently set the counters in the second volume using: \setupheadnumber [part] [2

Re: [NTG-context] Counter names

2022-01-20 Thread Hans Hagen via ntg-context
accessible \starttext \chapter{test} \setupheadnumber[chapter][+5] \placefigure{}{} \chapter{test} \placefigure{}{} \setcounter[figure][4] \placefigure{}{} \stoptext chemical combination endnote figure footnote formula graphic intermezzo itemgroup:itemize itemgroup:itemize:note linenote paragrap

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
r=10,title=???] % ownnumber doesn’t work \startplacefigure[title=Test,ownnumber=10] \externalfigure[dummy] \stopplacefigure \stopsection \setcounter[section][5] % doesn’t work \setupheadnumber[section][5] \startsection[title=Three] \startitemize[n] \item one \item two \item three \startitem

Re: [NTG-context] Increment the section counter

2017-09-14 Thread Procházka Lukáš Ing .
ction][ownnumber=yes] \section{0}{Zero} \subsection{SSecA} \setupheadnumber[section][0] \egroup % \section{Sec} \subsection{SSecB} \section{Sec2} \stoptext Best regards, Lukas On Tue, 12 Sep 2017 19:59:30 +0200, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrot

Re: [NTG-context] Increment the section counter

2017-09-12 Thread Rik Kabel
query at https://www.mail-archive.com/ntg-context@ntg.nl/msg78173.html, and see the relevant wiki pages at setupheadnumber <http://wiki.contextgarden.net/Command/setupheadnumber> and definehead <http://wiki.contextgarden.net/Command/definehead&g

[NTG-context] \xmldoifelse false condition

2017-04-14 Thread Gerard Keiser
) 4 Fourth Section (second match, but fourth element in the XML file) But the fail condition is not being triggered properly. Here are the files: % % anthologize.xml % \def\incrementheadnumber[#1]{\setupheadnumber[#1] [\numexpr\namedheadnumber{#1}+1\relax]} \startxmlsetups

Re: [NTG-context] Set Contents

2016-07-13 Thread Fabrice Couvreur
Hi Wolfgang, thank you for the answer (There is much to know !). I would also have this: > > I First chapter >Activity >1.1 Second section >1.2 Third section \setupheadnumber[section][0] Fabrice 2016-07-13 18:20 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmai

Re: [NTG-context] \setupheadnumber and zero

2015-09-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
r 0 (or less)? Sometimes I need to prepend a section while keeping existing section head numbers... Example: \starttext \setupheadnumber[chapter][-1] \chapter{Ch0} % Getting "Ch0" instead of "0. Ch0"? \chapter{Ch1} \stoptext Here, "0. Ch0" is not generated,

Re: [NTG-context] \setupheadnumber and zero

2015-09-08 Thread Wolfgang Schuster
Procházka Lukáš Ing. - Pontex s. r. o. <mailto:l...@pontex.cz> 29. August 2015 16:11 Hello, can a section head be generated with the number 0 (or less)? Sometimes I need to prepend a section while keeping existing section head numbers... Example: \starttext \setupheadnumber[c

[NTG-context] \setupheadnumber and zero

2015-08-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, can a section head be generated with the number 0 (or less)? Sometimes I need to prepend a section while keeping existing section head numbers... Example: \starttext \setupheadnumber[chapter][-1] \chapter{Ch0} % Getting Ch0 instead of 0. Ch0? \chapter{Ch1} \stoptext

Re: [NTG-context] Hidden chapter header? ... was: Change counter of chapters

2015-04-18 Thread Jaroslav Hajtmar
[hiddenchapter][chapter] \setuphead[hiddenchapter][placehead=no] But there is a proper way to set the chapter number: \setupheadnumber[chapter][56] % +2 or -5 also accepted By the way, going from ConTeXt to Word you know you are on the road to perdition, don’t you? ;-) I hope it helps

Re: [NTG-context] Hidden chapter header? ... was: Change counter of chapters

2015-04-18 Thread Pablo Rodriguez
[hiddenchapter][placehead=no] But there is a proper way to set the chapter number: \setupheadnumber[chapter][56] % +2 or -5 also accepted By the way, going from ConTeXt to Word you know you are on the road to perdition, don’t you? ;-) I hope it helps, Pablo Here is my minimal example

Re: [NTG-context] enumeration with the Spanish alphabet

2014-11-17 Thread Pablo Rodriguez
] [part,chapter,section] \setupinteractionscreen[option=bookmark] \setupheads[sectionconversionset=sectionnumbers] \setuphead[part][placehead=yes, page=] \setuphead[chapter][page=] \starttext \setupheadnumber[part][13] \setupheadnumber[chapter][13] \setupheadnumber[section

Re: [NTG-context] enumeration with the Spanish alphabet

2014-11-12 Thread Pablo Rodriguez
] \definestructureconversionset[sectionnumbers] [0,n,a][n] \setupheads[sectionconversionset=sectionnumbers] \setuplist[section][alternative=d] \starttext \placelist[section][criterium=all] \dorecurse{20}{\section{section}} \es\setupheadnumber[section][0] \dorecurse

Re: [NTG-context] ToC - right-alignment of roman numerals

2013-11-25 Thread Jan Tosovsky
, width=1cm] Thanks for this alternative, but I am getting something different. Desired output can be produced with this code: \setuphead[chapter][conversion=Romannumerals] %\setupheadnumber[chapter][48] % this is ignored when a preface is defined \setupcombinedlist[content][alternative=c

Re: [NTG-context] ToC - right-alignment of roman numerals

2013-11-18 Thread Jan Tosovsky
list, not the content list, see example \setuphead[chapter][conversion=Romannumerals] \setupheadnumber[chapter][48] \setupcombinedlist [content] [alternative=c] \setupcombinedlist [chapter] [distance=1em, width=1cm, numbercommand={\simplealignedbox

Re: [NTG-context] ToC - right-alignment of roman numerals

2013-11-17 Thread Jan Tosovsky
\setuphead[chapter][conversion=Romannumerals] \setupheadnumber[chapter][48] \setupcombinedlist [content] [alternative=c] \setupcombinedlist [chapter] [distance=1em, width=1cm, numbercommand={\simplealignedbox{\listparameter{width}}{flushright}} ] \starttext

[NTG-context] textreference in a protocol (minutes)

2013-11-11 Thread Joshua Krämer
\def\Agendasection#1% {% \Agendaentrynr=#1% \advance\Agendaentrynr -1\relax \setupheadnumber[section][\the\Agendaentrynr]% \section{\about[Agendaentry#1]}% } \starttext Agenda \startitemize \Agendaentry{4}{Berichte des Vorsitzers, des Schatzmeisters und des

Re: [NTG-context] How to test the emptyness of a variable?

2013-11-10 Thread Géry Ogam
} \chapter{Mouse} \setuplabeltext[chapter=CHAPTER~] \setupheadnumber[chapter][0] \chapter{Cool} \chapter{Cat} \chapter{Mouse} \stoptext ___ If your question is of interest to others as well, please add

Re: [NTG-context] Numbering sections

2013-09-02 Thread Wolfgang Schuster
with the number n (not 1, as default)? E.g. with n=0 or n=2? To start chapters with a larger number you have to add \setupheadnumber[chapter][n-1] to your document, when the first chapter should start with 0 you need a conversion which prints always 1 less than the real number. \defineexpandable[1

[NTG-context] ToC - right-alignment of roman numerals

2013-06-03 Thread honyk
=Romannumerals] \setupheadnumber[chapter][48] \setupcombinedlist[content][ alternative=c, distance=1em, width=3cm, ] \starttext \completecontent \chapter{Foo} \chapter{Bar} \stoptext Here is the link with several screenshots of desired formatting: http

Re: [NTG-context] ToC - right-alignment of roman numerals

2013-06-03 Thread Marco Patzer
On 2013–06–03 honyk wrote: in fresh MkIV I use the following commands for building ToC, but I have no idea how to align the label (roman numeral) to the right. \setuphead[chapter][conversion=Romannumerals] \setupheadnumber[chapter][48] \setupcombinedlist [content] [alternative=c

Re: [NTG-context] ToC - right-alignment of roman numerals

2013-06-03 Thread honyk
This is great! Thanks On 2013–06–03 honyk wrote: in fresh MkIV I use the following commands for building ToC, but I have no idea how to align the label (roman numeral) to the right. \setuphead[chapter][conversion=Romannumerals] \setupheadnumber[chapter][48] \setupcombinedlist

Re: [NTG-context] setuppagenumber--start at page xy

2013-04-22 Thread Wolfgang Schuster
, the number option for \setuppagenumber is gone and you have to use \setupcounter. Even though this breaks backward compatibility it’s now constant with \setupheadnumber which is used to change the start value for sections. Wolfgang

Re: [NTG-context] setuppagenumber--start at page xy

2013-04-22 Thread Jörg Hagmann
Wolfgang Schuster writes: Yes, the number option for \setuppagenumber is gone and you have to use \setupcounter. Even though this breaks backward compatibility it’s now constant with \setupheadnumber which is used to change the start value for sections. Thank you, Wolfgang. I added

Re: [NTG-context] structure: project, product, structureresetset, ...

2013-03-25 Thread Wolfgang Schuster
into a single product having a unique front and back matter and all of the appendices at the end... It should be simple, but sometimes I fail to see the obvious! :) \startsectionblockenvironment[bodypart] \setupheadnumber[chapter][6] \stopsectionblockenvironment \startsectionblockenvironment

[NTG-context] View all numbers of sub(...)section

2012-09-15 Thread Jaroslav Hajtmar
document) Thanx Jaroslav Hajtmar Here is my example: \setupheadnumber[section][2] \setupheadnumber[subsection][3] % \setupheadnumber[subsubsection][4] % \setuppagenumber[number=234] \starttext %\section{} % I can't view section here %\subsection{} % I can't view subsection here too

Re: [NTG-context] View all numbers of sub(...)section

2012-09-15 Thread Wolfgang Schuster
a separate section number from a certain number (inserted into an existing document) Thanx Jaroslav Hajtmar Here is my example: \setupheadnumber[section][2] \setupheadnumber[subsection][3] % \setupheadnumber[subsubsection][4] % \setuppagenumber[number=234] \starttext %\section

Re: [NTG-context] View all numbers of sub(...)section

2012-09-15 Thread Jaroslav Hajtmar
number from a certain number (inserted into an existing document) Thanx Jaroslav Hajtmar Here is my example: \setupheadnumber[section][2] \setupheadnumber[subsection][3] % \setupheadnumber[subsubsection][4] % \setuppagenumber[number=234] \starttext %\section{} % I can't view section here

Re: [NTG-context] View all numbers of sub(...)section

2012-09-15 Thread Sietse Brouwer
example: \setupheadnumber[section][2] \setupheadnumber[subsection][3] % \setupheadnumber[subsubsection][4] % \setuppagenumber[number=234] \starttext %\section{} % I can't view section here %\subsection{} % I can't view subsection here too \subsubsection{TEST} I would like get 2.3.5

Re: [NTG-context] View all numbers of sub(...)section

2012-09-15 Thread Jaroslav Hajtmar
: \setupheadnumber[section][2] \setupheadnumber[subsection][3] % \setupheadnumber[subsubsection][4] % \setuppagenumber[number=234] \starttext %\section{} % I can't view section here %\subsection{} % I can't view subsection here too \subsubsection{TEST} I would like get 2.3.5 TEST blablabla \stoptext

Re: [NTG-context] View all numbers of sub(...)section

2012-09-15 Thread Jaroslav Hajtmar
and also subsection number) without \section{} and \subsection{} command using previously? I need to start a separate section number from a certain number (inserted into an existing document) Thanx Jaroslav Hajtmar Here is my example: \setupheadnumber[section][2] \setupheadnumber[subsection][3

Re: [NTG-context] View all numbers of sub(...)section

2012-09-15 Thread Aditya Mahajan
Hajtmar Here is my example: \setupheadnumber[section][2] \setupheadnumber[subsection][3] % \setupheadnumber[subsubsection][4] % \setuppagenumber[number=234] \starttext %\section{} % I can't view section here %\subsection{} % I can't view subsection here too \subsubsection{TEST} I would like get

Re: [NTG-context] View all numbers of sub(...)section

2012-09-15 Thread Jaroslav Hajtmar
with section and also subsection number) without \section{} and \subsection{} command using previously? I need to start a separate section number from a certain number (inserted into an existing document) Thanx Jaroslav Hajtmar Here is my example: \setupheadnumber[section][2] \setupheadnumber

[NTG-context] chapter please ignore part

2011-11-08 Thread Idris Samawi Hamid ادريس سماوي حامد
=no, ownnumber=no] \setuphead[chapter][continue=yes, header=empty, %ownnumber=yes] Of course there is the workaround: \setupheadnumber[chapter][2] But I'd like to know if there is an automated way. Any advice appreciated

Re: [NTG-context] chapter please ignore part

2011-11-08 Thread Wolfgang Schuster
: \setupheadnumber[chapter][2] But I'd like to know if there is an automated way. \definestructureresetset[continue][0,0][1] \setuphead[sectionresetset=continue] %\setuphead[sectionresetset=continue,sectionsegments=chapter:*] \starttext \part{Foo} \chapter{One} \chapter{Two} \par{Moo

Re: [NTG-context] Am not getting Roman numeral page numbers in MKIV

2011-03-11 Thread Tom
\input knuth \completecontent[alternative=c,criterium=all] \chapter{Preface} \input knuth \stopfrontmatter \startbodymatter \intro{Introduction} \input knuth \setupheadnumber[chapter][0] %resets first chapter number to 1 \setuppagenumbering [state=start, conversion=numbers, location

[NTG-context] Am not getting Roman numeral page numbers in MKIV

2011-03-10 Thread Tom
\startbodymatter \setuppagenumber[state=start,conversion=number,number=1] \intro{Introduction} \input knuth \setupheadnumber[chapter][0] %resets first chapter number to 1 \chapter{I Was Born} \input knuth \chapter{I Observe} \input knuth \stopbodymatter \startbackmatter \stopbackmatter \stoptext Tom

[NTG-context] Roman numeral page numbers produced in MKII

2011-03-10 Thread Tom
=start,conversion=number,number=1] \intro{Introduction} \input knuth \setupheadnumber[chapter][0] %resets first chapter number to 1 \setuppagenumbering [state=start, conversion=numbers, location=bottom] \chapter{I Was Born} \input knuth \chapter{I Observe} \input knuth \stopbodymatter

Re: [NTG-context] Setting starting chapter number

2011-02-23 Thread Tom
the right one. http://wiki.contextgarden.net/Reference/en/setupheadnumber Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

Re: [NTG-context] Setting starting chapter number

2011-02-22 Thread Wolfgang Schuster
/Reference/en/setupheadnumber 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

Re: [NTG-context] Fwd: Re: xml-processing: missing or ungrouped '='

2011-01-09 Thread Achim Jander
=no] \startchapter[title={\xmlatt{#1}{title}}] \xmlflush{#1} \stopchapter} {\setuphead[chapter][number=yes] \setupheadnumber[chapter][\xmlatt{#1}{num}] \startchapter[title={\xmlatt{#1}{title}}] \xmlflush{#1} \stopchapter} \stopxmlsetups \starttext \xmlprocessbuffer{main}{test

Re: [NTG-context] Fwd: Re: xml-processing: missing or ungrouped '='

2011-01-08 Thread Thomas A. Schmitz
][number=no] \startchapter[title={\xmlatt{#1}{title}}] \xmlflush{#1} \stopchapter} {\setuphead[chapter][number=yes] \setupheadnumber[chapter][\xmlatt{#1}{num}] \startchapter[title={\xmlatt{#1}{title}}] \xmlflush{#1} \stopchapter} \stopxmlsetups \starttext \xmlprocessbuffer{main

Re: [NTG-context] Numbering chapters from an arbitrary number

2010-11-16 Thread Herbert Voss
--- So it seems I'd need to reset an internal counter... The question remains. \starttext \setupheadnumber[chapter][2] \chapter{foo} bar \chapter{bar} baz \stoptext Herbert ___ If your question is of interest

Re: [NTG-context] Numbering chapters from an arbitrary number

2010-11-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... How easy! Thanks. Lukas \setupheadnumber[chapter][2] \chapter{foo} bar \chapter{bar} baz \stoptext Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] a few questions

2009-11-13 Thread Vyatcheslav Yatskovsky
, prefixconnector=.] For third question, I already found the answer in the manual: \setupheadnumber[section][1] %The next section will have number 2 Concerning my first question how to setup itemization so that the first line were indented too? -- I disappointed very much because nobody can

[NTG-context] misprint in cont-eni manual

2009-11-12 Thread Vyatcheslav Yatskovsky
Hi, Looks like I found a misprint in cont-eni manual. On page 178, \setuphead[chapter][+1] should be \setupheadnumber[chapter][+1] Regards, Vyatcheslav ___ If your question is of interest to others as well, please

[NTG-context] sections in mkiv

2009-07-18 Thread Mojca Miklavec
Hello, out of curiosity I have tried the latest current. Is the command \setupheadnumber[section][6] now invalid on purpose or is there a simple way to fix it? One more problem: \setuphead[section][textstyle=\ss\bfc] % combined with numbercommand= \setuphead[subsection][style=\ss\bfb

Re: [NTG-context] sections in mkiv

2009-07-18 Thread Hans Hagen
Mojca Miklavec wrote: Hello, out of curiosity I have tried the latest current. Is the command \setupheadnumber[section][6] now invalid on purpose or is there a simple way to fix it? i dunno, i see the command but never tested if it works (might not be adapted to some changes); do you

Re: [NTG-context] sections in mkiv

2009-07-18 Thread Mojca Miklavec
On Sat, Jul 18, 2009 at 11:45, Hans Hagen wrote: Mojca Miklavec wrote: Hello, out of curiosity I have tried the latest current. Is the command    \setupheadnumber[section][6] now invalid on purpose or is there a simple way to fix it? i dunno, i see the command but never tested if it works

Re: [NTG-context] button question

2008-09-08 Thread Wolfgang Schuster
On Mon, Sep 8, 2008 at 2:39 PM, Alan Stone [EMAIL PROTECTED] wrote: From setup-en.pdf ... What is \nextSECTION ? Nothing for users, use \setupheadnumber instead. \starttext \section{One} \getvalue{nextsection-3} \section{Three} \stoptext \starttext \section{One} \setupheadnumber[section][+1

Re: [NTG-context] Overriding a chapter number

2008-07-29 Thread Mojca Miklavec
\setupheadnumber. \chapter[h:foo]{Foo} But the chapter still gets number 1 when I compile with texexec --pdf --mode=standalone c_foo.tex what am I doing wrong here? Mojca ___ If your question is of interest to others

Re: [NTG-context] Overriding a chapter number

2008-07-29 Thread Hans Hagen
Gerben Wierda wrote: When I compile a chapter of a book separately, I want to override the automatic numbering because otherwise every separate pdf will have chapter 1. So I tried: \doifmode{standalone}{\setuphead[chapter][2]} \setupheadnumber

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
|pagenumber] \setupheadnumber[section][number|+number|-number] \setupheads[options] \setupheadtext[language code][name=text] \setuphyphenmark[sign=-|--|---|( )|=|/] \setupindentations[names][options] \setupindenting[none|small|medium|big|next|first|normal|odd|even|dimension] \setupinmargin[left|right|number

Re: [NTG-context] something like \setnumber[chapter]{0}

2007-06-06 Thread Steffen Wolfrum
Hi Duncan, thanks for help! On Wed, 06 Jun 2007 08:07:43 +0100, Duncan Hothersall wrote: Hi Steffen: Hi, I am looking for a number-reset-command for sections, comparable to \setnumber[footnote]{0} \setupheadnumber[chapter][0] Jesus ... this combination would never ever come to my

Re: [NTG-context] something like \setnumber[chapter]{0}

2007-06-06 Thread Wolfgang Schuster
2007/6/6, Steffen Wolfrum [EMAIL PROTECTED]: Hi Duncan, thanks for help! On Wed, 06 Jun 2007 08:07:43 +0100, Duncan Hothersall wrote: Hi Steffen: Hi, I am looking for a number-reset-command for sections, comparable to \setnumber[footnote]{0} \setupheadnumber[chapter][0

Re: [NTG-context] something like \setnumber[chapter]{0}

2007-06-06 Thread Steffen Wolfrum
to \setnumber[footnote]{0} \setupheadnumber[chapter][0] Jesus ... this combination would never ever come to my mind. How do you know that it is ... \setnumber[footnote]{0} % with braces \setupheadnumber[chapter][0] % with square brackets?? I think he looked into the source, ... I also

Re: [NTG-context] something like \setnumber[chapter]{0}

2007-06-06 Thread Wolfgang Schuster
-reset-command for sections, comparable to \setnumber[footnote]{0} \setupheadnumber[chapter][0] Jesus ... this combination would never ever come to my mind. How do you know that it is ... \setnumber[footnote]{0} % with braces \setupheadnumber[chapter][0] % with square brackets

Re: [NTG-context] section headnumber at texexec

2006-08-10 Thread Hans Hagen
} {\setupheadnumber[section][\numexpr\env{sectionnumber}-1\relax]} {} \starttext \section{test} \stoptext === end of d === texexec --arg=sectionnumber=4 d if needed you can do in an environment file \startsetups check-section \doifenvelse{sectionnumber} {\setupheadnumber[section][\numexpr\env

Re: [NTG-context] several questions

2006-07-31 Thread Taco Hoekwater
Jorge Manuel de Almeida Magalhães wrote: 2. Did you know how to force the section number to start in the number 0, not in 1 (default)? That took some experimenting: \setuphead[section][chapternumber=yes] \setuphead[chapter][after={\setupheadnumber[section][-1]}] Cheers, Taco

[NTG-context] Setting to help with overflow in Metapost

2006-07-22 Thread dwarnold45
/chapter5 \usemodule[newmat] \usemodule[math=ext] \usemodule[fig-base] \usefigurebase[figures/figlibSection1] \setupheadnumber[chapter][6] \setupheadnumber[section][1] \def\qor{\quad\text{or}\quad} \def\qqor{\qquad\text{or}\qquad} \def\qand{\quad\text{and}\quad} \def\qqand{\qquad\text{and}\qquad

[NTG-context] Losing Chapter Number

2006-07-18 Thread David Arnold
=50pt, width=middle, header=40pt, footer=40pt, height=middle] \setupheadertexts [] [\headermarkright] [\headermarkleft] [] \setuppagenumbering [state=start, alternative=doublesided, location=, way=bytext] \setupheadnumber[chapter][-1

Re: [NTG-context] Losing Chapter Number

2006-07-18 Thread Taco Hoekwater
David Arnold wrote: Hans et al, Why do we lose the chapter number in headers (and other places) with this: Because of this: \setupheadnumber[chapter][-1] \headnumber contains an explicit test that surpresses the output if the number is zero. Taco

Re: [NTG-context] Disappearing chapter numbers

2006-07-12 Thread Hans Hagen
David Arnold wrote: All, We are wondering why we don't get a chapter number in our header in what follows. However, if we change \setupheadnumber[chapter][-1] \setupheadnumber[chapter][0], we do get a chapter number in the running head. this is probably related to page breaks (works

[NTG-context] Disappearing chapter numbers

2006-07-11 Thread David Arnold
All, We are wondering why we don't get a chapter number in our header in what follows. However, if we change \setupheadnumber[chapter][-1] \setupheadnumber[chapter][0], we do get a chapter number in the running head. \setupheadnumber[chapter][0] \setupwhitespace[medium] \setupindenting

Re: [NTG-context] Numbering

2006-07-07 Thread Mojca Miklavec
] % or \setupfloat[figure][...] \setupfloats [way=bysection, location=top, align=right] \setupformulas [way=bysection] % after={\setupheadnumber[subsection][+1]}, \starttext \section{First section} \definition{} \placeformula \startformula f(x)=3x+2 \stopformula

Re: [NTG-context] sectionnumber conversion redux

2006-06-28 Thread Taco Hoekwater
][partnumber=no] \starttext \startbodymatter \placecontent \part{I}{Body} \chapter{The Body Stuff} \stopbodymatter \startappendices \setupheadnumber[part][+] \part{II}{Appendices} \chapter{Appendix} \stopappendices \stoptext

[NTG-context] sectionnumber conversion redux

2006-06-27 Thread Idris Samawi Hamid
=no] %\setuppagenumbering[way=bytext,partnumber=no] %\setupcombinedlist[content][partnumber=no] \starttext \startbodymatter \placecontent \part{I}{Body} \chapter{The Body Stuff} \stopbodymatter \startappendices \setupheadnumber[part][+] \part{II}{Appendices} \chapter{Appendix} \stopappendices \stoptext

[NTG-context] continuous numbering of subsection

2006-06-25 Thread Ulf Martin
of the LaTeX equivalent to counters (their definition, incrementing, resetting, etc.). The explanation of \setupheadnumber in the manual (p. 172) is quite obscure to me -- how do I specify that I do not want higher levels of head to reset my numbering? Thank you! Ulf Martin

Re: [NTG-context] continuous numbering of subsection

2006-06-25 Thread Hans Hagen
an explanation of the handling of the LaTeX equivalent to counters (their definition, incrementing, resetting, etc.). The explanation of \setupheadnumber in the manual (p. 172) is quite obscure to me -- how do I specify that I do not want higher levels of head to reset my numbering? i

[NTG-context] sectionnumber conversion

2006-06-20 Thread Idris Samawi Hamid
} \chapter{The Body Stuff} \stopbodymatter \startappendices \setupheadnumber[part][+] \part{II}{Appendices} \chapter{Appendix} \stopappendices \stoptext == -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort

Re: [NTG-context] components and figure search paths

2006-05-10 Thread David Arnold
chapter0 \project book \startbodymatter \setupheadnumber[chapter][-1] \chapter[chap:0]{Preliminaries} \component chapter0/section1 %Number Systems \component chapter0/section2 %Logic \stopbodymatter \stopproduct And the beginning lines in section1.tex look like this: \startcomponent section1

Re: [NTG-context] Duplicate names in figure libraries

2006-05-03 Thread Willi Egger
$. This is a vertical asymptote of the graph.} {\externalfigure[rat1]} All is fine if I compile section1.tex and section2.tex separately. But I have chapter6.tex with: \startproduct chapter6 \project book \startbodymatter \setupheadnumber[chapter][5] \chapter[chap:6]{Rational Functions} \component

[NTG-context] Duplicate names in figure libraries

2006-05-01 Thread David Arnold
. But I have chapter6.tex with: \startproduct chapter6 \project book \startbodymatter \setupheadnumber[chapter][5] \chapter[chap:6]{Rational Functions} \component chapter6/section1 %Introducing Rational Functions \component chapter6/section2 %Zeros and Asymptotes \stopbodymatter \stopproduct

[NTG-context] Figure Libraries

2006-04-02 Thread David Arnold
All, I have chapter1.tex: \startproduct chapter1 \project book \startbodymatter \setupheadnumber[chapter][0] \chapter[chap:1]{Functions} \component chapter1/section1 \component chapter1/section2 \component chapter1/section3 \component chapter1/section4 \stopbodymatter \stopproduct

Re: [NTG-context] setupheadnumber loses table of contents

2005-12-22 Thread Taco Hoekwater
David Arnold wrote: All, in the following example, if I uncomment %\setupheadnumber[chapter][2] then I lose my table of contents. Should that be happening? It work ok if you use: \completecontent[criterium=all] but I'm unsure whether or not the disappearance was intentional Taco

[NTG-context] setupheadnumber loses table of contents

2005-12-21 Thread David Arnold
All, in the following example, if I uncomment %\setupheadnumber[chapter][2] then I lose my table of contents. Should that be happening? % output=pdf \setupcaptions [location=bottom,width=fit,align=right,headstyle=bold,style=slanted] \setupcaption [figure] [way=bysection] %\setupheadnumber

RE: [NTG-context] bug in \setuphead?

2005-04-19 Thread Idris Samawi Hamid
but, as usual, I must be missing the obvious again-) === % output=pdf interface=en \definehead[appendix][section] \setuphead [appendix][continue=no] \setupheadnumber [appendix][1] \setuplabeltext[appendix=Appendix~] \starttext \section{Test} \appendix