Dear gang, Consider the following: ================= \definefloat[tablecw] % \setupfloat[tablecw] \setupcaption[tablecw][prefix=Table] \starttext \setupfloats[location=middle] \placetable [here] [tablecw:test]{A Caption.} {\starttable[|c|c|c|] \HL \VL Test \VL Test \VL Test \VL\FR \HL \stoptable} \setupfloats[location=middle] \placetablecw [here] [tablecw:test]{A Caption.} {\starttable[|c|c|c|] \HL \VL Test \VL Test \VL Test \VL\FR \HL \stoptable} \placelistoftables % \placelistoftablescws \stoptext ================= Two challenges: 1. How do I change the prefix that heads the caption of a table? For example, \definefloat[tablecw] produces Tablecw 1 I want to keep the command name of the float but change the prefix. I tried things like \setupcaption[tablecw][prefix=My Table] \setupcaption[tablecw][name=My Table] but no success. 2. \placelistoftablescws produces an undefined control sequence: What am I missing here? Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523
On Thu, 24 Nov 2011 13:32:04 -0700, Idris Samawi Hamid ادريس سماوي حامد
1. How do I change the prefix that heads the caption of a table? For example, \definefloat[tablecw] produces Tablecw 1 I want to keep the command name of the float but change the prefix. I tried things like \setupcaption[tablecw][prefix=My Table] \setupcaption[tablecw][name=My Table] but no success.
\setuplabeltext[tablecw=Table] But challenge 2 remains unsolved. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523
On Thu, 24 Nov 2011 13:32:04 -0700, Idris Samawi Hamid ادريس سماوي حامد
2. \placelistoftablescws produces an undefined control sequence: What am I missing here?
Experimenting from here, it seems there has been a protocol change: Given \definefloat we used to have \placelistoffloats with 's' at the end. Now it's just \placelistoffloat So the following now works: ============ \definefloat[tablecw] \setuplabeltext[tablecw=Table] \starttext \setupfloats[location=middle] \placetable [here] [tablecw:test]{A Regular Caption.} {\starttable[|c|c|c|] \HL \VL Test \VL Test \VL Test \VL\FR \HL \stoptable} \setupfloats[location=middle] \placetablecw [here] [tablecw:test]{An Alternate Caption.} {\starttable[|c|c|c|] \HL \VL Test \VL Test \VL Test \VL\FR \HL \stoptable} \placelistoftables \placelistoftablecw \stoptext ============ Still, a criterium=component option etc would be quite useful, as mentioned in another message ... Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523
Am 25.11.2011 um 03:02 schrieb Idris Samawi Hamid ادريس سماوي حامد:
On Thu, 24 Nov 2011 13:32:04 -0700, Idris Samawi Hamid ادريس سماوي حامد
wrote: 2. \placelistoftablescws produces an undefined control sequence: What am I missing here?
Experimenting from here, it seems there has been a protocol change:
Given \definefloat
we used to have
\placelistoffloats
with 's' at the end. Now it's just
\placelistoffloat
It works when you give \definefloat a second argument with the plural name of your float. Wolfgang
On Thu, 24 Nov 2011 22:17:43 -0700, Wolfgang Schuster
It works when you give \definefloat a second argument with the plural name of your float.
Ah! Thank you, Wolfgang, for pointing that out! Missed it completely ... Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523
On 25 nov. 2011, at 15:09, Idris Samawi Hamid ادريس سماوي حامد wrote:
On Thu, 24 Nov 2011 22:17:43 -0700, Wolfgang Schuster
wrote: It works when you give \definefloat a second argument with the plural name of your float.
Ah! Thank you, Wolfgang, for pointing that out! Missed it completely …
Hi Idriss, By the way, you had a mistyping in your code:
2. \placelistoftablescws produces an undefined control sequence: What am I missing here?
…………………..^ … it should be \placelistoftablecws Then everything works as Wolfgang pointed out. Best regards: OK
Hi Otared,
On Fri, 25 Nov 2011 09:11:05 -0700, Otared Kavian
By the way, you had a mistyping in your code:
2. \placelistoftablescws produces an undefined control sequence: What am I missing here?
…………………..^ … it should be \placelistoftablecws Then everything works as Wolfgang pointed out.
Ah, u caught that ;-) OTOH it was only in my list post, once I added the plural arg here all works. Hans is adding criterium=component to the next beta :-) so in a way it's all moot, but it's been a very good exercise nonetheless. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523
On 25-11-2011 20:01, Idris Samawi Hamid ادريس سماوي حامد wrote:
Hi Otared,
On Fri, 25 Nov 2011 09:11:05 -0700, Otared Kavian
wrote: By the way, you had a mistyping in your code:
2. \placelistoftablescws produces an undefined control sequence: What am I missing here?
…………………..^ … it should be \placelistoftablecws Then everything works as Wolfgang pointed out.
Ah, u caught that ;-) OTOH it was only in my list post, once I added the plural arg here all works.
Hans is adding criterium=component to the next beta :-) so in a way it's all moot, but it's been a very good exercise nonetheless.
It's probabaly already in the beta but it might be that the garden blocks this new feature till there is a proper wiki entry -) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
Idris Samawi Hamid ادريس سماوي حامد
-
Otared Kavian
-
Wolfgang Schuster