From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36398 Path: news.gmane.org!not-for-mail From: "William S." Newsgroups: gmane.comp.tex.context Subject: how to reuse float numbers? Date: Fri, 7 Sep 2007 14:15:45 +0700 Message-ID: <5c5e660c0709070015x1381dc41n77ea1e598b1522b6@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 1189151144 21918 80.91.229.12 (7 Sep 2007 07:45:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2007 07:45:44 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 07 09:45:42 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 1ITYX5-000236-Hn for gctc-ntg-context-518@m.gmane.org; Fri, 07 Sep 2007 09:45:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CE24C1FC20; Fri, 7 Sep 2007 09:45:35 +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 14626-01-2; Fri, 7 Sep 2007 09:45:24 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8FC7920109; Fri, 7 Sep 2007 09:16:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 31C6E20109 for ; Fri, 7 Sep 2007 09:15:59 +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 12814-03-17 for ; Fri, 7 Sep 2007 09:15:47 +0200 (CEST) Original-Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.239]) by ronja.ntg.nl (Postfix) with ESMTP id 601E220107 for ; Fri, 7 Sep 2007 09:15:47 +0200 (CEST) Original-Received: by nz-out-0506.google.com with SMTP id m7so367250nzf for ; Fri, 07 Sep 2007 00:15:46 -0700 (PDT) Original-Received: by 10.142.100.1 with SMTP id x1mr75807wfb.1189149345845; Fri, 07 Sep 2007 00:15:45 -0700 (PDT) Original-Received: by 10.142.185.7 with HTTP; Fri, 7 Sep 2007 00:15:45 -0700 (PDT) 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:36398 Archived-At: Hello, I am wondering if the float numbers can be reused for floats that are longer than a page. I use floats that contain program segments (source code) for a project report for my university studies. 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"); } Can someone help me do this in ConTeXt? I think I can do the splitting of the code myself if needed, but I don't know how to reuse the float number. Currently this is how I define the float: \definetyping[Program][blank=halfline] \definefloat[ProgramSegment][ProgramSegments] \setupcaption[ProgramSegment][location=top,align=right,headstyle=bold,style=bold,inbetween={}] \setuplabeltext[en][ProgramSegment=Program Segment ] And I use it like this: \placeProgramSegment[here]{Hello World} { \startProgram main() { printf("hello world!\n"); } \stopProgram } Any help will be appreciated. Thanks, William. ___________________________________________________________________________________ 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 ___________________________________________________________________________________