From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85206 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?G=C3=A9ry_Ogam?= Newsgroups: gmane.comp.tex.context Subject: Numberconversion problem in caption prefixes Date: Tue, 12 Nov 2013 02:14:19 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1568588536==" X-Trace: ger.gmane.org 1384218860 10964 80.91.229.3 (12 Nov 2013 01:14:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Nov 2013 01:14:20 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 12 02:14:26 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vg2Yk-0002Yi-H7 for gctc-ntg-context-518@m.gmane.org; Tue, 12 Nov 2013 02:14:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 084981022E; Tue, 12 Nov 2013 02:14:25 +0100 (CET) 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 eNavF55fMHLp; Tue, 12 Nov 2013 02:14:22 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 96843101F7; Tue, 12 Nov 2013 02:14:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 67B9B101F7 for ; Tue, 12 Nov 2013 02:14:21 +0100 (CET) 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 JmTFSS7NVCqJ for ; Tue, 12 Nov 2013 02:14:20 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id DE2BE101EB for ; Tue, 12 Nov 2013 02:14:19 +0100 (CET) Original-Received: from mail-we0-x22d.google.com (mail-we0-x22d.google.com [IPv6:2a00:1450:400c:c03::22d]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAC1EJXk016413 for ; Tue, 12 Nov 2013 02:14:19 +0100 Original-Received: by mail-we0-f173.google.com with SMTP id u57so5387831wes.32 for ; Mon, 11 Nov 2013 17:14:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=GNSU9X5Lcdh85NUsQlfHliyz7dAwNV/bUnEFHLKbZs4=; b=hE1J6VhQpwwrep7XkX3VRdaf1+7CfH0zER7wtgX0NYRJVVGvMHw5a9NPtaTulrwT3C 4XomWmJx/bo6e+FiT7lITVtWQ6JjIxnJ47RpR+G641isMDzhStCSiitC/Xn8Qcf1vb52 8X5G0HNrQwqHD/Ij1jfQVZH+bX/1cgn3ka4MQFVjEQXn0X1DtImALUBeHoxw5oPBD+Nl JGTibWz550jkOu/183g4dyLs5eh5lIqbB/bsAOQWnIMhOKDRuHT0p3EnXcAE1MGEkTcQ HKRhcechHU1buqvIil+n9Zy8lWc0EgCuROZSPgfKyHyAcb8/ckNLmhhm3Sy0QXAuooyX 6yfQ== X-Received: by 10.180.95.202 with SMTP id dm10mr14064738wib.62.1384218859107; Mon, 11 Nov 2013 17:14:19 -0800 (PST) Original-Received: by 10.216.244.4 with HTTP; Mon, 11 Nov 2013 17:14:19 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::22d; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KMpejmE - b10e1f7ddcbb - 20131112 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85206 Archived-At: --===============1568588536== Content-Type: multipart/alternative; boundary=f46d044304ce637f4404eaf0910d --f46d044304ce637f4404eaf0910d Content-Type: text/plain; charset=UTF-8 Hello, There is a numberconversion problem in caption prefixes. For instance, if chapter numbers are set to Romannumerals, the conversion of the caption prefixes depends on the presence of a section Minimal example: \setuphead[chapter][conversion=Romannumerals] \setupcaption[way=bychapter, prefixsegments=chapter] \starttext \chapter{Cool} \placefigure{A cow}{\externalfigure[cow]} \chapter{Cat} \section{Mouse} \section{Dog} \placefigure{A cow}{\externalfigure[cow]} \stoptext The previous code displays an inconsistent caption prefix (first time a Romannumeral, second time a number): I Cool [figure] Figure I.1 A cow II Cat 2.1 Mouse 2.2 Dog [figure] Figure 2.1 A cow --f46d044304ce637f4404eaf0910d Content-Type: text/html; charset=UTF-8
Hello,

There is a numberconversion problem in caption prefixes. For instance, if chapter numbers are set to Romannumerals, the conversion of the caption prefixes depends on the presence of a section

Minimal example:

\setuphead[chapter][conversion=Romannumerals]
\setupcaption[way=bychapter, prefixsegments=chapter]


\starttext

\chapter{Cool}
\placefigure{A cow}{\externalfigure[cow]}

\chapter{Cat}
\section{Mouse}
\section{Dog}
\placefigure{A cow}{\externalfigure[cow]}

\stoptext


The previous code displays an inconsistent caption prefix (first time a Romannumeral, second time a number):

I Cool
[figure] Figure I.1 A cow

II Cat
2.1 Mouse
2.2 Dog
[figure] Figure 2.1 A cow
--f46d044304ce637f4404eaf0910d-- --===============1568588536== 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 ___________________________________________________________________________________ --===============1568588536==--