From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55484 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: sectionstopper Date: Thu, 7 Jan 2010 22:07:04 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1262898456 9934 80.91.229.12 (7 Jan 2010 21:07:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Jan 2010 21:07:36 +0000 (UTC) Cc: Steffen Wolfrum To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 07 22:07:29 2010 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.50) id 1NSzZo-0007KS-HW for gctc-ntg-context-518@m.gmane.org; Thu, 07 Jan 2010 22:07:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0B227C9C68; Thu, 7 Jan 2010 22:07:29 +0100 (CET) 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 n0KhPXWyT+8B; Thu, 7 Jan 2010 22:07:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 42B23C9BC9; Thu, 7 Jan 2010 22:07:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1E445C9BC9 for ; Thu, 7 Jan 2010 22:07:24 +0100 (CET) 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 YyO6AjKLU5R4 for ; Thu, 7 Jan 2010 22:07:12 +0100 (CET) Original-Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by balder.ntg.nl (Postfix) with ESMTP id A81EDC9B91 for ; Thu, 7 Jan 2010 22:07:12 +0100 (CET) Original-Received: by fxm10 with SMTP id 10so5387585fxm.34 for ; Thu, 07 Jan 2010 13:07:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:cc:to :mime-version:x-mailer; bh=oxDIQl2tZwV424eTGOe6jPXoHYbKlcAAFWy3pyc4SWc=; b=IupAGXN3bmEiKhia9AYLSes5EbI+ejEF1MMyxnEJKtkUzCfd1P0xRs1dRCn5zWQ/qw JrVc7RnURqqG+3GdJZodRnae5hodVoAiL3BnSUmLE5i5wE9NBi5s3XiVOXjpQpV5C00Q EGx9ozUXXJ0js+oSqi18SzHWXQd9ENMDuGG4A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version:x-mailer; b=Wq/pVvVOBB/KX2dW9QpdO1ly0hlK40VLo7Z7uS8ytyxTCuhYkqrI8B7BXNQghUY/Yx q7UifRKgGTvbvGZYBZXIVfN261FX/OlC91gHcKbImmR2bLDD8zqGek9j7clwCHUQZcUw vxHPpqCeFAzcZ919jzvnDcJxi3ml7nsNhgqz0= Original-Received: by 10.87.70.18 with SMTP id x18mr1552396fgk.59.1262898430063; Thu, 07 Jan 2010 13:07:10 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B29789F.dip.t-dialin.net [91.41.120.159]) by mx.google.com with ESMTPS id l12sm47113263fgb.25.2010.01.07.13.07.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 07 Jan 2010 13:07:09 -0800 (PST) X-Mailer: Apple Mail (2.1077) 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:55484 Archived-At: Hi Hans, how I can i put symbols at both sides of a header, with sectionstopper i can get only on at the right side of the number but not at the left and tricks like numbercommand or setuplabeltext do not affect references and the content entries. In the following example i want the chapter number to be printed as 1) Chaptertitle -> sectionsegments=2:2 and the section number as (1) Sectiontitle -> sectionsegments=3:3 but a reference in the test should show the complete number in the form '1)(1)' and the same should appear in the table of contents. Best regards, Wolfgang \setuphead[chapter][sectionsegments=2:2,sectionstopper=)] \setuphead[section][sectionsegments=3:3,sectionstopper=),numbercommand=(] % How can I print the section number as '1) (1)' in the toc? %\setuplist[section][sectionsegments=2:3,numbercommand=(] \setupreferencestructureprefix[default][prefixsegments=2:100] % uncomment to get the correct result for references in the text, brr %\definestructureseparatorset [default][,(][] \starttext \completecontent \chapter[sec:knuth]{Knuth} \input knuth \section[sec:ward]{Ward} \input ward \page see \in{section}[sec:ward] at \at{page}[sec:ward] \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 ___________________________________________________________________________________