From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: Prefixing figures with "T-", "P-", "A-"
Date: Thu, 18 Jan 2001 10:03:46 +0100 [thread overview]
Message-ID: <3.0.6.32.20010118100346.01c524b0@server-1> (raw)
In-Reply-To: <20010118071413.88920.qmail@web10712.mail.yahoo.com>
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
-------------------------------------------------------------------------
next prev parent reply other threads:[~2001-01-18 9:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-18 7:14 James Ramsey
2001-01-18 9:03 ` Hans Hagen [this message]
2001-01-18 17:58 James Ramsey
2001-01-19 8:33 ` Hans Hagen
2001-01-19 23:28 James Ramsey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3.0.6.32.20010118100346.01c524b0@server-1 \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).