What's the easiest way to create numbered captions?
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
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
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
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 -----------------------------------------------------------------
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