From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83347 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: First and last section of current chapter Date: Tue, 9 Jul 2013 01:23:27 +0200 Message-ID: <20130708232327.GE4884@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1045752032==" X-Trace: ger.gmane.org 1373325867 14184 80.91.229.3 (8 Jul 2013 23:24:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jul 2013 23:24:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 09 01:24:29 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UwKmf-0007KM-Oq for gctc-ntg-context-518@m.gmane.org; Tue, 09 Jul 2013 01:23:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 018AF101F1; Tue, 9 Jul 2013 01:23:53 +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 RYnMWUd9oJfB; Tue, 9 Jul 2013 01:23:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 04B7C101E5; Tue, 9 Jul 2013 01:23:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 524FF101E5 for ; Tue, 9 Jul 2013 01:23:49 +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 zeWVcBCsx+4R for ; Tue, 9 Jul 2013 01:23:48 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 2B530101E4 for ; Tue, 9 Jul 2013 01:23:38 +0200 (CEST) Original-Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r68NNapx003945 for ; Tue, 9 Jul 2013 01:23:37 +0200 Original-Received: from c.earth.lavabit.com (c.earth.lavabit.com [192.168.111.12]) by karen.lavabit.com (Postfix) with ESMTP id E525F11BC21 for ; Mon, 8 Jul 2013 18:23:35 -0500 (CDT) Original-Received: from homerow (83.68.239.193) by lavabit.com with ESMTP id 381VP0NVOG1Y for ; Mon, 08 Jul 2013 18:23:35 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=V0FWQckopalo7oUsCNKqp05NFkWQC/PP/AaHm0FRfq3TaeoA4lFhqtxojjC2NY3AgA6n3E+rpIOq7yz+YW7Q4ujyJWPAEeaXR5dwr4nlfK31wemtkYgwUmdyxbpMf5qyG8nEMMOpU7FtEF28hv7+ciA4dJpM9HmGAboLYKDxMZA=; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition:X-PGP-Key:User-Agent; Mail-Followup-To: mailing list for ConTeXt users X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB8CFCB65D4F08C27 User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.025 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.249.41.33; country=US; region=MO; city=Saint Louis; postalcode=63131; latitude=38.6143; longitude=-90.4444; metrocode=609; areacode=314; http://maps.google.com/maps?q=38.6143,-90.4444&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NJVXnBBz - ea102cb05501 - 20130709 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83347 Archived-At: --===============1045752032== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jTMWTj4UTAEmbWeb" Content-Disposition: inline --jTMWTj4UTAEmbWeb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, how to display the first and last section name at the beginning of each chapter? I'm a little clueless which mechanism to use. A local table of contents displays all sections. Marks maybe? Although I have no idea how to achieve that with marks. Sure, I could manually reference the sections and use \about, but this is error prone especially for the last section/chapter. Example: \starttext First chapter: %% Foo Last chapter: %% Bar \startchapter [title=Foo] First section: %% Alpha Last section: %% Gamma \section{Alpha} \input knuth \page \section{Beta} \input knuth \page \section{Gamma} \input knuth \page \stopchapter \startchapter [title=Bar] First section: %% Monday Last section: %% Wednesday \section{Monday} \input knuth \page \section{Tuesday} \input knuth \page \section{Wednesday} \input knuth \page \stopchapter \stoptext Marco --jTMWTj4UTAEmbWeb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJR20nvAAoJEPGqVaNSn0iKmMgIAKkuXsU/ne3KzfozMPkL+IWz qKuBOp0SAg2g4eV1Vksxy/9sntml9TkM5F66PpYYhwMdiaj+JbMsJTEsVSDJvV/6 N/k5m3I9AysSJXsAbh8++21sN0mn84E571kO/0Llvizq45RS3JhXVXI+9VqfoE0w eOo3SJEUa8ZOR6+ltM4P84QrOHVJ9HnjxHscpM3rumGycJjuS3ipkqJAZHjRkRjf XbZbW31/nkwFtGceMGS72r7lrNY0J8fekkgwL3TRrfvV4CQ6dqwEQWVbzhS2RzDy 5BJt1vEAXTl7Tk2zdyXDmL4WAjT+56CAWu9LE0jtRDHhoW60t2v07HX8koOTfPI= =IdfH -----END PGP SIGNATURE----- --jTMWTj4UTAEmbWeb-- --===============1045752032== 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 ___________________________________________________________________________________ --===============1045752032==--