From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59604 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: Re: Removing Introduction section number Date: Mon, 14 Jun 2010 12:30:30 +0200 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <201006141230.30408.alan.braslau@cea.fr> References: <4C153ACA.2000209@gmail.com> <201006140939.38581.alan.braslau@cea.fr> <4C15FBDC.6070201@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1276511447 12235 80.91.229.12 (14 Jun 2010 10:30:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Jun 2010 10:30:47 +0000 (UTC) Cc: mailing list for ConTeXt users , Taco Hoekwater To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 14 12:30:45 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OO6wH-0004Xi-D0 for gctc-ntg-context-518@m.gmane.org; Mon, 14 Jun 2010 12:30:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BAE80C9AAF; Mon, 14 Jun 2010 12:30:44 +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 IVp1sHsNaBc8; Mon, 14 Jun 2010 12:30:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3CD73C9A70; Mon, 14 Jun 2010 12:30:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7182EC9A70 for ; Mon, 14 Jun 2010 12:30:40 +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 SCmnHHZJQRQS for ; Mon, 14 Jun 2010 12:30:38 +0200 (CEST) Original-Received: from oxalide-out.extra.cea.fr (oxalide-out.extra.cea.fr [132.168.224.1]) by balder.ntg.nl (Postfix) with ESMTP id 3C157C9A1F for ; Mon, 14 Jun 2010 12:30:38 +0200 (CEST) Original-Received: from epeire1.extra.cea.fr (epeire1.extra.cea.fr [132.167.198.31]) by oxalide.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.0) with ESMTP id o5EAUb16018034 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 14 Jun 2010 12:30:37 +0200 Original-Received: from orpin2.extra.cea.fr (orpin2.extra.cea.fr [132.167.198.5]) by epeire1.extra.cea.fr (8.14.4/8.14.4) with ESMTP id o5EAUbNv004097; Mon, 14 Jun 2010 12:30:37 +0200 (envelope-from alan.braslau@cea.fr) Original-Received: from iram-ha-003840.localnet (iram-ha-003840.extra.cea.fr [132.166.25.152]) by orpin2.extra.cea.fr (8.13.8/8.13.8/CEAnet-Intranet-out-1.1) with ESMTP id o5EAUbEQ008584; Mon, 14 Jun 2010 12:30:37 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.32; KDE/4.4.4; x86_64; ; ) In-Reply-To: <4C15FBDC.6070201@wxs.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:59604 Archived-At: 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 ___________________________________________________________________________________