From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85358 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?G=C3=A9ry_Ogam?= Newsgroups: gmane.comp.tex.context Subject: Re: Numberconversion problem in caption prefixes Date: Thu, 21 Nov 2013 16:25:31 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0501460759==" X-Trace: ger.gmane.org 1385047533 2361 80.91.229.3 (21 Nov 2013 15:25:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2013 15:25:33 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 21 16:25:40 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 1VjW8Q-0007tO-33 for gctc-ntg-context-518@m.gmane.org; Thu, 21 Nov 2013 16:25:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5FE5E10212; Thu, 21 Nov 2013 16:25:37 +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 0Q12aV8vSMEg; Thu, 21 Nov 2013 16:25:35 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id BE244101EA; Thu, 21 Nov 2013 16:25:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B3446101EA for ; Thu, 21 Nov 2013 16:25:34 +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 lvrVeq0GRHw0 for ; Thu, 21 Nov 2013 16:25:33 +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 1DC63101E5 for ; Thu, 21 Nov 2013 16:25:33 +0100 (CET) Original-Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rALFPWjX028475 for ; Thu, 21 Nov 2013 16:25:32 +0100 Original-Received: by mail-wi0-f181.google.com with SMTP id f4so1216899wiw.14 for ; Thu, 21 Nov 2013 07:25:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qd6aHRN5gpyUYY2RvJyTznYzmUV4+C2LdMxxO3t1d9I=; b=bpEBXwD2GtGoUSpe7h4d6cNTs+9YkCxmiRfr0/jRHZDe7Ogzx0SSWH8SKTsnb/xyAU o/cKM6VL3R4bnTUtMh+FjI7dNy1TtGGN8CCV1skPx00igYnAnNvwOu+eEdK6fMOOHoU2 K61ZI/91HapAWh9O7ueVjPnm6dhwYsgwQe2uiYJy+zVtYOUxKoNMh42Q9EcmhCZiBJr+ LYI9JmWcH+PVkshs0qCrVXYImXfDen0nGfQx9UlXUCEskmms3WVyVE+4nNZ75Sryo/z0 J7Ipz8XwQAVH0T/zxsGiPN6oiNmsNQAhOsrnLrxcasKeObInbiAlGHroD+7X+zpV1jUh pWxQ== X-Received: by 10.180.198.79 with SMTP id ja15mr6303619wic.36.1385047531949; Thu, 21 Nov 2013 07:25:31 -0800 (PST) Original-Received: by 10.216.244.4 with HTTP; Thu, 21 Nov 2013 07:25:31 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::235; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KQfpwzi - 804bc14dfa0a - 20131121 (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:85358 Archived-At: --===============0501460759== Content-Type: multipart/alternative; boundary=047d7b62425223941a04ebb18264 --047d7b62425223941a04ebb18264 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It should display: I Cool [figure] Figure 1.1 A cow % <-- not: Figure I.1 A cow II Cat 2.1 Mouse 2.2 Dog [figure] Figure 2.1 A cow Could you look at this weird prefix conversion behaviour Hans? G=C3=A9ry Ogam 2013/11/12 G=C3=A9ry Ogam > 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=3DRomannumerals] > \setupcaption[way=3Dbychapter, prefixsegments=3Dchapter] > > > \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 > --047d7b62425223941a04ebb18264 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It should display:

I Cool
[figure] Figure 1.1 A cow % <-- not: = Figure I.1 A cow

II Cat
= 2.1 Mouse
2.2 Dog
[figure] Figure 2.1 A cow
<= br>

Could you look at this weird prefix conversion be= haviour Hans?



G=C3=A9ry Ogam=


2013/11/12 G=C3=A9ry Ogam <maggyero@gm= ail.com>
Hello,

There is a numberconversion prob= lem in caption prefixes. For instance, if chapter numbers are set to Romann= umerals, the conversion of the caption prefixes depends on the presence of = a section

Minimal example:

\setuphe= ad[chapter][conversion=3DRomannumerals]
\setupcaption[way=3Dbycha= pter, prefixsegments=3Dchapter]


\st= arttext

\chapter{Cool}
\placefigure{A cow}{\externalf= igure[cow]}

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

\stoptext


The previous code displays an inconsistent caption prefix (first time a Ro= mannumeral, 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

--047d7b62425223941a04ebb18264-- --===============0501460759== 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 ___________________________________________________________________________________ --===============0501460759==--