From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58875 Path: news.gmane.org!not-for-mail From: richard.stephens@converteam.com Newsgroups: gmane.comp.tex.context Subject: Re: MKIV numbering Date: Mon, 17 May 2010 11:08:08 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1944640248==" X-Trace: dough.gmane.org 1274090920 12084 80.91.229.12 (17 May 2010 10:08:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 May 2010 10:08:40 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon May 17 12:08:37 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ODxFT-0005U9-QL for gctc-ntg-context-518@m.gmane.org; Mon, 17 May 2010 12:08:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 11A03C9ABB; Mon, 17 May 2010 12:08:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nQMwl2hStMFI; Mon, 17 May 2010 12:08:32 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 29C82C9A7C; Mon, 17 May 2010 12:08:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 319BEC9A7C for ; Mon, 17 May 2010 12:08:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MoHx9aqmzf1z for ; Mon, 17 May 2010 12:08:28 +0200 (CEST) Original-Received: from eu1sys200aog113.obsmtp.com (eu1sys200aog113.obsmtp.com [207.126.144.135]) by balder.ntg.nl (Postfix) with SMTP id F09B9C9A41 for ; Mon, 17 May 2010 12:08:27 +0200 (CEST) Original-Received: from source ([212.155.191.22]) (using SSLv3) by eu1sys200aob113.postini.com ([207.126.147.11]) with SMTP ID DSNKS/EVmzL9aQ6XK1PQaQwn1QgW8HM9wyYC@postini.com; Mon, 17 May 2010 10:08:28 UTC X-Disclaimed: 37306 X-Mailer: Lotus Notes Release 7.0.3 September 26, 2007 X-MIMETrack: Serialize by Router on G-WWH20/SRV/ALSTOM(Release 7.0.3|September 26, 2007) at 17/05/2010 12:14:17, Serialize complete at 17/05/2010 12:14:17 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:58875 Archived-At: --===============1944640248== Content-Type: text/html; charset="US-ASCII"
Oops - I forgot to change the subject, sorry for the noise!

> > Hello,
> >
> > Does anyone else  have the following problems with numbering for
> > figures, equations etc in MKIV
> >
> > 1. Using \setupnumbering[way=bysection] does not work
> > 2. The colour of references to figures etc is wrong.
> \setupinteraction[state=start,
>   color=darkgreen,contrastcolor=darkgreen,style=normal]
>  
> Marco


Thanks Marco, that works fine, but why do I need contrastcolor and what does it do?

> From the mkiv source, it looks like the inheritance is disabled at the
> moment for some reason (code is commented out).
>
> Explicit setting of :
>
>   \setupcaptions[way=bysection]
>   \setupformulas[way=bysection]
>
> works.
>
> Best wishes,
> Taco


I'm afraid this suggestion ALMOST works---it restarts the numbering in each new section, but it
does not prefix the numbers with the section number, so my previous example gives two Figure 1's.

There is code for \setupcaptions in strc-flt.mkiv which has 'way' commented out.

Regards,

Richard






Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. Registration Number: 2416188

Registered in England and Wales.

Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.



CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.



Please consider the environment before printing this e-mail



--===============1944640248== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1944640248==--