diff options
Diffstat (limited to 'tex/context/base/mkxl/strc-flt.mklx')
-rw-r--r-- | tex/context/base/mkxl/strc-flt.mklx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tex/context/base/mkxl/strc-flt.mklx b/tex/context/base/mkxl/strc-flt.mklx index 5eb18baac..192fd137a 100644 --- a/tex/context/base/mkxl/strc-flt.mklx +++ b/tex/context/base/mkxl/strc-flt.mklx @@ -379,7 +379,12 @@ \setupcurrentfloatcaption[#settings]% \edef\currentfloatcounter{\namedcounterparameter\currentfloat\s!name}% \iftrialtypesetting\strc_counters_save\currentfloatcounter\fi - \strc_counters_increment\currentfloatcounter + \doifelse{\floatcaptionparameter\c!number}\v!yes + {\global\nofloatnumberfalse}% + {\global\nofloatnumbertrue}% + \ifnofloatnumber\else + \strc_counters_increment\currentfloatcounter + \fi \strc_counters_register_component \s!float \setupcurrentfloatcaption @@ -391,7 +396,7 @@ [\s!name=\currentfloat, \s!counter=\currentfloatcounter,% \s!hascaption=\v!yes,% - \s!hasnumber=\v!yes,% + \s!hasnumber=\ifnofloatnumber\v!no\else\v!yes\fi,% \s!hastitle=\v!yes]% [#userdata]% \glet\m_strc_floats_previous_number\m_strc_counters_last_registered_index |