From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43234 Path: news.gmane.org!not-for-mail From: =?utf-8?B?SWRyaXMgU2FtYXdpIEhhbWlkINin2K/YsdmK2LMg2LPZhdin2YjZiiDYrQ==?= =?utf-8?B?2KfZhdiv?= Newsgroups: gmane.comp.tex.context Subject: grouped sections and footnotes Date: Sat, 16 Aug 2008 16:34:12 -0600 Organization: Colorado State University Message-ID: 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: ger.gmane.org 1218926185 30899 80.91.229.12 (16 Aug 2008 22:36:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Aug 2008 22:36:25 +0000 (UTC) Cc: mailing list for ConTeXt users To: "Hans Hagen" Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 17 00:37:16 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KUUOZ-0006Xd-HZ for gctc-ntg-context-518@m.gmane.org; Sun, 17 Aug 2008 00:37:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B8B301FBE8; Sun, 17 Aug 2008 00:36:14 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32634-04-15; Sun, 17 Aug 2008 00:35:20 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9D6B61FBBD; Sun, 17 Aug 2008 00:35:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BD40F1FBBD for ; Sun, 17 Aug 2008 00:35:18 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32634-04-14 for ; Sun, 17 Aug 2008 00:34:41 +0200 (CEST) Original-Received: from trueband.net (director.trueband.net [216.163.120.8]) by ronja.ntg.nl (Postfix) with SMTP id 867FD1FB89 for ; Sun, 17 Aug 2008 00:34:41 +0200 (CEST) Original-Received: (qmail 17991 invoked by uid 1006); 16 Aug 2008 22:34:40 -0000 Original-Received: from ishamid@colostate.edu by rs0 by uid 1003 with qmail-scanner-1.16 (spamassassin: 3.1.4. Clear:SA:0(0.1/100.0):. Processed in 0.254571 secs); 16 Aug 2008 22:34:40 -0000 Original-Received: from unknown (HELO trueband.net) (172.16.0.23) by -v with SMTP; 16 Aug 2008 22:34:39 -0000 Original-Received: (qmail 3588 invoked from network); 16 Aug 2008 22:34:35 -0000 Original-Received: from unknown (HELO your-b27fb1c401) (ishamid@75.104.82.252) by -v with SMTP; 16 Aug 2008 22:34:35 -0000 User-Agent: Opera Mail/9.50 (Win32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:43234 Archived-At: Hi Hans, I am using a module -- non-distributed as far as I know -- created by Wolfgang. It provides grouped sectioning and footnotes: ====startstop-t.tex====== \unprotect \def\????se{@@@@se} \def\definegroupedsection[#1]% {\setvalue{\e!start#1}[##1]% {\getparameters[\????se#1][\c!ref=,\c!title=,##1]% \getvalue{#1}[\getvalue{\????se#1\c!ref}]{\getvalue{\????se#1\c!title}}} \setvalue{\e!stop#1}{\relax}} \def\definegroupednote[#1]% {\edef\currentnote{#1}% \def\dostartcurrentnote[##1][##2]{\setnote[##1][##2]\bgroup\ignorespaces}% \setvalue{\e!start\currentnote}{\dodoubleempty\dostartcurrentnote[#1]}% \setvalue{\e!stop\currentnote}{\removeunwantedspaces\egroup\noteparameter\c!next}} \definegroupedsection[title] \definegroupedsection[chapter] \definegroupedsection[section] \definegroupedsection[subsection] \definegroupedsection[subsubsection] \definegroupednote [footnote] \setupfootnotes[next=\autoinsertnextspace] \protect \starttext \starttitle[title=Title] \stoptitle \startchapter[title=Chapter] \startsection[title=Section] \input knuth Text \startfootnote[nabiyy] A footnote \stopfootnote text \startsubsection[title=Subsection] Text \startfootnote A footnote. See \in{footnote}[nabiyy] \stopfootnote text \startsubsubsection[title=Subsubsection] Text \startfootnote A footnote \stopfootnote text \stopsubsubsection \stopsubsection \stopsection \stopchapter \stoptext ========================= Question: a) Have you added support for grouped sectioning and footnotes in mkiv yet? b) Does the above code seem safe for mkiv? c) (For Wolfgang:) Has the above code been updated or extended etc. yet? For long documents this kind of grouping has become indispensable (easy code-folding etc.) Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________