From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4173 Path: main.gmane.org!not-for-mail From: "Uwe Koloska" Newsgroups: gmane.comp.tex.context Subject: Re: Numbers in heads and captions Date: Wed, 21 Feb 2001 02:46:26 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <01022102462600.25740@bilbo> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035394862 23506 80.91.224.250 (23 Oct 2002 17:41:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:41:02 +0000 (UTC) Original-To: ntg-context@ntg.nl In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:4173 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4173 Hello, You wrote on Dienstag, 20. Februar 2001 20:02: >I have several problems to set the numbers in heads and captions in my own >way. I managed to find the answers by reading the manual and my archive of this list -- so if you know what to look for, you could do so too! >First, I want to set the numbers of subsubsections in the text and >maybe also in the toc as characters with a right parenthesis, e.g. > >a) Unterabschnitt > >How to say ConTeXt to set the right parenthesis? This is easy: \def\myHead#1{#1)} \setuphead[section][command=\myHead] >Second, I want to count the Figures from 1 to n in my paper. But ConTeXt >renews the counter chapterwise and produces a counter >"chapternumber.figurenumber", e.g. for the fifth figure in the paper >instead Fig. 5 I get Fig. B.3 (because it's the third figure in Chapter >B). How to switch off this feature to get simple numbers? another easy one: \setupcaptions[way=bytext] >Third, I want after the fig-numbers in the captions (only in the captions) >a dot "." or a colon ":", this colon is, of course, not permitted in a >reference related to the figure in the text like \in[ref]. This would >happen if we define a conversion for the captions with dot or colon. How >to instruct ConTeXt to handle the captionnumbers in the desired way? I don't know the answer to this one. Unfortunately there is no numbercommand for \setupcations ... Here is a small document, that shows the above in use: \setuppapersize [S6][S6] \setupsection[section-3][conversion=character] \def\myHead#1{#1)} \setuphead[section][command=\myHead] \startsectionblockenvironment [bodypart] \setupcaptions[way=bytext] \stopsectionblockenvironment \startsectionblockenvironment [appendix] \setupcaptions[way=bysection] \stopsectionblockenvironment \starttext \startbodymatter \section{test} \placefigure{}{} \section{Eins} \section{Zwei} \stopbodymatter \startappendices \section{test} \placefigure{}{} \stopappendices \stoptext Yours Uwe -- mailto:koloska@rcs.urz.tu-dresden.de http://rcswww.urz.tu-dresden.de/~koloska/ -- -- right now the web page is in german only but this will change as time goes by ;-)