What's the easiest way to create numbered captions?
![](https://secure.gravatar.com/avatar/151dae33d910926772e15645f1f7c391.jpg?s=120&d=mm&r=g)
Hello! I've faced a problem briefly discussed before... when the table (natural table) placed using sample below is not split to pages: \placetable[here][mytable1]{Table Caption}{ \bTABLE[split=repeat] \bTR \bTH Header\eTH \eTR \dorecurse{150}{ \bTR \bTD row text \eTD \eTR} \eTABLE } Everything works fine if I do not use \placetable. But I do not have the numbered caption in this case and cannot reference this table in a link. Is there any other simple way to give tables (even not only tables) a caption with number? I almost made it using the numbered labels the like below: \definelabel[tableLable][text=Table,headstyle=boldslanted] \tableLable \em{ Table Caption} \reference[mytable1]{Table Caption} \bTABLE[split=repeat] \bTR \bTH Header\eTH \eTR \dorecurse{150}{ \bTR \bTD row text \eTD \eTR} \eTABLE This way I can have numbered caption where I need, which is almost cool. But the problem is that I cannot create table link with text "Table N.NTable_Caption" \in{Table}[mytable1] gives the link like "Table Table_Caption" and I cannot add number there :( I hope I miss something really obvious, Thanks everyone in advance! -- Regards. Eugene Toporov
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Eugene Toporov wrote:
Hello!
I've faced a problem briefly discussed before... when the table (natural table) placed using sample below is not split to pages:
Would this help? \placetable[here][mytable1] {Table Caption}{\kern -\baselineskip \strut} \bTABLE[split=repeat] \bTR \bTH Header\eTH \eTR \dorecurse{150}{ \bTR \bTD row text \eTD \eTR} \eTABLE Taco
![](https://secure.gravatar.com/avatar/151dae33d910926772e15645f1f7c391.jpg?s=120&d=mm&r=g)
Taco, This really helped! Thanks! One small issue appeared, though. Sometimes I get title on one page and the table on the following. -- Regards. Eugene
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Taco Hoekwater wrote:
Eugene Toporov wrote:
Taco,
This really helped! Thanks!
One small issue appeared, though. Sometimes I get title on one page and the table on the following.
I'd opt for some judicious use of the \page command where this happens.
or (in the case of natural tables) try splitmethod=b or set \extratblsplitheight to some value Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/151dae33d910926772e15645f1f7c391.jpg?s=120&d=mm&r=g)
Thanks Taco, Hans! I did not really get what you both meant in your replies but having added \testpage[5] before the table title seems to be doing the trick. Is this something that can be used here?
One small issue appeared, though.
Sometimes I get title on one page and the table on the following.
I'd opt for some judicious use of the \page command where this happens.
or (in the case of natural tables) try splitmethod=b or set \extratblsplitheight to some value
-- Regards. Eugene Toporov
participants (3)
-
Eugene Toporov
-
Hans Hagen
-
Taco Hoekwater