* float names and lists
@ 2011-11-24 20:32 Idris Samawi Hamid ادريس سماوي حامد
2011-11-25 1:51 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-25 2:02 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 2 replies; 8+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2011-11-24 20:32 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: float names and lists
2011-11-24 20:32 float names and lists Idris Samawi Hamid ادريس سماوي حامد
@ 2011-11-25 1:51 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-25 2:02 ` Idris Samawi Hamid ادريس سماوي حامد
1 sibling, 0 replies; 8+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2011-11-25 1:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, 24 Nov 2011 13:32:04 -0700, Idris Samawi Hamid ادريس سماوي حامد
<ishamid@colostate.edu> wrote:
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: float names and lists
2011-11-24 20:32 float names and lists Idris Samawi Hamid ادريس سماوي حامد
2011-11-25 1:51 ` Idris Samawi Hamid ادريس سماوي حامد
@ 2011-11-25 2:02 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-25 5:17 ` Wolfgang Schuster
1 sibling, 1 reply; 8+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2011-11-25 2:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1238 bytes --]
On Thu, 24 Nov 2011 13:32:04 -0700, Idris Samawi Hamid ادريس سماوي حامد
<ishamid@colostate.edu> 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
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
[-- Attachment #1.2.1: Type: text/html, Size: 1883 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: float names and lists
2011-11-25 2:02 ` Idris Samawi Hamid ادريس سماوي حامد
@ 2011-11-25 5:17 ` Wolfgang Schuster
2011-11-25 14:09 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2011-11-25 5:17 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 636 bytes --]
Am 25.11.2011 um 03:02 schrieb Idris Samawi Hamid ادريس سماوي حامد:
> On Thu, 24 Nov 2011 13:32:04 -0700, Idris Samawi Hamid ادريس سماوي حامد <ishamid@colostate.edu> 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
[-- Attachment #1.2: Type: text/html, Size: 1924 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: float names and lists
2011-11-25 5:17 ` Wolfgang Schuster
@ 2011-11-25 14:09 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-25 16:11 ` Otared Kavian
0 siblings, 1 reply; 8+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2011-11-25 14:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, 24 Nov 2011 22:17:43 -0700, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> 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 ...
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: float names and lists
2011-11-25 14:09 ` Idris Samawi Hamid ادريس سماوي حامد
@ 2011-11-25 16:11 ` Otared Kavian
2011-11-25 19:01 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 1 reply; 8+ messages in thread
From: Otared Kavian @ 2011-11-25 16:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 25 nov. 2011, at 15:09, Idris Samawi Hamid ادريس سماوي حامد wrote:
> On Thu, 24 Nov 2011 22:17:43 -0700, Wolfgang Schuster <schuster.wolfgang@googlemail.com> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: float names and lists
2011-11-25 16:11 ` Otared Kavian
@ 2011-11-25 19:01 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-25 20:10 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2011-11-25 19:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Otared,
On Fri, 25 Nov 2011 09:11:05 -0700, Otared Kavian <otared@gmail.com> 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.
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: float names and lists
2011-11-25 19:01 ` Idris Samawi Hamid ادريس سماوي حامد
@ 2011-11-25 20:10 ` Hans Hagen
0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2011-11-25 20:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
Cc: Idris Samawi Hamid ادريس
سماوي حامد
On 25-11-2011 20:01, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Hi Otared,
>
> On Fri, 25 Nov 2011 09:11:05 -0700, Otared Kavian <otared@gmail.com> 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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-11-25 20:10 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-24 20:32 float names and lists Idris Samawi Hamid ادريس سماوي حامد
2011-11-25 1:51 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-25 2:02 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-25 5:17 ` Wolfgang Schuster
2011-11-25 14:09 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-25 16:11 ` Otared Kavian
2011-11-25 19:01 ` Idris Samawi Hamid ادريس سماوي حامد
2011-11-25 20:10 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).