Hello,
I searched the mailing archive but found nothing about my problem.
I have 3 figures to put into combination 2*2. The way it is handle it
that the third figure is place below the first one, which is quite
logical. I'd rather have it centered in the second row. Is there any
mean to do this ? I didn't find a clue anywhere.
Thank you.
Nicolas
I think in this case you might be better off placing the figures in a table.
I was thinking about posting a question about the nesting of combinations, say to arrange a row of two figures next to a stack of three figures, for example. This currently does not appear to work... Maybe other ConTeXt users might have some ideas?
Alan
On Wednesday 28 January 2009 15:14:58 Nicolas Luchier wrote:
I searched the mailing archive but found nothing about my problem.
I have 3 figures to put into combination 2*2. The way it is handle it
that the third figure is place below the first one, which is quite
logical. I'd rather have it centered in the second row. Is there any
mean to do this ? I didn't find a clue anywhere.
I searched the mailing archive but found nothing about my problem.
I have 3 figures to put into combination 2*2. The way it is handle
it that the third figure is place below the first one, which is
quite logical. I'd rather have it centered in the second row. Is
there any mean to do this ? I didn't find a clue anywhere.
Thank you.
Nicolas
As long as 2*2~=3, this will not be possible. I would do (pseudo-code,
untested)
\startcombination[1*2]
\startcombination[2*1]
I have 3 figures to put into combination 2*2. The way it is handle
it that the third figure is place below the first one, which is
quite logical. I'd rather have it centered in the second row. Is
there any mean to do this ? I didn't find a clue anywhere.
As long as 2*2~=3, this will not be possible. I would do (pseudo-code,
untested)
Tested:
\starttext
\startcombination[1*2]
\startcombination[2*1]
{1}{(1)}
{2}{(2)}
\stopcombination
{3}{(3)}
\stopcombination
\startcombination[2*1]
\startcombination[2*1]
{1}{(1)}
{2}{(2)}
\stopcombination
{3}{(3)}
\stopcombination
\stoptext
The first appears to give a reasonable result,
but the second gives exactly the same as the first.
I do not believe that combinations can be recursive...
Alan
I searched the mailing archive but found nothing about my problem.
I have 3 figures to put into combination 2*2. The way it is handle
it that the third figure is place below the first one, which is
quite logical. I'd rather have it centered in the second row. Is
there any mean to do this ? I didn't find a clue anywhere.
Thank you.
Nicolas
As long as 2*2~=3, this will not be possible. I would do (pseudo-
code, untested)
Hi,
It is unfortunate that 2*2 does not equal 3, but the solution given by
Thomas works…
\starttext
This is a combination of 3 figures on two lines
\placefigure{none}
{
\midaligned{
\startcombination[1*2]
{\startcombination[2*1]
{\externalfigure[cow.jpg][width=3cm]}{}
{\externalfigure[cow.jpg][width=3cm]}{}
\stopcombination}
{\externalfigure[cow.jpg][width=3cm]}{}
\stopcombination
}
}
\stoptext
Best regards: OK
Hi,
The solution works indeed. Thanks to all of you. There is a related
refinement I'd like but don't know Context enough to bring by myself:
\starttext
This is a combination of 3 figures on two lines
\placefigure{none}
{
\midaligned{
\startcombination[1*2]
{\startcombination[2*1]
{}{}
{}{}
\stopcombination}
{\externalfigure[cow.jpg][width=some width]}{some blabla}
\stopcombination
}
}
\stoptext
On the third figure: is there a mean to set the width of 'some blabla'
equal to the width of the figure.
Best regards,
Nicolas
Le 29 Jan 2009 à 09:53, Otared Kavian a écrit :
I searched the mailing archive but found nothing about my problem.
I have 3 figures to put into combination 2*2. The way it is handle
it that the third figure is place below the first one, which is
quite logical. I'd rather have it centered in the second row. Is
there any mean to do this ? I didn't find a clue anywhere.
Thank you.
Nicolas
As long as 2*2~=3, this will not be possible. I would do (pseudo-
code, untested)
It is unfortunate that 2*2 does not equal 3, but the solution given
by Thomas works…
\starttext
This is a combination of 3 figures on two lines
\placefigure{none}
{
\midaligned{
\startcombination[1*2]
{\startcombination[2*1]
{\externalfigure[cow.jpg][width=3cm]}{}
{\externalfigure[cow.jpg][width=3cm]}{}
\stopcombination}
{\externalfigure[cow.jpg][width=3cm]}{}
\stopcombination
}
}
\stoptext
Best regards: OK
___________________________________________________________________________________
If your question is of interest to others as well, please add an
entry to the Wiki!
I have 3 figures to put into combination 2*2. The way it is handle it that
the third figure is place below the first one, which is quite logical. I'd
rather have it centered in the second row. Is there any mean to do this ? I
didn't find a clue anywhere.
The others gave you a solution with nested combinations but it's also
possible to a normal table to combine your prictures.
\bTABLE[frame=off,align=middle]
\bTR
\bTD\externalfigure[cow.jpg][width=3cm]\eTD
\bTD\externalfigure[cow.jpg][width=3cm]\eTD
\eTR
\bTR[nx=2]
\bTD\externalfigure[cow.jpg][width=3cm]\eTD
\eTR
\eTABLE
Wolfgang