Return-Path:<gus@cmu-ee-faraday.ARPA>
Received: from CMU-EE-FARADAY.ARPA by CMU-CS-A.ARPA; 13 Oct 84 18:31:38 EDT
Received: by cmu-ee-faraday.ARPA (4.12/4.7)
	id <AA08664 gus>; Sat, 13 Oct 84 18:28:20 edt;
Date: Sat, 13 Oct 84 18:28:20 edt
From: Augustus Uht <gus@cmu-ee-faraday.ARPA>
Message-Id: <8410132228.AA08664@cmu-ee-faraday.ARPA>
To: bovik@a
Subject: alternate Scribe figure numbering

x
Received: from CMU-CS-VLSI.ARPA by cmu-ee-faraday.ARPA (4.12/4.7)
	id <AA10315 bryant@cmu-cs-vlsi.arpa>; Fri, 12 Oct 84 15:28:08 edt;
Date: 12 Oct 1984 15:12-EST
From: Randy.Bryant@CMU-CS-VLSI.ARPA
Subject: Figure numbering in scribe
To: gus@faraday
Message-Id: <466456368/bryant@CMU-CS-VLSI>
Status: RO

I just figured this out yesterday.  You need to redefine the counters
for figure and table numbering.  The tricky part is making it stop
reseting the counter with each chapter or section.  To do this, you
define a dummy counter and declare it as the "within" counter for
figurecounter and tablecounter.  Here's the code.  It works.


@counter(foo, numbered <@1>, referenced <@1>, incrementedby reference)
@modify(figurecounter, numbered <Figure @1.>, referenced <@1>, within foo)
@modify(tablecounter, numbered <Table @1.>, referenced <@1>, within foo)



Received: from CMU-CS-A.ARPA by cmu-ee-faraday.ARPA (4.12/4.7)
	id <AA21575 TL19@CMU-CS-A.ARPA>; Sat, 13 Oct 84 00:12:28 edt;
Date: 13 Oct 84 0007 EDT (Saturday)
From: Tom.Lane@CMU-CS-A.ARPA
To: Augustus.Uht@CMU-EE-FARADAY.ARPA
Subject: Re: Scribe figure numbering
Message-Id: <13Oct84.000748.TL19@CMU-CS-A.ARPA>
Status: RO

I got the following hack from Ed Gehringer.  It works OK for document
type Article; for other document types, you might have to twiddle the
Numbered parameter to make the captions look the same as they did
before.  Note that atsigns have to be doubled inside the Numbered
parameter.

@Counter(FigureCounter,Table "FigureContents",ContentsEnv tc2,
	 Numbered <@@b[Figure@@ @1:@@ @@ @@$]>,
	 Referenced "@1",Init 0)

	-- tom lane


Received: from CMU-CS-ZOG.ARPA by cmu-ee-faraday.ARPA (4.12/4.7)
	id <AA29928 nsb@cmu-cs-zog.arpa>; Sat, 13 Oct 84 11:35:49 edt;
Date: 13 Oct 1984 11:26-EST
From: Nathaniel.Borenstein@CMU-CS-ZOG.ARPA
Subject: scribe tables
To: gus@faraday
Message-Id: <466529200/nsb@CMU-CS-ZOG>
Status: RO

What I do is to not use "table" at all, but use "nsbtable" which is
defined with the following statements.  (Note that the analogy for
figures is pretty straightforward; you can figure it out by comparing
the "nsbtable" definition below with the "table" definition in the
standard library.)  Please let me know if anyone suggests a better
(i.e. simpler) method that works.  (The "obvious" way of doing it
causes the numbering to start over at 1 for each new chapter.)

@Counter(nsbtableCounter,table "TableContents",ContentsEnv tc2,
	Numbered <@@b[Table@@ @1:@@ @@ ]@@$>,
	Referenced "@1",Init 0)
@Define(nsbtable,Nofill,Spaces Kept,Use R,BlankLines kept,Float,
	Above 1,Below 1,Counter nsbtableCounter,NumberLocation LFL)



Another solution, probably less general, is:

@Counter(FigureCounter,Table "FigureContents",ContentsEnv tc2,
	 numbered <@@b[Figure @1: ]>, referenced <@1>,Init 0)

This also works. The "numbered" template in the latter solution gives the
same bold style of "figure" as in regular article-type documents.

						---Gus Uht
