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

2013-04-27 Thread Cecil Westerhof
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, ]

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

2013-04-27 Thread Sietse Brouwer
Hello Cecil, I have a LuaTeX-based start for you, but there is one important thing I do not know: how to obtain the an image's width and/or height from Lua. Although that would also depend on whether you want to resize images to a fixed with, etc. Anyway, now that the typesetting code is

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

2013-04-27 Thread Peter Münster
On Sat, Apr 27 2013, Sietse Brouwer wrote: how to obtain the an image's width and/or height from Lua. Here an example: http://modules.contextgarden.net/dl/grph-downsample.lua/tex/context/third/grph-downsample/grph-downsample.lua -- Peter