Numberconversion problem in caption prefixes
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
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éry Ogam
2013/11/12 Géry 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=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
Am 12.11.2013 um 02:14 schrieb Géry 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=Romannumerals] \setupcaption[way=bychapter, prefixsegments=chapter]
\defineconversionset [section:chapter] [] [R] \defineconversionset [float:figure] [] [n] \setuphead [chapter] [sectionconversionset=section:chapter] \setupcaption [way=bychapter, prefixsegments=chapter, prefixconversionset=float:figure] Wolfgang
participants (2)
-
Géry Ogam
-
Wolfgang Schuster