ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* placefigure: mysterious whitespace with 'rightmargin' figures
@ 2006-04-06  4:49 Sanjoy Mahajan
  2006-04-06  5:06 ` placefigure: mysterious whitespace with 'rightmargi n'figures David Arnold
  0 siblings, 1 reply; 4+ messages in thread
From: Sanjoy Mahajan @ 2006-04-06  4:49 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: placefigure: mysterious whitespace with 'rightmargi n'figures
  2006-04-06  4:49 placefigure: mysterious whitespace with 'rightmargin' figures Sanjoy Mahajan
@ 2006-04-06  5:06 ` David Arnold
  2006-04-06 20:41   ` Sanjoy Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: David Arnold @ 2006-04-06  5:06 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: placefigure: mysterious whitespace with 'rightmargi n'figures
  2006-04-06  5:06 ` placefigure: mysterious whitespace with 'rightmargi n'figures David Arnold
@ 2006-04-06 20:41   ` Sanjoy Mahajan
  2006-04-06 23:33     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Sanjoy Mahajan @ 2006-04-06 20:41 UTC (permalink / raw)


> 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: placefigure: mysterious whitespace with 'rightmargi n'figures
  2006-04-06 20:41   ` Sanjoy Mahajan
@ 2006-04-06 23:33     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2006-04-06 23:33 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-06 23:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-06  4:49 placefigure: mysterious whitespace with 'rightmargin' figures Sanjoy Mahajan
2006-04-06  5:06 ` placefigure: mysterious whitespace with 'rightmargi n'figures David Arnold
2006-04-06 20:41   ` Sanjoy Mahajan
2006-04-06 23:33     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).