ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* combination
@ 2003-03-07 13:37 Patrick Gundlach
  2003-03-07 17:36 ` combination Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Patrick Gundlach @ 2003-03-07 13:37 UTC (permalink / raw)


Hello,

shouldn't this file be OK?

===========================================================
\starttext
\startcombination[2]
{\framed{sometext}}
{\framed{somemoretext}}
\stopcombination
\stoptext
===========================================================

This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5)
 \write18 enabled.
entering extended mode
(./simplecomb.tex{/var/tmp/tetex/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2003.3.4  fmt: 2003.3.5  int: english  mes: english

[...]


Overfull \hbox (25.45807pt too wide) in paragraph at lines 4--4
 [][] [] [] 
! Missing { inserted.
<to be read again> 
                   \egroup 
\stopcombination ->\egroup 
                           \egroup 
l.5 \stopcombination
                    
? 
systems        : end file simplecomb at line 6
! You can't use `\end' in internal vertical mode.
<recently read> \normalend 
                           
l.6 \stoptext



Patrick

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

* Re: combination
  2003-03-07 13:37 combination Patrick Gundlach
@ 2003-03-07 17:36 ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2003-03-07 17:36 UTC (permalink / raw)


At 02:37 PM 3/7/2003 +0100, you wrote:
>Hello,
>
>shouldn't this file be OK?
>
>===========================================================
>\starttext
>\startcombination[2]
>{\framed{sometext}}
>{\framed{somemoretext}}
>\stopcombination
>\stoptext

no, the content comes in two-some, so

\startcombination[2*1] % or 1*2
   {content} {caption}
   {content} {caption}
\stopcombination

when all captions are empty, they are ignored; btw, combinations have 
recently be extended with vertial and horizontal alignments; remind me to 
document that -)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: combination
  2009-01-29  8:53   ` combination Otared Kavian
@ 2009-01-29  9:17     ` Nicolas Luchier
  0 siblings, 0 replies; 9+ messages in thread
From: Nicolas Luchier @ 2009-01-29  9:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2442 bytes --]

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 :

>
> On 29 janv. 09, at 09:09, Thomas A. Schmitz wrote:
>
>>
>> On Jan 28, 2009, at 3:14 PM, Nicolas Luchier wrote:
>>
>>> 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
>>
>> As long as 2*2~=3, this will not be possible. I would do (pseudo- 
>> code, untested)
>>
>> \startcombination[1*2]
>> 	\startcombination[2*1]
>> 		<figure 1>
>> 		<figure 2>
>> 	\stopcombination
>> 	<figure 3>
>> \stopcombination
>>
>
> 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
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 6613 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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] 9+ messages in thread

* Re: combination
  2009-01-28 14:14 combination Nicolas Luchier
  2009-01-29  8:08 ` combination Alan BRASLAU
  2009-01-29  8:09 ` combination Thomas A. Schmitz
@ 2009-01-29  9:14 ` Wolfgang Schuster
  2 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2009-01-29  9:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jan 28, 2009 at 3:14 PM, Nicolas Luchier <nicolas.luchier@cea.fr> wrote:

> 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
___________________________________________________________________________________
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] 9+ messages in thread

* Re: combination
  2009-01-29  8:09 ` combination Thomas A. Schmitz
  2009-01-29  8:39   ` combination Alan BRASLAU
@ 2009-01-29  8:53   ` Otared Kavian
  2009-01-29  9:17     ` combination Nicolas Luchier
  1 sibling, 1 reply; 9+ messages in thread
From: Otared Kavian @ 2009-01-29  8:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On 29 janv. 09, at 09:09, Thomas A. Schmitz wrote:

>
> On Jan 28, 2009, at 3:14 PM, Nicolas Luchier wrote:
>
>> 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
>
> As long as 2*2~=3, this will not be possible. I would do (pseudo- 
> code, untested)
>
> \startcombination[1*2]
> 	\startcombination[2*1]
> 		<figure 1>
> 		<figure 2>
> 	\stopcombination
> 	<figure 3>
> \stopcombination
>

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
___________________________________________________________________________________
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] 9+ messages in thread

* Re: combination
  2009-01-29  8:09 ` combination Thomas A. Schmitz
@ 2009-01-29  8:39   ` Alan BRASLAU
  2009-01-29  8:53   ` combination Otared Kavian
  1 sibling, 0 replies; 9+ messages in thread
From: Alan BRASLAU @ 2009-01-29  8:39 UTC (permalink / raw)
  To: ntg-context

On Thursday 29 January 2009 09:09:31 Thomas A. Schmitz wrote:
> On Jan 28, 2009, at 3:14 PM, Nicolas Luchier wrote:
> > 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)
> 
> \startcombination[1*2]
> 	\startcombination[2*1]
> 		<figure 1>
> 		<figure 2>
> 	\stopcombination
> 	<figure 3>
> \stopcombination

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
___________________________________________________________________________________
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] 9+ messages in thread

* Re: combination
  2009-01-28 14:14 combination Nicolas Luchier
  2009-01-29  8:08 ` combination Alan BRASLAU
@ 2009-01-29  8:09 ` Thomas A. Schmitz
  2009-01-29  8:39   ` combination Alan BRASLAU
  2009-01-29  8:53   ` combination Otared Kavian
  2009-01-29  9:14 ` combination Wolfgang Schuster
  2 siblings, 2 replies; 9+ messages in thread
From: Thomas A. Schmitz @ 2009-01-29  8:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Jan 28, 2009, at 3:14 PM, Nicolas Luchier wrote:

> 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

As long as 2*2~=3, this will not be possible. I would do (pseudo-code,  
untested)

\startcombination[1*2]
	\startcombination[2*1]
		<figure 1>
		<figure 2>
	\stopcombination
	<figure 3>
\stopcombination

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] 9+ messages in thread

* Re: combination
  2009-01-28 14:14 combination Nicolas Luchier
@ 2009-01-29  8:08 ` Alan BRASLAU
  2009-01-29  8:09 ` combination Thomas A. Schmitz
  2009-01-29  9:14 ` combination Wolfgang Schuster
  2 siblings, 0 replies; 9+ messages in thread
From: Alan BRASLAU @ 2009-01-29  8:08 UTC (permalink / raw)
  To: ntg-context

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:
> 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
___________________________________________________________________________________
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] 9+ messages in thread

* combination
@ 2009-01-28 14:14 Nicolas Luchier
  2009-01-29  8:08 ` combination Alan BRASLAU
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Nicolas Luchier @ 2009-01-28 14:14 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
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] 9+ messages in thread

end of thread, other threads:[~2009-01-29  9:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-07 13:37 combination Patrick Gundlach
2003-03-07 17:36 ` combination Hans Hagen
2009-01-28 14:14 combination Nicolas Luchier
2009-01-29  8:08 ` combination Alan BRASLAU
2009-01-29  8:09 ` combination Thomas A. Schmitz
2009-01-29  8:39   ` combination Alan BRASLAU
2009-01-29  8:53   ` combination Otared Kavian
2009-01-29  9:17     ` combination Nicolas Luchier
2009-01-29  9:14 ` combination 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).