[NTG-context] Graphics placement with columnsets/page grids (was "no subject)

Denis Maier maier.de at gmail.com
Wed Jul 24 09:08:41 CEST 2019


Hi,

just a quick follow up:

This (i.e., deleting the "none") gives the right result:

```
\placefigure [btrl]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{2}]
}
```

The figure is indeed at the bottom of the page. Yet, `\placefigure
[btrl,none]` seems to remove the caption, but the figure stays where it was
and we have additional lines under the figure. Shouldn't the figure stick
to the margin?

Best,
Denis


Am Di., 23. Juli 2019 um 16:16 Uhr schrieb Denis Maier <maier.de at gmail.com>:

> Hi,
> I am typesetting a newsletter using newcolumnsets, and I am struggling
> with placing my graphics. Why isn't the graphic on page 2 at the bottom
> (code below)?
> Best,
> Denis
>
> ```
> \usemodule[newcolumnsets,simulate]
>
> \useMPlibrary[dum]
>
> \setupbodyfont
> [palatino]
>
> \setuphead[section][style=\bfa\ss]
>
> \setuplayout
> [grid=yes]
>
> \setuplayout
> [backspace=20mm,
> cutspace=15mm,
> width=middle,
> height=middle]
>
> \setupsystem
> [random=1234]
>
> \setuppagenumbering [
> alternative=,
> location=,
> ]
>
> \setupfootertexts
> [Laubblatt 2019/1] [{\externalfigure[cow][height=15mm]}]
>
> \setupfooter
> [style=\ss]
>
> \setuptolerance
> [verytolerant,stretch]
>
> \definecolor[color-1][.5(red,green)]
> \definecolor[color-2][.5(green,blue)]
> \definecolor[color-3][.5(blue,red)]
> \definecolor[color-4][.5(white,black)]
> \definecolor[color-5][.5(white,color-4)]
>
> \startuniqueMPgraphic{frame}
> fill OverlayBox withcolor \MPcolor{color-1} ;
> \stopuniqueMPgraphic
>
> \startuniqueMPgraphic{contrast}
> fill OverlayBox withcolor \MPcolor{color-2} ;
> \stopuniqueMPgraphic
>
> \defineoverlay[frame]   [\uniqueMPgraphic{frame}]
> \defineoverlay[contrast][\uniqueMPgraphic{contrast}]
>
> \definecolumnset[example][n=2]
>
> %\setupcolumnsetstart[example][1][1][2]
> %\setupcolumnsetstart[example][1][2][4]
> %\setupcolumnsetlines[example][1][1][-5]
> %\setupcolumnsetlines[example][1][2][-5]
>
>
>
> \definecolumnsetspan[wide] [n=2,
> background=contrast,
> color=white,
> ]
>
>
> \starttext
>
> \startcolumnset[example]
>
>
>
> \startcolumnsetspan[wide]
> \subject{Einleitung}
> {\tfx\setupinterlinespace\em
> \dorecurse{1}{\fakewords{50}{100}\par}
> }
> \stopcolumnsetspan
>
> \placefigure [btrl,none]
> {}
> {
> \externalfigure[placeholder][width=\columnsetspanwidth{1}]
> }
>
> \dorecurse{5}{\fakewords{50}{100}\par}
>
> \placefigure [btrl,none]
> {}
> {
> \externalfigure[placeholder][width=\columnsetspanwidth{2}]
> }
>
> \dorecurse{5}{\fakewords{50}{100}\par}
>
> \stopcolumnset
> \stoptext
> ```
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190724/62ffaa46/attachment-0001.html>


More information about the ntg-context mailing list