ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andy Thomas <andythomas@web.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: margintext and placefigure
Date: Sun, 11 Nov 2012 20:15:29 +0100	[thread overview]
Message-ID: <885AD3C8-A39A-42A2-A748-890BA7707390@web.de> (raw)

Dear all.

I am having some trouble with figure placement in the margin. If you use the following code, please try to comment out first one and then both '\input knuth'. Somehow, the figure is not placed in the margin, but the center of the page, if a page breaks occurs close by. Is there a way to avoid that and have the figure always placed in the margin?

Thanks,
Andy

-- code starts ---

\useMPlibrary[dum] % To get dummy figures

\definepapersize[wissenschaft][width=170mm, height=240mm]
\setuppapersize [wissenschaft]

\setuplayout[topspace=40pt,
             header=0pt,
             headerdistance=0pt,
             height=560pt,
             footer=0pt,
             %
             backspace=42pt,
             leftmargin=0pt,
             width=280pt,
             rightmargindistance=20pt,
             rightmargin=100pt]

\setupmargindata
    [margintext]
    [location=outer,
     width=100pt,
     stack=continue]
     
\starttext
%
\chapter{One}
\input tufte

\input knuth

\input knuth

\section{Figures}
%
\margintext
{\startplacefigure[ title={A small rectangle put in the margin.}]
  \externalfigure[dummy]
\stopplacefigure}

\input tufte

\stoptext

-- code ends ---


background: I started working on my module (caesar) again, since the ipad is supposed to render mathml now. That means, I could try the context epub output with formulas on an actual device (cp. http://support.apple.com/kb/HT5321)
___________________________________________________________________________________
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	other threads:[~2012-11-11 19:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-11 19:15 Andy Thomas [this message]
2012-11-11 19:52 ` Marco Patzer
2012-11-11 20:05   ` Andy Thomas
2012-11-11 20:23     ` Marco Patzer
2012-11-11 21:10       ` Andy Thomas

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=885AD3C8-A39A-42A2-A748-890BA7707390@web.de \
    --to=andythomas@web.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).