diff options
author | Hans Hagen <pragma@wxs.nl> | 2022-12-09 18:16:10 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2022-12-09 18:16:10 +0100 |
commit | 3bdc9b9072bba774cd5c604fe185d39ddbdc911e (patch) | |
tree | b8efd7c6a858544767c1d8a9a4efb20f60c039db /tex/context/base/mkxl/strc-flt.mklx | |
parent | fb63eac7402fbd3bb00d7591cc4fbac1b2db2582 (diff) | |
download | context-3bdc9b9072bba774cd5c604fe185d39ddbdc911e.tar.gz |
2022-12-09 16:33:00
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 |