ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* prefixstarter in captions
@ 2021-08-29  0:32 Adam Reviczky via ntg-context
  0 siblings, 0 replies; only message in thread
From: Adam Reviczky via ntg-context @ 2021-08-29  0:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Adam Reviczky


[-- Attachment #1.1: Type: text/plain, Size: 1089 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1535 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-29  0:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-29  0:32 prefixstarter in captions Adam Reviczky via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).