* Re: Removing Introduction section number
[not found] <mailman.1480.1275862490.4277.ntg-context@ntg.nl>
@ 2010-06-06 22:21 ` Vyatcheslav Yatskovsky
2010-06-06 22:23 ` Vyatcheslav Yatskovsky
1 sibling, 0 replies; 28+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-06-06 22:21 UTC (permalink / raw)
To: ntg-context
> 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}.
Thank you too!
I do want Introduction to be in the contents! Maybe, its easier to setup
\subject so that it will be included, then to invent new keywords?
--
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] 28+ messages in thread
* Re: Removing Introduction section number
[not found] <mailman.1480.1275862490.4277.ntg-context@ntg.nl>
2010-06-06 22:21 ` Removing Introduction section number Vyatcheslav Yatskovsky
@ 2010-06-06 22:23 ` Vyatcheslav Yatskovsky
2010-06-07 22:00 ` Rogutės Sparnuotos
1 sibling, 1 reply; 28+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-06-06 22:23 UTC (permalink / raw)
To: ntg-context
+1 for \section [number=no] {Introduction}
This was my first guess to try, and it is so convinient!
:)
--
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-06 22:23 ` Vyatcheslav Yatskovsky
@ 2010-06-07 22:00 ` Rogutės Sparnuotos
0 siblings, 0 replies; 28+ messages in thread
From: Rogutės Sparnuotos @ 2010-06-07 22:00 UTC (permalink / raw)
To: ntg-context
Vyatcheslav Yatskovsky (2010-06-07 01:23):
>
> +1 for \section [number=no] {Introduction}
>
> This was my first guess to try, and it is so convinient!
>
> :)
This is similar to what I was (intuitively) trying out first, when
tackling this same problem last week...
Couldn't \section[]{} keep accepting the reference label in the square
brackets, and support more comma separated options (for case by case
option adjustment, as Alan mentioned)?
--
-- Rogutės Sparnuotos
___________________________________________________________________________________
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-14 13:40 ` Alan BRASLAU
@ 2010-06-14 13:55 ` Hans Hagen
0 siblings, 0 replies; 28+ messages in thread
From: Hans Hagen @ 2010-06-14 13:55 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
On 14-6-2010 3:40, Alan BRASLAU wrote:
> Quite logical and straightforward.
there are few exeptions where an {} is also accepted which is handy when
used in say \setupheadertexts[...]; for instance \useMPgraphic takes a
{} instead of a [] but to some extend you may see them as low level
commands
Hans
-----------------------------------------------------------------
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-14 11:17 ` Taco Hoekwater
@ 2010-06-14 13:40 ` Alan BRASLAU
2010-06-14 13:55 ` Hans Hagen
0 siblings, 1 reply; 28+ messages in thread
From: Alan BRASLAU @ 2010-06-14 13:40 UTC (permalink / raw)
To: Taco Hoekwater, mailing list for ConTeXt users
On Monday 14 June 2010 13:17:54 Taco Hoekwater wrote:
> Hi Alan,
>
> Alan BRASLAU wrote:
> > I have to say that I am now a bit confused about the use of arguments in
> > ConTeXt.
>
> The general rule is quite straightforward:
>
> * arguments in {} pairs are typeset material
> * arguments in [] are setup instructions and metadata
>
> Whether or not an argument is optional has nothing to
> do with the used delimiters.
Quite logical and straightforward.
It is useful to read the manual (section 1.3):
"A command is often followed by setups or by text. Setups
are placed between brackets ([]). The scope or range of
the command, the text acted upon, is placed between
curly brackets ({})."
...
I see that my reflexes have been spoiled by years of practice with LaTeX - old
habits die hard.
Lamport (section 2.5):
"Command arguments are enclosed in curly braces { and },
except for optional arguments, which are enclosed in square
brackets [ and ]."
So I added a paragraph to
http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Command_syntax
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] 28+ 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; 28+ 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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-13 20:03 ` 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; 28+ 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] 28+ messages in thread
* Re: Removing Introduction section number
[not found] <mailman.1702.1276514035.4277.ntg-context@ntg.nl>
@ 2010-06-14 11:18 ` Vyatcheslav Yatskovsky
0 siblings, 0 replies; 28+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-06-14 11:18 UTC (permalink / raw)
To: ntg-context
>
> How about \section[reference][number=no]{Whatever}?
>
Or \section[reference]{Whatever}[number=no]?
:o)
--
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-14 10:30 ` Alan BRASLAU
@ 2010-06-14 11:17 ` Taco Hoekwater
2010-06-14 13:40 ` Alan BRASLAU
0 siblings, 1 reply; 28+ messages in thread
From: Taco Hoekwater @ 2010-06-14 11:17 UTC (permalink / raw)
To: Alan BRASLAU; +Cc: mailing list for ConTeXt users, Hans Hagen
Hi Alan,
Alan BRASLAU wrote:
> I have to say that I am now a bit confused about the use of arguments in
> ConTeXt.
The general rule is quite straightforward:
* arguments in {} pairs are typeset material
* arguments in [] are setup instructions and metadata
Whether or not an argument is optional has nothing to
do with the used delimiters.
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] 28+ messages in thread
* Re: Removing Introduction section number
[not found] <mailman.0.1276509602.1911.ntg-context@ntg.nl>
@ 2010-06-14 10:54 ` Vyatcheslav Yatskovsky
0 siblings, 0 replies; 28+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-06-14 10:54 UTC (permalink / raw)
To: ntg-context
Yes, yes, yes!
Thank you, friends )
\setupsectionblock[bodypart][page=no]
\setupsectionblock[frontpart][page=no]
--
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-14 9:52 ` Hans Hagen
2010-06-14 10:14 ` Peter Münster
@ 2010-06-14 10:30 ` Alan BRASLAU
2010-06-14 11:17 ` Taco Hoekwater
1 sibling, 1 reply; 28+ messages in thread
From: Alan BRASLAU @ 2010-06-14 10:30 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users, Taco Hoekwater
On Monday 14 June 2010 11:52:28 Hans Hagen wrote:
> On 14-6-2010 9:39, Alan BRASLAU wrote:
> > \section[number=no]{Whatever}
>
> this will not happen as the first argument is optional and reserved for
> a cross reference
>
> Hans
Yes, of course!
How about \section[reference][number=no]{Whatever}?
The following is a bit verbose. It is related, but is more general than the
subject of unnumbered sections...
I have to say that I am now a bit confused about the use of arguments in
ConTeXt.
In LaTeX, optional arguments are contained within [] and required arguments
are grouped within {}. However, in ConTeXt, the situation is not quite so
clear. Take \section[reference]{Title} for example. Here, the reference is
optional and the Title is required, so a title-less section would be
\section{}. This is somewhat sane, even though one may well use sections
without titles.
Contrast this with \cite (I choose this example as I just figured-out that its
misuse was the cause of some obscure problems in a big project). We have
\cite[key], rather then \cite{key} as in LaTeX. Is this because we may also
have \cite[authoryear][key]? Of course, the key is not optional as one can
hardly imagine using \cite without some sort of key, so one might expect
usage: "as remarked by \cite[authoryear]{Einstein1905}."
My error was to have reflexively used \cite{key}, and this sort-of worked so I
did not pay it any attention. However, here and there in my document,
references, for example \chapter[ImportantStuff]{Important stuff} were broken,
with no obvious reason. After correcting my use of \cite[key], other
references were suddenly fixed.
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-14 10:21 ` Hans Hagen
@ 2010-06-14 10:27 ` John Haltiwanger
0 siblings, 0 replies; 28+ messages in thread
From: John Haltiwanger @ 2010-06-14 10:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
I do not see \startsection ... \stopsection on the command reference wiki ..
What are the benefits of this approach?
On Mon, Jun 14, 2010 at 10:21 AM, Hans Hagen <pragma@wxs.nl> wrote:
> On 14-6-2010 12:14, Peter Münster wrote:
>>
>> On Mon, Jun 14 2010, Hans Hagen wrote:
>>
>>>> \section[number=no]{Whatever}
>>>
>>> this will not happen as the first argument is optional and reserved for a
>>> cross reference
>>
>> In mkiv, can we consider the \section commands as obsolete, since we have
>> now \startsection ... \stopsection ?
>
> well, not obsolete as it's convenient but it will definitely not be extended
> / changed
>
> Hans
>
>
> -----------------------------------------------------------------
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-14 10:14 ` Peter Münster
@ 2010-06-14 10:21 ` Hans Hagen
2010-06-14 10:27 ` John Haltiwanger
0 siblings, 1 reply; 28+ messages in thread
From: Hans Hagen @ 2010-06-14 10:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 14-6-2010 12:14, Peter Münster wrote:
> On Mon, Jun 14 2010, Hans Hagen wrote:
>
>>> \section[number=no]{Whatever}
>>
>> this will not happen as the first argument is optional and reserved for a
>> cross reference
>
> In mkiv, can we consider the \section commands as obsolete, since we have
> now \startsection ... \stopsection ?
well, not obsolete as it's convenient but it will definitely not be
extended / changed
Hans
-----------------------------------------------------------------
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-14 9:52 ` Hans Hagen
@ 2010-06-14 10:14 ` Peter Münster
2010-06-14 10:21 ` Hans Hagen
2010-06-14 10:30 ` Alan BRASLAU
1 sibling, 1 reply; 28+ messages in thread
From: Peter Münster @ 2010-06-14 10:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, Jun 14 2010, Hans Hagen wrote:
>> \section[number=no]{Whatever}
>
> this will not happen as the first argument is optional and reserved for a
> cross reference
In mkiv, can we consider the \section commands as obsolete, since we have
now \startsection ... \stopsection ?
Cheers, Peter
--
Contact information: http://pmrb.free.fr/contact/
___________________________________________________________________________________
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-14 7:39 ` Alan BRASLAU
2010-06-14 7:54 ` Taco Hoekwater
2010-06-14 9:52 ` Hans Hagen
@ 2010-06-14 10:12 ` Hans Hagen
2 siblings, 0 replies; 28+ messages in thread
From: Hans Hagen @ 2010-06-14 10:12 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
\unprotect
% already set: \setupstructurehead[chapter][appendixlabel=appendix]
%
% but was not yet hooked into:
\unexpanded\def\fullstructureheadnumber
{\edef\currentstructureheadlabeltag{\currentstructureblock\c!label}%
\labeltexts{\structureheadparameter\currentstructureheadlabeltag}{\structurenumber}}
\protect
\starttext
\setuplabeltext[chapter=Chapter ]
\setuplabeltext[appendix=Appendix ]
\placelist[chapter][criterium=text]
\startfrontmatter
\chapter{Not numbered but in list}
\title{Not numbered and not in list}
\stopfrontmatter
\startbodymatter
\chapter{Numbered but in list}
\title{Unnumbered and not in list}
\stopbodymatter
\startappendices
\chapter{Numbered but in list}
\title{Unnumbered and not in list}
\stopappendices
\stoptext
for other tweaking using \definehead[xxx][section] ... is more suitable
than local tweaking as one often wants to inherit features
Hans
-----------------------------------------------------------------
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-14 7:39 ` Alan BRASLAU
2010-06-14 7:54 ` Taco Hoekwater
@ 2010-06-14 9:52 ` Hans Hagen
2010-06-14 10:14 ` Peter Münster
2010-06-14 10:30 ` Alan BRASLAU
2010-06-14 10:12 ` Hans Hagen
2 siblings, 2 replies; 28+ messages in thread
From: Hans Hagen @ 2010-06-14 9:52 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
On 14-6-2010 9:39, Alan BRASLAU wrote:
> \section[number=no]{Whatever}
this will not happen as the first argument is optional and reserved for
a cross reference
Hans
-----------------------------------------------------------------
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-14 8:04 ` Alan BRASLAU
@ 2010-06-14 8:14 ` Taco Hoekwater
0 siblings, 0 replies; 28+ messages in thread
From: Taco Hoekwater @ 2010-06-14 8:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
Alan BRASLAU wrote:
> On Monday 14 June 2010 09:54:30 Taco Hoekwater wrote:
>> Actually, I almost never use \writetolist myself, but then I usually
>> have special sectioning commands (in larger documents):
>>
>> \definehead[Usection][section]
>> \setuphead[Usection][number=no]
>>
>> \Usection{...}
>>
>> This could be wrapped in a macro if you want key=value parsing.
>
> I presently use this myself, as a solution to what I consider to be a missing
> feature. It is convenient, but is not generally elegant either. Again,
> \section[number=no]{...} is quite natural and intuitive.
FWIW, I agree with you.
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-14 7:54 ` Taco Hoekwater
@ 2010-06-14 8:04 ` Alan BRASLAU
2010-06-14 8:14 ` Taco Hoekwater
0 siblings, 1 reply; 28+ messages in thread
From: Alan BRASLAU @ 2010-06-14 8:04 UTC (permalink / raw)
To: ntg-context; +Cc: Taco Hoekwater
On Monday 14 June 2010 09:54:30 Taco Hoekwater wrote:
>
> Actually, I almost never use \writetolist myself, but then I usually
> have special sectioning commands (in larger documents):
>
> \definehead[Usection][section]
> \setuphead[Usection][number=no]
>
> \Usection{...}
>
> This could be wrapped in a macro if you want key=value parsing.
I presently use this myself, as a solution to what I consider to be a missing
feature. It is convenient, but is not generally elegant either. Again,
\section[number=no]{...} is quite natural and intuitive.
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-14 7:39 ` Alan BRASLAU
@ 2010-06-14 7:54 ` Taco Hoekwater
2010-06-14 8:04 ` Alan BRASLAU
2010-06-14 9:52 ` Hans Hagen
2010-06-14 10:12 ` Hans Hagen
2 siblings, 1 reply; 28+ messages in thread
From: Taco Hoekwater @ 2010-06-14 7:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
Alan BRASLAU wrote:
> On Monday 14 June 2010 08:52:16 Taco Hoekwater wrote:
>> Vyatcheslav Yatskovsky wrote:
>>> ...or preventing startbodymatter from making new page.
>> \setupsectionblock[bodypart][page=no]
>>
>> or
>>
>> \setupsectionblock[frontpart][page=no]
>>
>> (I don't remember whether this is executed at the end
>> or the begin of the block).
>
> This is much more elegant than
> \subject{Whatever}
> \writelist[section]{}{Whatever}
> repeating "Whatever" twice.
>
> I will repeat here the suggestion, seconded by others, of parsing
> \section[number=no]{Whatever}
> to be used notably within \startbodypart...\stopbodypart
> Note that an unnumbered \section vs. \subject do not fill exactly the same
> need.
Actually, I almost never use \writetolist myself, but then I usually
have special sectioning commands (in larger documents):
\definehead[Usection][section]
\setuphead[Usection][number=no]
\Usection{...}
This could be wrapped in a macro if you want key=value parsing.
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-14 6:52 ` Taco Hoekwater
@ 2010-06-14 7:39 ` Alan BRASLAU
2010-06-14 7:54 ` Taco Hoekwater
` (2 more replies)
0 siblings, 3 replies; 28+ messages in thread
From: Alan BRASLAU @ 2010-06-14 7:39 UTC (permalink / raw)
To: ntg-context; +Cc: Taco Hoekwater
On Monday 14 June 2010 08:52:16 Taco Hoekwater wrote:
> Vyatcheslav Yatskovsky wrote:
> > ...or preventing startbodymatter from making new page.
>
> \setupsectionblock[bodypart][page=no]
>
> or
>
> \setupsectionblock[frontpart][page=no]
>
> (I don't remember whether this is executed at the end
> or the begin of the block).
This is much more elegant than
\subject{Whatever}
\writelist[section]{}{Whatever}
repeating "Whatever" twice.
I will repeat here the suggestion, seconded by others, of parsing
\section[number=no]{Whatever}
to be used notably within \startbodypart...\stopbodypart
Note that an unnumbered \section vs. \subject do not fill exactly the same
need.
Also, while on the subject of sectionblocks, there should be some way of
defining
\startsectionblockenvironment[bodypart]
\setuplist[chapter][label=yes]
\stopsectionblockenvironment
Presently, this does not work, and simply setting
\setuplist[chapter][label=yes]
will, of course, put the label ("Chapter") everywhere in the table of contents
including frontmatter and backmatter, that is if one also redefines
\setuplabeltext[chapter=Chapter ] % with trailing space
as this is, curiously, blank by default.
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-13 20:08 Vyatcheslav Yatskovsky
@ 2010-06-14 6:52 ` Taco Hoekwater
2010-06-14 7:39 ` Alan BRASLAU
0 siblings, 1 reply; 28+ messages in thread
From: Taco Hoekwater @ 2010-06-14 6:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
Vyatcheslav Yatskovsky wrote:
>
> ...or preventing startbodymatter from making new page.
>
\setupsectionblock[bodypart][page=no]
or
\setupsectionblock[frontpart][page=no]
(I don't remember whether this is executed at the end
or the begin of the block).
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-13 20:03 ` Vyatcheslav Yatskovsky
@ 2010-06-14 6:48 ` Taco Hoekwater
2010-06-14 12:27 ` Wolfgang Schuster
1 sibling, 0 replies; 28+ 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] 28+ messages in thread
* Re: Removing Introduction section number
@ 2010-06-13 20:08 Vyatcheslav Yatskovsky
2010-06-14 6:52 ` Taco Hoekwater
0 siblings, 1 reply; 28+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-06-13 20:08 UTC (permalink / raw)
To: Wolfgang Schuster, ntg-context
...or preventing startbodymatter from making new page.
--
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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-06 21:15 ` Wolfgang Schuster
@ 2010-06-13 20:03 ` Vyatcheslav Yatskovsky
2010-06-14 6:48 ` Taco Hoekwater
2010-06-14 12:27 ` Wolfgang Schuster
0 siblings, 2 replies; 28+ 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] 28+ 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; 28+ 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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-06 20:57 ` 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; 28+ 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] 28+ messages in thread
* Re: Removing Introduction section number
2010-06-06 20:57 ` Vyatcheslav Yatskovsky
@ 2010-06-06 21:15 ` Wolfgang Schuster
2010-06-13 20:03 ` Vyatcheslav Yatskovsky
2010-06-06 21:20 ` Yury G. Kudryashov
1 sibling, 1 reply; 28+ 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] 28+ messages in thread
* 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; 28+ 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] 28+ messages in thread
end of thread, other threads:[~2010-06-14 13:55 UTC | newest]
Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.1480.1275862490.4277.ntg-context@ntg.nl>
2010-06-06 22:21 ` Removing Introduction section number Vyatcheslav Yatskovsky
2010-06-06 22:23 ` Vyatcheslav Yatskovsky
2010-06-07 22:00 ` Rogutės Sparnuotos
[not found] <mailman.1702.1276514035.4277.ntg-context@ntg.nl>
2010-06-14 11:18 ` Vyatcheslav Yatskovsky
[not found] <mailman.0.1276509602.1911.ntg-context@ntg.nl>
2010-06-14 10:54 ` Vyatcheslav Yatskovsky
2010-06-13 20:08 Vyatcheslav Yatskovsky
2010-06-14 6:52 ` Taco Hoekwater
2010-06-14 7:39 ` Alan BRASLAU
2010-06-14 7:54 ` Taco Hoekwater
2010-06-14 8:04 ` Alan BRASLAU
2010-06-14 8:14 ` Taco Hoekwater
2010-06-14 9:52 ` Hans Hagen
2010-06-14 10:14 ` Peter Münster
2010-06-14 10:21 ` Hans Hagen
2010-06-14 10:27 ` John Haltiwanger
2010-06-14 10:30 ` Alan BRASLAU
2010-06-14 11:17 ` Taco Hoekwater
2010-06-14 13:40 ` Alan BRASLAU
2010-06-14 13:55 ` Hans Hagen
2010-06-14 10:12 ` Hans Hagen
[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-13 20:03 ` 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).