[NTG-context] How to center with picture taken into consideration

Cecil Westerhof cldwesterhof at gmail.com
Sat Apr 27 11:50:11 CEST 2013


I keep bugging the list. ;-)

I center some text on a place where I also place a picture on the
right site. Is it possible to center on the part that is not taken up
by the picture?

The picture is placed with:
  \definelayer[picture][
    preset=righttop,
    width=\textwidth,
  ]

  \setlayer[picture]{\externalfigure[graphics/pasfoto]}

  \setupbackgrounds[text][text][background=picture]
  \setupbackgrounds[state=repeat]

To make things a little more complicated, the placing of the picture
is conditional. So it is not always done.

-- 
Cecil Westerhof


More information about the ntg-context mailing list