ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Overlapping margin figures
@ 2012-10-21 15:22 Marco Patzer
  0 siblings, 0 replies; only message in thread
From: Marco Patzer @ 2012-10-21 15:22 UTC (permalink / raw)
  To: context

Hi,

I have narrow margin floats and wide floats that protrude into the
margin. Currently they overlap with the narrow figures. How to avoid
this?

\useMPlibrary [dum]

\definefloat
  [marginfigure] [marginfigures]
  [figure]

\setupfloat
  [marginfigure]
  [default=margin]

\definefloat
  [widefigure] [widefigures]
  [figure]

\setupfloat
  [widefigure]
  [location=left]

\starttext
  \dorecurse{5}{%%
    \startplacemarginfigure
      \externalfigure [dum] [width=\rightmarginwidth, height=2cm]
    \stopplacemarginfigure}

  \startplacewidefigure
    \externalfigure [dum] [width=\dimexpr\textwidth+\rightmargintotal\relax, height=3cm]
  \stopplacewidefigure
\stoptext


Marco

___________________________________________________________________________________
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] only message in thread

only message in thread, other threads:[~2012-10-21 15:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-21 15:22 Overlapping margin figures Marco Patzer

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