Re: [NTG-context] combination with an additional line centered in a placefigure?

2007-11-23 Thread Wolfgang Schuster
On Thu, 22 Nov 2007 22:02:24 +0100
Peter Schorsch [EMAIL PROTECTED] wrote:

  \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

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] combination with an additional line centered in a placefigure?

2007-11-22 Thread 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.

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] combination with an additional line centered in a placefigure?

2007-11-16 Thread Wolfgang Schuster
2007/11/16, Peter Schorsch [EMAIL PROTECTED]:
 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
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] combination with an additional line centered in a placefigure?

2007-11-15 Thread 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.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] combination with an additional line centered in a placefigure?

2007-11-15 Thread Thomas A. Schmitz

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
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___