Hi Andy,

On 2012-05-27 17:57, Andy Thomas wrote:
> Hello,
> 
> could someone point out to me, where in the standalone
> installation the 'margin float placement' algorithm lives.

it depends:
  Floats: strc-flt.mkvi
  Side floats: page-sid.mkiv
  Margin data (as in your example): typo-mar.mkiv

and their respective .lua companions. I suspect you will be
interested in the function „inject()“ (part of the finalizer) in
typo-mar.lua.

> > is there a way for margintext to 'respect' the lower border
> > of the page and push the margintext up, pushing other margintexts
> > upwards while doing so?

+1, I’m curious too whether this can be done.

Regards
Philipp


> > 
> > example:
> > 
> > \definepapersize[wissenschaft][width=170mm,height=240mm]
> > \setuppapersize [wissenschaft]
> > 
> > \setuplayout
> > [topspace=40pt,
> >  header=0pt,
> >  headerdistance=0pt,
> >  backspace=42pt,
> >  leftmargin=0pt,
> >  width=280pt,
> >  height=560pt,
> >  rightmargindistance=20pt,
> >  rightmargin=100pt,
> >  footer=0pt]
> > 
> > \setuppagenumbering[alternative=doublesided]
> > 
> > \setupmargindata [margintext]
> >    [location=outer,
> >    width=100pt,
> >    align=flushouter]
> > 
> > \starttext \showframe
> > 
> > \input tufte
> > \input tufte
> > \input tufte\margintext{This is too low, if there are many words in this 
> > note.}
> > 
> > \stoptext
> > 
> > Kind of hard to explain, I hope the example makes everything clear. 
> > 
> > Andy
> > 
-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Attachment: pgpJCKWzSwsBv.pgp
Description: PGP signature

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to