From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36424 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: how to reuse float numbers? Date: Mon, 10 Sep 2007 07:43:18 +0200 Message-ID: <115224fb0709092243o554bf402q14883600cfa1bca9@mail.gmail.com> References: <5c5e660c0709070015x1381dc41n77ea1e598b1522b6@mail.gmail.com> <5c5e660c0709070917we88591ch9335ff346e1b6acb@mail.gmail.com> 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: sea.gmane.org 1189404958 12723 80.91.229.12 (10 Sep 2007 06:15:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 06:15:58 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 10 16:15:44 2007 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 1IUjY6-0000AR-Ft for gctc-ntg-context-518@m.gmane.org; Mon, 10 Sep 2007 15:43:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 236C81FFC3; Mon, 10 Sep 2007 07:43:43 +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 21807-02-3; Mon, 10 Sep 2007 07:43:29 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5CC021FFA4; Mon, 10 Sep 2007 07:43:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D104E1FFA4 for ; Mon, 10 Sep 2007 07:43:25 +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 21807-02-2 for ; Mon, 10 Sep 2007 07:43:20 +0200 (CEST) Original-Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.238]) by ronja.ntg.nl (Postfix) with ESMTP id D0E091FF82 for ; Mon, 10 Sep 2007 07:43:19 +0200 (CEST) Original-Received: by wx-out-0506.google.com with SMTP id i27so1181088wxd for ; Sun, 09 Sep 2007 22:43:18 -0700 (PDT) Original-Received: by 10.90.83.14 with SMTP id g14mr6879241agb.1189402998548; Sun, 09 Sep 2007 22:43:18 -0700 (PDT) Original-Received: by 10.90.35.1 with HTTP; Sun, 9 Sep 2007 22:43:18 -0700 (PDT) In-Reply-To: <5c5e660c0709070917we88591ch9335ff346e1b6acb@mail.gmail.com> Content-Disposition: inline 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:36424 Archived-At: 2007/9/7, William S. : > On 9/7/07, William S. wrote: > > The guidelines specify that captions for code which is longer than one page > > or crosses page boundaries should be reprinted and the title changed to > > (continued). > > > > example: > > > > Program Segment 1.1: Hello World > > #include > > main() { > > > > ...on next page... > > > > Program Segment 1.1: (continued) > > printf("hello world!\n"); > > } > > > > Thanks to Wolfgang's help the splitting problem is solved. However, > after the float is split, the captions get extra numbers (1.1.A, > 1.1.B, etc). > > I tried to "solve" this by using \setupfloatsplitting[conversions=...] > but even if I defined a conversion that prints nothing, the caption > would look like "Program Segment 1.1." (the final separator is still > printed). Hi William, use \setupfloatsplitting[conversions=numbers] and \setupcaptions[way=bytext] The 1.1 is the normal float numbering, the 1, b, ... are the numbers of every part of the splitted float. > I suppose a better way would be to override the command that makes the > captions (\setupcaption[ProgramSegment][command=...]) so that it > prints the real caption text in the first part, and "(continued)" in > the next parts. > However, I've searched the mailing list archive and I can't find an > example on what to put inside the command. This seems to be not supported but you can try to look into core-tsp.tex, the module where float splitting is implemented. > Can someone give me a clue as to what I should put inside the command > or maybe someone will have a better idea (maybe using > \setupfloatsplitting[inbetween=...])? > > I've attached a slightly modified version of Wolfgang's document (I > added a conversion for the setupfloatsplitting). > > Thanks, > William. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________