From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112632 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Reviczky via ntg-context Newsgroups: gmane.comp.tex.context Subject: prefixstarter in captions Date: Sun, 29 Aug 2021 01:32:07 +0100 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2971031166482126284==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5761"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Adam Reviczky To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 29 02:34:14 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mK8m5-00015o-AG for gctc-ntg-context-518@m.gmane-mx.org; Sun, 29 Aug 2021 02:34:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2A0C7286D51; Sun, 29 Aug 2021 02:33:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rr1h1r8wxztu; Sun, 29 Aug 2021 02:33:32 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9FD7A286E1B; Sun, 29 Aug 2021 02:33:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9CE3A286E34 for ; Sun, 29 Aug 2021 02:33:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wh5K5Cpub4rr for ; Sun, 29 Aug 2021 02:33:25 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.43; helo=mail-ej1-f43.google.com; envelope-from=reviczky@gmail.com; receiver= Original-Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8711B286BFF for ; Sun, 29 Aug 2021 02:32:19 +0200 (CEST) Original-Received: by mail-ej1-f43.google.com with SMTP id e21so22415838ejz.12 for ; Sat, 28 Aug 2021 17:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=k+zqBMR9zNj+jC4itHaeNsMKBVpRrpYoxpm0Bxk4tUA=; b=WR/8Q4RMhIpMheIVpS519PkEszMBfX1sJiZ59N8bTbuC0lxyiIeUeYeG84RBskQ2zm u/S3hWKZYK+jwC+1/Oslpeo4+JFEdpkIbLvoofvScXM76UuGnGcCt3nOGZn8Xj+ViTuY AZCTXLzZ9g4gkT8U4ivG7/UJSQ8DSpr0MLrBig4Mcxt6FQ5/4uKqhNEWgu9qvXkqMfQM 0iGZp2R9RsC0QTSGxVdh18cRUKs2bFQQsYnrXA8Y/QTTja+qx/lk7DrGs4asKEzgfv4h 0oqBfN7JQRgVD7gUxBBe/OLHZI+2z+ojg1grAGQ1joB3QS5HB4ZfDk5GvJmwQGAWjwKh cB5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=k+zqBMR9zNj+jC4itHaeNsMKBVpRrpYoxpm0Bxk4tUA=; b=P7C54HRitOO9bnUcJT+rQhPM1eFojRwyO/iKKKv5dfII4bMaM412f/nBap//N7GNdn R5cfAQ82CZ3tUZVpBHPoWkN/M8tXwcBr+Q/3HuIWHBSGFxTa42ELPQd5JLC/wsB1DP3q enGe0HuoF6nh7ZqQpJf75KfVefjPMSZuZavQLpeQ9toRS4pPymaRCuUn6yxjyAxz15eg QIOUDcOIitGN7lhSXQc4Cq3ADMukRfPdMuZViPhjKjVoXpqE7rjA2jWPhc1tF+QxDwWj pT8+/OsJnqmSt4RtPI+6eCNGZmqcc+7UQYEb5bhnEaFKLk4C9HL4LQsmvxxmuEgiWi9x HfLQ== X-Gm-Message-State: AOAM5301qusH3T5F17dwCvuoQb2T0rzvfWTaVElgUd0c5fnTaJfoKDRj xf5W7F58wcc9bzsfgJpajuttatXU1G4HaKfM+C2f737O556QfQ== X-Google-Smtp-Source: ABdhPJxGd4u/rxcOUk+tdSVsbgaeiNgbyUfOnVnm2lx7s2vq4njv4m3wO/ORklG8+XUeaRWhBY35YnjiJ21cM7SgSOo= X-Received: by 2002:a17:906:1d19:: with SMTP id n25mr13482054ejh.11.1630197138733; Sat, 28 Aug 2021 17:32:18 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.io gmane.comp.tex.context:112632 Archived-At: --===============2971031166482126284== Content-Type: multipart/alternative; boundary="0000000000005e401205caa7d9c9" --0000000000005e401205caa7d9c9 Content-Type: text/plain; charset="UTF-8" Hi, There was a question on the list before on prepending to the numberpart of a caption with the 'numberstarter' command, which works just fine ( https://mailman.ntg.nl/pipermail/ntg-context/2017/089142.html). I wanted to try the same but for prepending to the entire prefix (not just the number part) when prefixsegments are used, however using 'prefixstarter' does not seem to make a difference. For the sake of the example I have added the numberstarter in as well, just for comparison. Caption with the example reads "Figure 1.S.1" whereas I was expecting "Figure C.1.S.1". MWE: \setupfloatcaption[figure][number=yes,way=bytext,prefix=yes,prefixstarter={C.},numberstarter={S.}] \starttext \startchapter[title={Cow}] \startplacefigure[title={Custom caption}] \externalfigure[cow] \stopplacefigure \stopchapter \stoptext Not sure whether prefixstarter is the intended command to use, but the wiki of setupcation (https://wiki.contextgarden.net/Command/setupcaption) says it inherits from setupcounter which has both numberstarter and prefixstarter defined in the same way. Adam --0000000000005e401205caa7d9c9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

There was a question on = the list before on prepending to the numberpart of a caption with the '= numberstarter' command, which works just fine (https://mailman.ntg.nl/pi= permail/ntg-context/2017/089142.html).

I wante= d to try the same but for prepending to the entire prefix (not just the num= ber part) when prefixsegments are used, however using 'prefixstarter= 9; does not seem to make a difference.

For the sak= e of the example I have added the numberstarter in as well, just for compar= ison.

Caption with the example reads "Figure = 1.S.1" whereas I was expecting "Figure C.1.S.1".
<= br>
MWE:

\setupfloatcaption[figure][numb= er=3Dyes,way=3Dbytext,prefix=3Dyes,prefixstarter=3D{C.},numberstarter=3D{S.= }]
\starttext
\startchapter[title=3D{Cow}]
\startplacefigure[title= =3D{Custom caption}]
\externalfigure[cow]
\stopplacefigure
\stopch= apter
\stoptext

Not sure whether prefixstar= ter is the intended command to use, but the wiki of setupcation (https://wiki.contextg= arden.net/Command/setupcaption) says it inherits from setupcounter whic= h has both numberstarter and prefixstarter defined in the same way.

Adam

--0000000000005e401205caa7d9c9-- --===============2971031166482126284== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2971031166482126284==--