From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3812 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Prefixing figures with "T-", "P-", "A-" Date: Thu, 18 Jan 2001 10:03:46 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010118100346.01c524b0@server-1> References: <20010118071413.88920.qmail@web10712.mail.yahoo.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394528 20353 80.91.224.250 (23 Oct 2002 17:35:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:35:28 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: James Ramsey In-Reply-To: <20010118071413.88920.qmail@web10712.mail.yahoo.com> Xref: main.gmane.org gmane.comp.tex.context:3812 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3812 At 11:14 PM 1/17/01 -0800, James Ramsey wrote: >Mostly, I just use LaTeX for reports, esp. lab >reports. I'm a student. I was hoping to use ConTeXt to >do the next couple reports. (If I don't get a chance >to, it's no biggie--but I would like to use a macro >package that seems to be put together with >customization in mind,) Anyway, currently, the way >figure numbering is done in the lab reports is that in >the "Results" section, the tables and graphs are >labeled Table 1, 2, Figure 1, 2, etc., but in the >Theory section, any figures are labeled Figure T-1, >Figure T-2, etc., and in the Procedure and Appendix, >the prefixes for the figures and tables are "P-" and >"A-", respectively. I wouldn't call this the prettiest >prefixing scheme. Mostly this is there so that the >tables and figures in the Results section can start at >1. I've done this basically by redefining \thefigure >as T-\arabic{figure}, P-\arabic{figure}, etc., which >means that in cross-references, the prefixes will >appear as part of the table and figure numbers, which >is what I want. > >Is there a way that I can do this in ConTeXt? I saw >something about numbercommand, but I wasn't sure if >that's what I was looking for or not. This can be set up with the "way=bysomething" keys, most variables permit this. \starttext \startsectionblockenvironment [bodypart] \setupcaptions[way=bytext] \stopsectionblockenvironment \startsectionblockenvironment [appendix] \setupcaptions[way=bychapter] \stopsectionblockenvironment \startbodymatter \chapter{test} \placefigure{}{} \stopbodymatter \startappendices \chapter{test} \placefigure{}{} \stopappendices \stoptext >A couple other questions while I'm at it: > >1) Is there a way to prefix the page number so that >the prefix appears in a cross-reference, i.e. so that >a reference to page A-3 in the appendix will appear as >"A-1" automatically. \setuppagenumbering[chapternumber=yes] >2) Is there a way to do multiline headers and footers >in ConTeXt? \setupheadertexts[\vbox{bla bla \endgraf bla bla}] Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------