Johannes Graumann wrote: > Hans Hagen wrote: > > >> <expertadvice> >> ... >> </expertadvice> >> > > Thank you. I have modified that code and it does what I want (see below). > There is however one generalization issue: the > line '\externalfigure[\XMLflush{graphic}][width=\textwidth]' should really > be able to use scaling to '\textwidth' or \'textheight' depending on what > fills the page better without overflowing it. Is there any way I can make > ConTeXt check which one is better: 'width=\textwidth' or > height='\textheight'? > > Thanks, Joh > > \definefloat[caption] > > \setupfloat[caption][location=right] > > \defineframedtext > [captiontext] > [width=\textwidth,style={{\smallbodyfont}\setupinterlinespace[line=2.8ex]},frame=off,topframe=on] > factor=max
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context