From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55400 Path: news.gmane.org!not-for-mail From: Joshua Lee Newsgroups: gmane.comp.tex.context Subject: Re: The problem with structure of heads in MkIV Date: Wed, 30 Dec 2009 10:32:39 +0800 Message-ID: <20091230023239.GA5020@josh-dev> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="FL5UXtIhxfXey3p5" X-Trace: ger.gmane.org 1262140383 14153 80.91.229.12 (30 Dec 2009 02:33:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Dec 2009 02:33:03 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 30 03:32:55 2009 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 1NPoMo-0004Du-OG for gctc-ntg-context-518@m.gmane.org; Wed, 30 Dec 2009 03:32:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1EEDDC9CD9; Wed, 30 Dec 2009 03:32:52 +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 aVPVoUKyhtxi; Wed, 30 Dec 2009 03:32:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1FFDDC9CD4; Wed, 30 Dec 2009 03:32:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DBB0AC9CD4 for ; Wed, 30 Dec 2009 03:32:44 +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 nLxbJOCL+LZZ for ; Wed, 30 Dec 2009 03:32:31 +0100 (CET) Original-Received: from mail-yw0-f185.google.com (mail-yw0-f185.google.com [209.85.211.185]) by balder.ntg.nl (Postfix) with ESMTP id 241FCC9CD1 for ; Wed, 30 Dec 2009 03:32:30 +0100 (CET) Original-Received: by ywh15 with SMTP id 15so821899ywh.5 for ; Tue, 29 Dec 2009 18:32:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=zvwBdcKKjbqBYkdtIY5YiB0pQVegVqZUZI0aeEQM3LA=; b=jxipltMuK2XH1yiXICKCzi3d+0jP7J5Ugf1ctwP6kUueP+kyJ6Li52/ExKGAbo4LX/ RWpiJssIYLvlWUkuzw4tqtCH+URtBjKaDJnk+7QVi5/Cf0oiiB3uKzlSW5VPXCFmA2o2 OTwP3wL4Yqx+bM3nMX43qU/5Ve95rwvk7w4aw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=GRjYTNewUt06dOdE+krtXM2SuSsvaiyIDtTOX2oz9/UTLVy4yB94hY6sNpBXCDwkoA H86Ah079iGbyu0Q3gtJHxVJM4z5ACEGgp1xM/ZquM89NtUZ9lNB/Vb75h6Qs3U/v1flN WsYIhc8pRHFW3MxVqW0blJ/J/o6QgYTVrfw4M= Original-Received: by 10.91.163.13 with SMTP id q13mr6911298ago.21.1262140339661; Tue, 29 Dec 2009 18:32:19 -0800 (PST) Original-Received: from josh-dev ([220.248.45.83]) by mx.google.com with ESMTPS id 4sm4639506ywg.28.2009.12.29.18.32.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 29 Dec 2009 18:32:18 -0800 (PST) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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:55400 Archived-At: --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Yanrui, How about the attached sample? Best regards, Joshua On Wed, 30 Dec 2009, Yanrui Li wrote: > hi all, > > For example: > > %%%% > \starttext > > \placelist[part,chapter,section,subsection][criterium=all] > > \part{first} > \chapter{alpha} > \section{a} > \section{b} > \subsection{x} > \subsection{y} > \chapter{beta} > > \part{second} > \chapter{gamma} > \section{a} > \section{b} > \subsection{x} > \subsection{y} > \chapter{delta} > > \stoptext > %%%% > > how to get the following head structure in MkIV ? > > Part 1 first > > 1 alpha > 1.1 a > 1.2 b > 1.2.1 x > 1.2.2 y > 2 beta > > Part 2 second > > 3 gamma > 3.1 a > 3.2 b > 3.2.1 x > 3.2.2 y > 4 delta > > -- > Best regards, > > Li Yanrui > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ -- Joshua Lee Alpha Networks(Chengdu) Co., LTD Shanghai Branch TEL: (86-21)61609650 EXT: 8020 FAX: (86-21)61609650 EXT: 8041 ADD: Suite 301, No.10, 198 Lane, Zhangheng Road, ZJ Hi-Tech Park, Shanghai, China 201204 --FL5UXtIhxfXey3p5 Content-Type: application/x-tex Content-Disposition: attachment; filename="test.tex" Content-Transfer-Encoding: quoted-printable \definestructureresetset[default][0,0][1]=0A =0A \setuphead=0A [part]=0A= [style=3D\ss\bfd,=0A resetnumber=3Dno,=0A conversion=3DR,=0A = sectionresetset=3Ddefault,=0A placehead=3Dyes]=0A =0A \setuphead=0A = [chapter]=0A [style=3D\ss\bfc,=0A sectionsegments=3D2:100,=0A = resetnumber=3Dno,=0A color=3DTheColor]=0A =0A \setuphead=0A [section]= =0A [sectionsegments=3D2:100,=0A style=3D\ss\bfb]=0A =0A \setuphead=0A= [subsection]=0A [sectionsegments=3D2:100,=0A style=3D\ss\bfa]=0A = =0A \setuphead=0A [subsubsection]=0A [sectionsegments=3D2:100,=0A nu= mber=3Dno,=0A style=3D\ss\bfa]=0A\starttext=0A=0A\placelist[part,chapter= ,section,subsection][criterium=3Dall]=0A=0A\part{first}=0A \chapter{alpha}= =0A \section{a}=0A \section{b}=0A \subsection{x}=0A \subsec= tion{y}=0A \chapter{beta}=0A=0A\part{second}=0A \chapter{gamma}=0A \se= ction{a}=0A \section{b}=0A \subsection{x}=0A \subsection{y}=0A= \chapter{delta}=0A=0A\stoptext=0A=0A --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --FL5UXtIhxfXey3p5--