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

Aditya Mahajan adityam at umich.edu
Mon Oct 5 02:27:44 CEST 2015


On Sun, 4 Oct 2015, Erik Margraf wrote:

> On Sat, Oct 3, 2015 at 11:51 PM, Aditya Mahajan <adityam at umich.edu> 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


More information about the ntg-context mailing list