ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* margintext and placefigure
@ 2012-11-11 19:15 Andy Thomas
  2012-11-11 19:52 ` Marco Patzer
  0 siblings, 1 reply; 5+ messages in thread
From: Andy Thomas @ 2012-11-11 19:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

end of thread, other threads:[~2012-11-11 21:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-11 19:15 margintext and placefigure Andy Thomas
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

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