I have the following file: \setupfloat[table][default=nonumber] \starttext \section[title={Tables without force}] Here is a table without a caption, unforced. \startplacetable[location=none] \bTABLE \bTR\bTD r1c1 \eTD\bTD r1c2\eTD\eTR \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR \eTABLE \stopplacetable Here is a table with a caption, unforced. \startplacetable[title={Table With A Caption}] \bTABLE \bTR\bTD r1c1 \eTD\bTD r1c2\eTD\eTR \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR \eTABLE \stopplacetable This is after the table with a caption. \section[title={Tables with force}] Here is a table without a caption, forced. \startplacetable[location={force,none}] \bTABLE \bTR\bTD r1c1 \eTD\bTD r1c2\eTD\eTR \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR \eTABLE \stopplacetable Here is a table with a caption, forced. \startplacetable[title={Table With A Caption},location=force] \bTABLE \bTR\bTD r1c1 \eTD\bTD r1c2\eTD\eTR \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR \eTABLE \stopplacetable This is after the table with a caption. \stoptext The second pair of tables have force added. Here is what I get: [image: image.png] Why does the last table have "Table 1", when there is a \setupfloat[table][default=nonumber]? -- T. Kurt Bond, tkurtbond@gmail.com, https://tkurtbond.github.io
On 7/17/21 8:38 AM, T. Kurt Bond wrote:
I have the following file:
\setupfloat[table][default=nonumber]
\starttext \startplacetable[title={Table With A Caption},location=force] \bTABLE \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR \eTABLE \stopplacetable \stoptext [...] Why does the last table have "Table 1", when there is a \setupfloat[table][default=nonumber]?
Hi Kurt, I think this might be what you intend: \setupcaption[table][number=no] \starttext \startplacetable[title={Table With A Caption},location=force] \bTABLE \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR \eTABLE \stopplacetable \stoptext As to your quetsion, I have no idea why this happens. Just in case it might help, Pablo -- http://www.ousia.tk
T. Kurt Bond schrieb am 17.07.2021 um 08:38:
I have the following file:
\setupfloat[table][default=nonumber]
\starttext \section[title={Tables without force}]
Here is a table without a caption, unforced.
\startplacetable[location=none] \bTABLE \bTR\bTD r1c1 \eTD\bTD r1c2\eTD\eTR \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR \eTABLE \stopplacetable
Here is a table with a caption, unforced.
\startplacetable[title={Table With A Caption}] \bTABLE \bTR\bTD r1c1 \eTD\bTD r1c2\eTD\eTR \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR \eTABLE \stopplacetable
This is after the table with a caption.
\section[title={Tables with force}]
Here is a table without a caption, forced.
\startplacetable[location={force,none}] \bTABLE \bTR\bTD r1c1 \eTD\bTD r1c2\eTD\eTR \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR \eTABLE \stopplacetable
Here is a table with a caption, forced.
\startplacetable[title={Table With A Caption},location=force] \bTABLE \bTR\bTD r1c1 \eTD\bTD r1c2\eTD\eTR \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR \eTABLE \stopplacetable
This is after the table with a caption. \stoptext
The second pair of tables have force added. [...] Why does the last table have "Table 1", when there is a \setupfloat[table][default=nonumber]?
The default value is only used when you provide no arguments to the location key which isn't the case for your last table. To get rid of the counter add "nonumber" to the location argument, e.g. \startplacetable[title=...,location={nonumber,force}] but you can also disable the counter for all table floats with \setupcaption [table] [number=no]. Wolfgang
participants (3)
-
Pablo Rodriguez
-
T. Kurt Bond
-
Wolfgang Schuster