placefigure: mysterious whitespace with 'rightmargin' figures
![](https://secure.gravatar.com/avatar/b16ca16bcbc474a1ba15813999e212da.jpg?s=120&d=mm&r=g)
I tested the following on the context live. Both figures are in the margin, but the first and second paragraphs have a large gap between them with figure 1 in the margin, beside the gap. My first theory was that the margin figure requires the whitespace (unlikely, I know). But that theory didn't last long: If I restore the commented-out '\input knuth' line, then the layout has no gaps. ====================================================================== \useMPlibrary[dum] \starttext \input tufte \placefigure[rightmargin]{first}{\externalfigure[dummy]} \par %\input knuth \placefigure[rightmargin]{third}{\externalfigure[dummy]} \par \input knuth \stoptext ====================================================================== -Sanjoy `A society of sheep must in time beget a government of wolves.' - Bertrand de Jouvenal
![](https://secure.gravatar.com/avatar/13a310a9e966d8e50f10029887c37493.jpg?s=120&d=mm&r=g)
Sanjoy, Hans had me do the following and it worked. \placefigure [inright,reset][fig:graphmap] {A mapping diagram for $f$.} {\externalfigure[graph1][width=\marginwidth]} On Apr 5, 2006, at 9:49 PM, Sanjoy Mahajan wrote:
I tested the following on the context live. Both figures are in the margin, but the first and second paragraphs have a large gap between them with figure 1 in the margin, beside the gap. My first theory was that the margin figure requires the whitespace (unlikely, I know). But that theory didn't last long: If I restore the commented-out '\input knuth' line, then the layout has no gaps.
====================================================================== \useMPlibrary[dum]
\starttext \input tufte \placefigure[rightmargin]{first}{\externalfigure[dummy]} \par %\input knuth \placefigure[rightmargin]{third}{\externalfigure[dummy]} \par \input knuth \stoptext ======================================================================
-Sanjoy
`A society of sheep must in time beget a government of wolves.' - Bertrand de Jouvenal _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
![](https://secure.gravatar.com/avatar/b16ca16bcbc474a1ba15813999e212da.jpg?s=120&d=mm&r=g)
Hans had me do the following and it worked.
\placefigure [inright,reset][fig:graphmap] {A mapping diagram for $f$.} {\externalfigure[graph1][width=\marginwidth]}
Thanks. I added 'reset' to the [rightmargin] option and it worked. Do you add that everywhere, or does 'reset' have side effects? Presumably it does, otherwise it would be the default? -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Sanjoy Mahajan wrote:
Hans had me do the following and it worked.
\placefigure [inright,reset][fig:graphmap] {A mapping diagram for $f$.} {\externalfigure[graph1][width=\marginwidth]}
Thanks. I added 'reset' to the [rightmargin] option and it worked. Do you add that everywhere, or does 'reset' have side effects? Presumably it does, otherwise it would be the default?
well, it may make the next 'sidefloat' run over the previous one \placefigure[left]{}{} \input tufte \placefigure[left]{}{} \input tufte \placefigure[left]{}{} whatever \placefigure[left]{}{} whatever \placefigure[left,reset]{}{} whatever \placefigure[left]{}{} whatever 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 -----------------------------------------------------------------
participants (3)
-
David Arnold
-
Hans Hagen
-
Sanjoy Mahajan