Numbering of figures and tables changed?
Dear list, In the book/thesis I am typesetting the many figures (Examples) and the few tables must be numbered per chapter, (Ex. 1.3, Ex. 4.17 etc) and they should appear like this in the List of Examples. Up to around 27 july this worked perfectly, automatically I should say, but with a newer version of mkiv (25 august) they come out numbered for the book as a whole and without chapter numbers. I have not changed the setups, and I can reproduce the correct result with an older version of mkiv (may) with a slightly adapted environment file. Unfortunately I do need some recent features of mkiv. The setups for the floats are: \definefloat[Example][examples] \setupfloat[Example][spacebefore=medium,spaceafter=medium,sidespacebefore=medium,sidespaceafter=medium] \setupcaption[Example][location=top,number=yes,inbetween=\blank,bodyfont=10pt] \setuplabeltext[en][Example=Ex.~] \definefloat[table][tables] \setupfloat[table][spacebefore=medium,spaceafter=medium,sidespacebefore=medium,sidespaceafter=medium] \setupcaption[table][location=top,number=yes,inbetween=\blank,bodyfont=10pt]\setuplabeltext[en][table=Table~] I tried [way=bychapter] as an argument for the captions but that did not change anything' What can I do to give me back the numbering of the floats per chapter? Or, if it is a bug in the recent Minimals, can the numbering per chapter be restored somehow? Thanks in advance. Best regards, Robert
Am 26.08.2012 um 10:33 schrieb Robert Blackstone
Dear list,
In the book/thesis I am typesetting the many figures (Examples) and the few tables must be numbered per chapter, (Ex. 1.3, Ex. 4.17 etc) and they should appear like this in the List of Examples. Up to around 27 july this worked perfectly, automatically I should say, but with a newer version of mkiv (25 august) they come out numbered for the book as a whole and without chapter numbers. I have not changed the setups, and I can reproduce the correct result with an older version of mkiv (may) with a slightly adapted environment file. Unfortunately I do need some recent features of mkiv. The setups for the floats are:
\definefloat[Example][examples] \setupfloat[Example][spacebefore=medium,spaceafter=medium,sidespacebefore=medium,sidespaceafter=medium] \setupcaption[Example][location=top,number=yes,inbetween=\blank,bodyfont=10pt] \setuplabeltext[en][Example=Ex.~]
\definefloat[table][tables] \setupfloat[table][spacebefore=medium,spaceafter=medium,sidespacebefore=medium,sidespaceafter=medium] \setupcaption[table][location=top,number=yes,inbetween=\blank,bodyfont=10pt]\setuplabeltext[en][table=Table~]
I tried [way=bychapter] as an argument for the captions but that did not change anything'
What can I do to give me back the numbering of the floats per chapter? Or, if it is a bug in the recent Minimals, can the numbering per chapter be restored somehow?
Setting the way how you want to be numbered resets only the figure counter, to show the chapter number you have to enable prefixes. \setupcaption[figure][way=bychapter,prefix=yes] \starttext \completelistoffigures \dorecurse{2} {\chapter{Chapter #1} \dorecurse{5} {\dorecurse{4}{\input knuth\par} \placefigure{Caption}{\externalfigure[dummy]} \dorecurse{4}{\input knuth\par}}} \stoptext Wolfgang
participants (2)
-
Robert Blackstone
-
Wolfgang Schuster