ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* combination with an additional line centered in a placefigure?
@ 2007-11-16  7:14 Peter Schorsch
  2007-11-16  7:44 ` Thomas A. Schmitz
  2007-11-16 12:39 ` Wolfgang Schuster
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Schorsch @ 2007-11-16  7:14 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: combination with an additional line centered in a placefigure?
  2007-11-16  7:14 combination with an additional line centered in a placefigure? Peter Schorsch
@ 2007-11-16  7:44 ` Thomas A. Schmitz
  2007-11-16 12:39 ` Wolfgang Schuster
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas A. Schmitz @ 2007-11-16  7:44 UTC (permalink / raw)
  To: tralalas, mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: combination with an additional line centered in a placefigure?
  2007-11-16  7:14 combination with an additional line centered in a placefigure? Peter Schorsch
  2007-11-16  7:44 ` Thomas A. Schmitz
@ 2007-11-16 12:39 ` Wolfgang Schuster
  2007-11-22 21:02   ` Peter Schorsch
  1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2007-11-16 12:39 UTC (permalink / raw)
  To: tralalas, mailing list for ConTeXt users

2007/11/16, Peter Schorsch <tralalas@freenet.de>:
> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: combination with an additional line centered in a placefigure?
  2007-11-16 12:39 ` Wolfgang Schuster
@ 2007-11-22 21:02   ` Peter Schorsch
  2007-11-23 10:11     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Schorsch @ 2007-11-22 21:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> \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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: combination with an additional line centered in a placefigure?
  2007-11-22 21:02   ` Peter Schorsch
@ 2007-11-23 10:11     ` Wolfgang Schuster
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2007-11-23 10:11 UTC (permalink / raw)
  To: ntg-context

On Thu, 22 Nov 2007 22:02:24 +0100
Peter Schorsch <tralalas@freenet.de> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-11-23 10:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-16  7:14 combination with an additional line centered in a placefigure? Peter Schorsch
2007-11-16  7:44 ` Thomas A. Schmitz
2007-11-16 12:39 ` Wolfgang Schuster
2007-11-22 21:02   ` Peter Schorsch
2007-11-23 10:11     ` Wolfgang Schuster

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).