Removing Introduction section number
Hello, It might be 100 time this question appears on the list, but I cannot find the answer. I need Introduction to have no number, and next section to have number 1, so on. My current solution gives me number 2, instead. Please, look what should be done with my code: \starttext \setupindenting[yes, big, first] \setupheads[indentnext=yes] \setupfloats[indentnext=yes] \setuphead[section][number=no] \section{INTRODUCTION} % should have no number The syllabus on each discipline is a must for successful teaching process organization according to the European Credit Transfer System. Teachers and students are to be familiarized with it. Grading system is an integral part of the syllabus and provides for assessment of student’s knowledge and skills during current, module and semester checks. Grading procedure is performed according to the national grading scale and European Credit Transfer System grading scale. \setuphead[section][number=yes] \section{REFERENCE NOTES} % should have number 1 \subsection{Aim of the discipline} % 1.1 \subsection{Tasks for learning the discipline} % 1.2 \section{DISCIPLINE CONTENT} % should have number 2 ... \stoptext
Am 06.06.10 22:57, schrieb Vyatcheslav Yatskovsky:
Hello,
It might be 100 time this question appears on the list, but I cannot find the answer.
I need Introduction to have no number, and next section to have number 1, so on. My current solution gives me number 2, instead.
1. Use \subject for the introduction. 2. Use ConTeXt’s document strcuture: \setuphead[section][textstyle=WORD] \starttext \startfrontmatter \section{Introduction} ... \stopfrontmatter \startbodymatter \section{Reference notes} ... \stopbodymatter \stoptext Wolfgang
Interesting, when I set any property of a section, the subsections and subsubsections are affected too. This is not bad, but is there a key to disable such a propagation? In the following example I need to turn off textstyle and restore align: \setuphead[section][textstyle=WORD, style={\bfa}, align=center] \setuphead[subsection][textstyle={}, style={\bf}, align=right] Regards, Vyatcheslav
Am 06.06.10 23:39, schrieb Vyatcheslav Yatskovsky:
Interesting, when I set any property of a section, the subsections and subsubsections are affected too. This is not bad, but is there a key to disable such a propagation?
In the following example I need to turn off textstyle and restore align:
\setuphead[section][textstyle=WORD, style={\bfa}, align=center] \setuphead[subsection][textstyle={}, style={\bf}, align=right]
Not untill Hans change the parameter handling in the section code, currently parts use the global settings from \setupheads, chapter the settings from \part etc. When you make a example you will notice that \subsubsection use the values from your \subsection setup for style and alignment. Wolfgang
Thanks, current state of affairs is not bad (maybe even better then not-propagating alternative), but it's always good to have another option, like \setuphead[section][textstyle=WORD, style={\bfa}, align=center, propagate=no] \setuphead[subsection][style={\bf}] :) Another question - I try to make a macro for a "filled in" date. Empty date is ok \def \FillInDate {"\hl[2]"\hl[4]\hskip1mm 20\hl[2]\hskip.5mm} \starttext \FillInDate \stoptext But my printing date "under lines" is a mess. In particular, I want to add a bit more space around numbers, but anything I do, the space is not underlined for some strange reason. In contrary, month and year are glued together, while I want them to be separated by space. \def \FilledDate#1#2#3 {"\underbar{ #1 }"\hskip5mm\underbar{#2}\hskip5mm \underbar{#3}\hskip.5mm} \starttext \FilledDate{06}{05}{2010} \stoptext -- Best Regards, Vyatcheslav Yatskovsky
On 7-6-2010 12:17, Vyatcheslav Yatskovsky wrote:
Thanks, current state of affairs is not bad (maybe even better then not-propagating alternative), but it's always good to have another option, like
\setuphead[section][textstyle=WORD, style={\bfa}, align=center, propagate=no] \setuphead[subsection][style={\bf}]
you can try parent= but it might break other propagation ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hello, I'm still in need of help with numberless sections. While using front, body,and back matter sounds goos, but it makes new pages. \subject is perfect, but it does not appear in contents. Most simple (if there is no other options) seems to use \subject, but add it to the TOC. How can I do it? -- Best Regards, Vyatcheslav Yatskovsky
Vyatcheslav Yatskovsky wrote:
Hello,
I'm still in need of help with numberless sections.
While using front, body,and back matter sounds goos, but it makes new pages. \subject is perfect, but it does not appear in contents.
Most simple (if there is no other options) seems to use \subject, but add it to the TOC. How can I do it?
Use \writetolist, maybe: \subject{Whatever} \writelist[section]{}{Whatever} Best wishes, Taco
Am 13.06.10 22:03, schrieb Vyatcheslav Yatskovsky:
Hello,
I'm still in need of help with numberless sections.
While using front, body,and back matter sounds goos, but it makes new pages. \subject is perfect, but it does not appear in contents.
Most simple (if there is no other options) seems to use \subject, but add it to the TOC. How can I do it?
\setuphead[subject][incrementnumber=list] and \placelist[chapter,section,subject,...] Wolfgang
Thank you all for help. Actually, I most like front/body matter without page breaks, because it further structures the text (the thing I adore in TeX). -- Best Regards, Vyatcheslav Yatskovsky
Vyatcheslav Yatskovsky wrote: > Hello, > > It might be 100 time this question appears on the list, but I cannot > find the answer. > > I need Introduction to have no number, and next section to have number > 1, so on. My current solution gives me number 2, instead. There are two cases: 1. You want Introduction in the table of contents. Then you should copy section to another head, and setup it with number=no (have no time to test): \definehead[secnonum][section] \setuphead[secnonum][number=no] \secnonum{Introduction} 2. You don't want Intruduction in the table of contents. Then just use \subject{Introduction}.
On Sunday 06 June 2010 23:20:29 Yury G. Kudryashov wrote:
1. You want Introduction in the table of contents. Then you should copy section to another head, and setup it with number=no (have no time to test):
\definehead[secnonum][section] \setuphead[secnonum][number=no] \secnonum{Introduction}
This is flexible, but is this really elegant? Would it not be better (i.e. intuitive) to be able to simply type: \section [number=no] {Introduction} After all, one feature that I *really* like about ConTeXt is inheritance and default options that can be fixed through \setupsomething, or through a case by case basis. Unnumbered sections is the default within \startfrontmatter \stopfrontmatter However, it is quite logical to also have unnumbered Introduction (and Conclusions) in the body of the work that are to appear in the table of contents as well. In a work using \part, the same can apply to \chapter. Alan
participants (6)
-
Alan BRASLAU
-
Hans Hagen
-
Taco Hoekwater
-
Vyatcheslav Yatskovsky
-
Wolfgang Schuster
-
Yury G. Kudryashov