ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Philipp Gesang <gesang@stud.uni-heidelberg.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: pushing margintext up
Date: Tue, 29 May 2012 11:58:40 +0200	[thread overview]
Message-ID: <20120529095840.GB27794@phlegethon> (raw)
In-Reply-To: <9649316D-6A34-434A-82C7-150122F3E127@web.de>


[-- Attachment #1.1: Type: text/plain, Size: 2722 bytes --]

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

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

      parent reply	other threads:[~2012-05-29  9:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-23 14:34 Andy Thomas
2012-05-27 15:57 ` Andy Thomas
2012-05-28 16:44   ` Philipp Gesang
2012-05-28 17:02     ` Hans Hagen
2012-05-29  9:37       ` Andy Thomas
2012-05-29  9:44         ` Hans Hagen
2012-05-29  9:58         ` Philipp Gesang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120529095840.GB27794@phlegethon \
    --to=gesang@stud.uni-heidelberg.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).