![](https://secure.gravatar.com/avatar/5ef3be2c0e949ae4c891de058ebf4d76.jpg?s=120&d=mm&r=g)
On 2012-05-29 11:37, Andy Thomas wrote:
On 28.05.2012, at 19:02, Hans Hagen wrote:
On 28-5-2012 18:44, Philipp Gesang wrote:
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.
keep in mind that this is not finished yet i.e. there is no api at the lua end yet
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.
maybe some day when I'm looking into the page builder code
Hans
Is it possible, as a workaround for now, to make every \margintext call to virtually occur at the first line of the page? Then, they are stacked in sequence in the margin from the top of the page down, but on the page they occur.
Don’t marginblocks behave like that? ···································································>8··· \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] %% Margin block setup. \setupmarginblock[ style=bold, align=outer, ] \startbuffer [mblock_demo] This is too low, if there are many words in this note. \stopbuffer \starttext \showframe \input tufte \input tufte %% first one’s at top of first page \input tufte\startmarginblock\getbuffer[mblock_demo]\stopmarginblock \page %% next one at top of second, third one immediately below \input tufte\startmarginblock\getbuffer[mblock_demo]\stopmarginblock \input tufte\startmarginblock\getbuffer[mblock_demo]\stopmarginblock \input tufte \stoptext ···································································>8··· Regards, Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments