[NTG-context] Alignment in combination

Wolfgang Schuster wolfgang.schuster at gmail.com
Wed Oct 3 20:32:39 CEST 2012


Am 03.10.2012 um 13:47 schrieb Marco Patzer <homerow at lavabit.com>:

> Hi,
> 
> how to left align the elements of a combination?
> 
> \useMPlibrary [dum]
> \setupexternalfigures [height=2cm]
> \starttext
> 
> %% does nothing: \setupcombinations [align=flushleft]
> \startcombination [2*2]
>  {\externalfigure[dummy][width=2cm]} {}
>  {\externalfigure[dummy][width=2cm]} {}
>  {\externalfigure[dummy][width=4cm]} {}
>  {\externalfigure[dummy][width=3cm]} {}
> \stopcombination \blank[2cm]
> 
> %% desired:
> \startcombination [2*2]
>  {\kern-2cm\externalfigure[dummy][width=2cm]} {}
>  {\kern-1cm\externalfigure[dummy][width=2cm]} {}
>  {\externalfigure[dummy][width=4cm]} {}
>  {\externalfigure[dummy][width=3cm]} {}
> \stopcombination
> 
> \stoptext

The align key controls the alignment of the caption, to change the position
of the content you need the location key, e.g. \setupcombination [location=left]

Wolfgang


More information about the ntg-context mailing list