From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92629 Path: news.gmane.org!not-for-mail From: Erik Margraf Newsgroups: gmane.comp.tex.context Subject: Re: Section head without numbers, ToC with numbers Date: Mon, 5 Oct 2015 07:04:12 +0200 Message-ID: References: Reply-To: erik.margraf@gmail.com, mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1422105353==" X-Trace: ger.gmane.org 1444021503 23211 80.91.229.3 (5 Oct 2015 05:05:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2015 05:05:03 +0000 (UTC) Cc: mailing list for ConTeXt users To: Aditya Mahajan Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 05 07:04:52 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZixxD-0007dq-Uf for gctc-ntg-context-518@m.gmane.org; Mon, 05 Oct 2015 07:04:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EC50210222 for ; Mon, 5 Oct 2015 07:04:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id AXNaasA_Gy3k for ; Mon, 5 Oct 2015 07:04:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id EE82610233 for ; Mon, 5 Oct 2015 07:04:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7ED90101F7 for ; Mon, 5 Oct 2015 07:04:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eZClttNpflRt for ; Mon, 5 Oct 2015 07:04:13 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 440F6101E8 for ; Mon, 5 Oct 2015 07:04:13 +0200 (CEST) Original-Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) by filter3-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t9554CFr021291 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 5 Oct 2015 07:04:12 +0200 Original-Received: by wicge5 with SMTP id ge5so102867224wic.0 for ; Sun, 04 Oct 2015 22:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=+SjQ7UHg3hYFpMWZlr0TwJSCyGWcUqKxKmdsUGjip2c=; b=mM+jKsBLTz+3PM9tic0WZtChkeJCDLjULtiIMa/mUfC8mb2OoWa51QC054KDvPim3U NNhemcBcAp7JWO0qvYPYsDmxHNGin9DuZdeT3U7x0ZosMtz+9cM20n/lUirg9h0b9ru2 U4D5aNKZKzOh07KYVpkFjjxmbjZQCuCZ7+Y7zzwa2ZQ968gb1kCEV+N63s2coKkPFMx8 96KFRK8XtIgni4bBSwnnqvxqpGN+5jROJBYf7aCUPqwkWdHiOWy3qj3blaj9gfcgPzdz ukmSpYpgOiSmUk7YShVzqWdUHOoqPJ4YOXyOJQ1wMQdF3jI8UZ2zSOyeiLg+e3jxYDiO NYgA== X-Received: by 10.180.88.198 with SMTP id bi6mr9934830wib.75.1444021452145; Sun, 04 Oct 2015 22:04:12 -0700 (PDT) Original-Received: by 10.194.76.235 with HTTP; Sun, 4 Oct 2015 22:04:12 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::235; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Pph4c6g - 9987b53525e7 - 20151005 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of erik.margraf@gmail.com designates 2a00:1450:400c:c05::235 as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::235; envelope-from=; helo=mail-wi0-x235.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:92629 Archived-At: --===============1422105353== Content-Type: multipart/alternative; boundary=f46d0443040cb408c105215471dc --f46d0443040cb408c105215471dc Content-Type: text/plain; charset=UTF-8 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 > --f46d0443040cb408c105215471dc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This does the trick! Thank you!

On Mon, Oct 5, 2015 at 2:27 AM, Ad= itya Mahajan <adityam@umich.edu> wrote:
On Sun, 4 Oct 2015, Erik Margraf wrote:

On Sat, Oct 3, 2015 at 11:51 PM, Aditya Mahajan <adityam@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=3D\gobbleoneargument]

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

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

Add distance=3D0pt to the settings.

Aditya

--f46d0443040cb408c105215471dc-- --===============1422105353== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1422105353==--