Re: [NTG-context] Vertical alignment in combinations?

2013-02-16 Thread Marco Patzer
On 2013–02–15 Mari Voipio wrote:

 Today I feel like a total ConTeXt dummy...

As long as it's only today you're much better off than me ;)

 The problem: I have 3*1 combination where the end graphics are the
 same size, but the middle graphic is much shorter. With a standard
 \startcombination\stopcombination I can easily get all three
 side-by-side, but they are bottom-aligned while I'd need them
 middle-aligned.

How about this:

\useMPlibrary [dum]
\setupcombinations [location=middle]
\starttext

\startcombination[3*1]
  \startcontent \externalfigure\stopcontent
  \startcaption Foo\stopcaption
  \startcontent \externalfigure[.][height=2cm] \stopcontent
  \startcaption Bar\stopcaption
  \startcontent \externalfigure\stopcontent
  \startcaption FooBar \stopcaption
\stopcombination

\stoptext


Marco


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

[NTG-context] Vertical alignment in combinations?

2013-02-15 Thread Mari Voipio
Today I feel like a total ConTeXt dummy...

The problem: I have 3*1 combination where the end graphics are the
same size, but the middle graphic is much shorter. With a standard
\startcombination\stopcombination I can easily get all three
side-by-side, but they are bottom-aligned while I'd need them
middle-aligned. I thought I once had a solution to this, but can't
find it - and, for once, the garden doesn't seem to be able to help.

Is there a setting I can use to fix the vertical alignment? Or should
I give up with combinations and go for a natural table instead? Or do
something totally else?


Thanks,

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


Re: [NTG-context] Vertical alignment in combinations

2010-03-29 Thread Vyatcheslav Yatskovsky

Thank you, Wolfgang, for


\setupcombinations[location=top]


I always believed there must exist such a command. :)

Wikified.

BR,
Vyatcheslav




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


[NTG-context] Vertical alignment in combinations

2010-03-28 Thread Vyatcheslav Yatskovsky

Hi,

Please, advise. I want two pictures to stand side-by side. The first 
picture has much smaller height. In result, the pictures are aligned by 
the bottom line. How to move the first figure up in the center or top 
(at least, manually)?


\startcombination[2*1]
{\externalfigure[lily02.png]}{}
{\externalfigure[scr-4-4.png][scale=750]}{}
\stopcombination

Please, see attachement

BR,
Vyatcheslav
attachment: 2010-03-28_173245.png___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Vertical alignment in combinations

2010-03-28 Thread Willi Egger

Hi,

You can use offsets:
...
{\offset[y=2cm]{\externalfigure[scr-4-4][scale=7500]}{}

Willi
...
On 28 Mar 2010, at 16:34, Vyatcheslav Yatskovsky wrote:


Hi,

Please, advise. I want two pictures to stand side-by side. The  
first picture has much smaller height. In result, the pictures are  
aligned by the bottom line. How to move the first figure up in the  
center or top (at least, manually)?


\startcombination[2*1]
{\externalfigure[lily02.png]}{}
{\externalfigure[scr-4-4.png][scale=750]}{}
\stopcombination

Please, see attachement

BR,
Vyatcheslav2010-03-28_173245.png 
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
__ 
_


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


Re: [NTG-context] Vertical alignment in combinations

2010-03-28 Thread Wolfgang Schuster

Am 28.03.10 16:34, schrieb Vyatcheslav Yatskovsky:

Hi,

Please, advise. I want two pictures to stand side-by side. The first 
picture has much smaller height. In result, the pictures are aligned 
by the bottom line. How to move the first figure up in the center or 
top (at least, manually)?


\startcombination[2*1]
{\externalfigure[lily02.png]}{}
{\externalfigure[scr-4-4.png][scale=750]}{}
\stopcombination

Make next time a working minimal example, i.e. add \starttext/\stoptext
and use dummy figures or \framed ...

\starttext
\setupcombinations[location=top]
\startcombination[2*1]
{\externalfigure[a][width=6cm,height=2cm]}{a}
{\externalfigure[a][width=6cm,height=4cm]}{b}
\stopcombination
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___