Re: [NTG-context] Section head without numbers, ToC with numbers

2015-10-04 Thread Aditya Mahajan

On Sun, 4 Oct 2015, Erik Margraf wrote:


On Sat, Oct 3, 2015 at 11:51 PM, Aditya Mahajan  wrote:


On Sat, 3 Oct 2015, Erik Margraf wrote:

Dear List,


is it possible to achieve the following:

First section
 Some Text

Second section
 Some Text

Table of Contents
1 First section
2 Second section



(Untested):

\setuphead[section][numbercommand=\gobbleoneargument]


thanks for your answer! This comes close, but has the problem, that the
section head is indented.

\starttext
\setuphead[section][numbercommand=\gobbleoneargument]
\placelist[section]
\section{First section}
\input knuth
\stoptext


Add distance=0pt to the settings.

Aditya
___
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
___

Re: [NTG-context] Section head without numbers, ToC with numbers

2015-10-04 Thread Erik Margraf
This does the trick! Thank you!

On Mon, Oct 5, 2015 at 2:27 AM, Aditya Mahajan  wrote:

> On Sun, 4 Oct 2015, Erik Margraf wrote:
>
> On Sat, Oct 3, 2015 at 11:51 PM, Aditya Mahajan  wrote:
>>
>> On Sat, 3 Oct 2015, Erik Margraf wrote:
>>>
>>> Dear List,
>>>

 is it possible to achieve the following:

 First section
  Some Text

 Second section
  Some Text

 Table of Contents
 1 First section
 2 Second section


 (Untested):
>>>
>>> \setuphead[section][numbercommand=\gobbleoneargument]
>>>
>>> thanks for your answer! This comes close, but has the problem, that the
>> section head is indented.
>>
>> \starttext
>> \setuphead[section][numbercommand=\gobbleoneargument]
>> \placelist[section]
>> \section{First section}
>> \input knuth
>> \stoptext
>>
>
> Add distance=0pt to the settings.
>
> Aditya
>
___
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
___

Re: [NTG-context] Section head without numbers, ToC with numbers

2015-10-03 Thread Aditya Mahajan

On Sat, 3 Oct 2015, Erik Margraf wrote:


Dear List,

is it possible to achieve the following:

First section
 Some Text

Second section
 Some Text

Table of Contents
1 First section
2 Second section



(Untested):

\setuphead[section][numbercommand=\gobbleoneargument]

Aditya
___
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
___