ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Alignment in combination
@ 2012-10-03 11:47 Marco Patzer
  2012-10-03 18:32 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Patzer @ 2012-10-03 11:47 UTC (permalink / raw)
  To: context

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


Marco

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


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

* Re: Alignment in combination
  2012-10-03 11:47 Alignment in combination Marco Patzer
@ 2012-10-03 18:32 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2012-10-03 18:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 03.10.2012 um 13:47 schrieb Marco Patzer <homerow@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
___________________________________________________________________________________
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
___________________________________________________________________________________


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

end of thread, other threads:[~2012-10-03 18:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-03 11:47 Alignment in combination Marco Patzer
2012-10-03 18:32 ` 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).