ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Removing Introduction section number
       [not found] <mailman.1477.1275853449.4277.ntg-context@ntg.nl>
@ 2010-06-06 20:57 ` Vyatcheslav Yatskovsky
  2010-06-06 21:15   ` Wolfgang Schuster
  2010-06-06 21:20   ` Yury G. Kudryashov
  0 siblings, 2 replies; 12+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-06-06 20:57 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
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://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Removing Introduction section number
  2010-06-06 20:57 ` Removing Introduction section number Vyatcheslav Yatskovsky
@ 2010-06-06 21:15   ` Wolfgang Schuster
  2010-06-06 21:39     ` How to not propagate head settings? Vyatcheslav Yatskovsky
  2010-06-13 20:03     ` Removing Introduction section number Vyatcheslav Yatskovsky
  2010-06-06 21:20   ` Yury G. Kudryashov
  1 sibling, 2 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2010-06-06 21:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Vyatcheslav Yatskovsky

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

___________________________________________________________________________________
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://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Removing Introduction section number
  2010-06-06 20:57 ` Removing Introduction section number Vyatcheslav Yatskovsky
  2010-06-06 21:15   ` Wolfgang Schuster
@ 2010-06-06 21:20   ` Yury G. Kudryashov
  2010-06-06 21:46     ` Alan BRASLAU
  1 sibling, 1 reply; 12+ messages in thread
From: Yury G. Kudryashov @ 2010-06-06 21:20 UTC (permalink / raw)
  To: ntg-context

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}.

___________________________________________________________________________________
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://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* How to not propagate head settings?
  2010-06-06 21:15   ` Wolfgang Schuster
@ 2010-06-06 21:39     ` Vyatcheslav Yatskovsky
  2010-06-06 22:07       ` Wolfgang Schuster
  2010-06-13 20:03     ` Removing Introduction section number Vyatcheslav Yatskovsky
  1 sibling, 1 reply; 12+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-06-06 21:39 UTC (permalink / raw)
  To: Wolfgang Schuster, ntg-context

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
___________________________________________________________________________________
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://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Removing Introduction section number
  2010-06-06 21:20   ` Yury G. Kudryashov
@ 2010-06-06 21:46     ` Alan BRASLAU
  0 siblings, 0 replies; 12+ messages in thread
From: Alan BRASLAU @ 2010-06-06 21:46 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
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://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How to not propagate head settings?
  2010-06-06 21:39     ` How to not propagate head settings? Vyatcheslav Yatskovsky
@ 2010-06-06 22:07       ` Wolfgang Schuster
  2010-06-06 22:17         ` Vyatcheslav Yatskovsky
  0 siblings, 1 reply; 12+ messages in thread
From: Wolfgang Schuster @ 2010-06-06 22:07 UTC (permalink / raw)
  To: Vyatcheslav Yatskovsky; +Cc: ntg-context, Hans Hagen

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

___________________________________________________________________________________
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://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How to not propagate head settings?
  2010-06-06 22:07       ` Wolfgang Schuster
@ 2010-06-06 22:17         ` Vyatcheslav Yatskovsky
  2010-06-06 22:29           ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-06-06 22:17 UTC (permalink / raw)
  To: Wolfgang Schuster, ntg-context

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
___________________________________________________________________________________
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://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How to not propagate head settings?
  2010-06-06 22:17         ` Vyatcheslav Yatskovsky
@ 2010-06-06 22:29           ` Hans Hagen
  0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2010-06-06 22:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: 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
-----------------------------------------------------------------
___________________________________________________________________________________
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://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Removing Introduction section number
  2010-06-06 21:15   ` Wolfgang Schuster
  2010-06-06 21:39     ` How to not propagate head settings? Vyatcheslav Yatskovsky
@ 2010-06-13 20:03     ` Vyatcheslav Yatskovsky
  2010-06-14  6:48       ` Taco Hoekwater
  2010-06-14 12:27       ` Wolfgang Schuster
  1 sibling, 2 replies; 12+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-06-13 20:03 UTC (permalink / raw)
  To: Wolfgang Schuster, ntg-context

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
___________________________________________________________________________________
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://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Removing Introduction section number
  2010-06-13 20:03     ` Removing Introduction section number Vyatcheslav Yatskovsky
@ 2010-06-14  6:48       ` Taco Hoekwater
  2010-06-14 12:27       ` Wolfgang Schuster
  1 sibling, 0 replies; 12+ messages in thread
From: Taco Hoekwater @ 2010-06-14  6:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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




___________________________________________________________________________________
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://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Removing Introduction section number
  2010-06-13 20:03     ` Removing Introduction section number Vyatcheslav Yatskovsky
  2010-06-14  6:48       ` Taco Hoekwater
@ 2010-06-14 12:27       ` Wolfgang Schuster
  2010-06-14 12:30         ` Vyatcheslav Yatskovsky
  1 sibling, 1 reply; 12+ messages in thread
From: Wolfgang Schuster @ 2010-06-14 12:27 UTC (permalink / raw)
  To: Vyatcheslav Yatskovsky; +Cc: ntg-context

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

___________________________________________________________________________________
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://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Removing Introduction section number
  2010-06-14 12:27       ` Wolfgang Schuster
@ 2010-06-14 12:30         ` Vyatcheslav Yatskovsky
  0 siblings, 0 replies; 12+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-06-14 12:30 UTC (permalink / raw)
  To: Wolfgang Schuster, ntg-context

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
___________________________________________________________________________________
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://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-06-14 12:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1477.1275853449.4277.ntg-context@ntg.nl>
2010-06-06 20:57 ` Removing Introduction section number Vyatcheslav Yatskovsky
2010-06-06 21:15   ` Wolfgang Schuster
2010-06-06 21:39     ` How to not propagate head settings? Vyatcheslav Yatskovsky
2010-06-06 22:07       ` Wolfgang Schuster
2010-06-06 22:17         ` Vyatcheslav Yatskovsky
2010-06-06 22:29           ` Hans Hagen
2010-06-13 20:03     ` Removing Introduction section number Vyatcheslav Yatskovsky
2010-06-14  6:48       ` Taco Hoekwater
2010-06-14 12:27       ` Wolfgang Schuster
2010-06-14 12:30         ` Vyatcheslav Yatskovsky
2010-06-06 21:20   ` Yury G. Kudryashov
2010-06-06 21:46     ` Alan BRASLAU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).