combination with an additional line centered in a placefigure?
Hi, as soon I enter the cbox-line the combination is not longer centered. I tried to embed the combination in a cbox, but that had no effect. Has anyone a hint how to center the combination successfullly? \starttext \placefigure [force][fig:xy] {captiontext} {\startcombination[2*1] {\externalfigure[xxx][]}{} {\externalfigure[yyy][]}{} \stopcombination \cbox{\tfx Quelle: XY} } \stoptext Thanks, P.
On Nov 16, 2007, at 8:14 AM, Peter Schorsch wrote:
Hi,
as soon I enter the cbox-line the combination is not longer centered. I tried to embed the combination in a cbox, but that had no effect. Has anyone a hint how to center the combination successfullly?
\starttext \placefigure [force][fig:xy] {captiontext} {\startcombination[2*1] {\externalfigure[xxx][]}{} {\externalfigure[yyy][]}{} \stopcombination \cbox{\tfx Quelle: XY} } \stoptext
Thanks, P.
Hmm, untested: isn't that because you're lying to ConTeXt? I'm not quite sure what you want to achieve, but it looks like you don't want a 2*1 combination. Rather, you're looking for a 1*2 combination, the first part of which is a 2*1 combination, so I would guess that nesting those combinations would be the way to go. Thomas
2007/11/16, Peter Schorsch
Hi,
as soon I enter the cbox-line the combination is not longer centered. I tried to embed the combination in a cbox, but that had no effect. Has anyone a hint how to center the combination successfullly?
\starttext \placefigure [force][fig:xy] {captiontext} {\startcombination[2*1] {\externalfigure[xxx][]}{} {\externalfigure[yyy][]}{} \stopcombination \cbox{\tfx Quelle: XY} } \stoptext
Thanks, P.
\setuplegend [align=middle, bodyfont=small] \starttext \placefigure [force][fig:xy] {captiontext} {\placelegend {\startcombination[2*1] {\externalfigure[xxx]}{} {\externalfigure[yyy]}{} \stopcombination} {Quelle: XY}} \stoptext You can define legend commands with \definepairedbox (see core-mis.tex) and you can skip the second pair of brackets after \externalfigure. Wolfgang
\placefigure [force][fig:xy] {captiontext} {\placelegend {\startcombination[2*1] {\externalfigure[xxx]}{} {\externalfigure[yyy]}{} \stopcombination} {Quelle: XY}}
Thanks, both solutions work. Is there something simelar for placelegend in splitfloat? \splitfloat {\placetable[][]{tablecaptiontext}} {very very long HTML-Table} I need to add a legend - also as a HTML-Table, so I tried: \splitfloat {\placetable[][]{tablecaptiontext}} {\placelegend {very very long HTML-Table} {legend HTML-Table}} But this is not working - strangly an Missing-} error comes up.... but all brakets are closed. Is there any other way to put a legend at the end of a multi-page HTML-Table? Ciao, P.
On Thu, 22 Nov 2007 22:02:24 +0100
Peter Schorsch
\placefigure [force][fig:xy] {captiontext} {\placelegend {\startcombination[2*1] {\externalfigure[xxx]}{} {\externalfigure[yyy]}{} \stopcombination} {Quelle: XY}}
Thanks, both solutions work. Is there something simelar for placelegend in splitfloat?
\splitfloat {\placetable[][]{tablecaptiontext}} {very very long HTML-Table}
I need to add a legend - also as a HTML-Table, so I tried:
\splitfloat {\placetable[][]{tablecaptiontext}} {\placelegend {very very long HTML-Table} {legend HTML-Table}}
But this is not working - strangly an Missing-} error comes up.... but all brakets are closed. Is there any other way to put a legend at the end of a multi-page HTML-Table?
Ciao, P.
You don't need \splitfloat because you can use the "split" parameter for \placetable. \placelegend can not be used for content that has to split after pages but you my the following trick for tables. \starttext \placetable [split] {Table Caption} {\bTABLE \bTABLEbody \dorecurse{50}{\bTR\bTD Text text text \eTD\bTD Text text text \eTD \eTR} \eTABLEbody \bTABLEfoot \bTR\bTD[frame=off,nx=2,align=middle] Taken from book xx \eTD\eTR \eTABLEfoot \eTABLE} \stoptext Wolfgang
participants (3)
-
Peter Schorsch
-
Thomas A. Schmitz
-
Wolfgang Schuster