[NTG-context] MKIV caption separator, revisited

Meer, Hans van der H.vanderMeer at uva.nl
Mon Oct 10 12:29:49 CEST 2016


Thanks I did not know the correct designations for the various parts of the captionlabel: the prefixconnector and the numberstopper. It is clear now.
Hans van der Meer




On 10 Oct 2016, at 10:40, Wolfgang Schuster <schuster.wolfgang at gmail.com<mailto:schuster.wolfgang at gmail.com>> wrote:

Wolfgang Schuster<mailto:schuster.wolfgang at gmail.com>
10. Oktober 2016 um 10:39
prefixconnector is the separator between the section number (=prefix) and the float number (=figure number), the symbol at the end of the float number is called numberstopper. In your example you don’t have a section which can act as prefix number no did you change which prefixes should be shown (by default only chapters are used as prefix).

The suffix key you use (together with suffixconnector and suffixstopper) is used to show the number for subfigures, e.g. figure 3.a.
Here is a working example for the use of the prefixconnector key.

\starttext

\section{This is a section}

\setupcaptions[prefixsegments=section,prefixconnector=-]

\startplacefigure[title=\tex{setupcaptions[prefixconnector=-]}]
\externalfigure[dummy][width=.5\textwidth]
\stopplacefigure

\stoptext

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context at ntg.nl<mailto:ntg-context at 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
___________________________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20161010/65c8697c/attachment.html>


More information about the ntg-context mailing list