ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Wandering floats
@ 2012-01-23 14:40 Felix Ingram
  0 siblings, 0 replies; only message in thread
From: Felix Ingram @ 2012-01-23 14:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello all,

I've noticed some strange behaviour with Tikz/PGF in floats. The
following example should demonstrate it:

\usemodule[tikz]
\definefloat[newfloat][newfloats]
\setupfloat[newfloat][
        rightmargindistance=1cm,
        maxwidth=0.5cm,
    ]

\startbuffer[myfloat]
\placenewfloat[right, none, fit]{}{
    \starttikzpicture
    \node[text width=2cm]  {%
    \color[black]{\tfx\bf
I'm the Doctor. Well, they call me the Doctor. I don't know why. I call me the
Doctor. I don't know why.
        }
    };
    \stoptikzpicture
}
\stopbuffer
\starttext
\getbuffer[myfloat]
Saving the world with meals on wheels. No, I'll fix it. I'm good at fixing rot.
Call me the Rotmeister. No, I'm the Doctor. Don't call me the Rotmeister. No…
It's a thing; it's like a plan, but with more greatness. I'm the Doctor, I'm
worse than everyone's aunt. *catches himself* And that is not how I'm
introducing myself. Heh-haa! No, I'll fix it. I'm good
at fixing rot. Call me the Rotmeister. No, I'm the Doctor. Don't call me the
Rotmeister.

\page
\getbuffer[myfloat]
Saving the world with meals on wheels. No, I'll fix it. I'm good at fixing rot.
Call me the Rotmeister. No, I'm the Doctor. Don't call me the Rotmeister. No…
It's a thing; it's like a plan, but with more greatness. I'm the Doctor, I'm
worse than everyone's aunt. *catches himself* And that is not how I'm
introducing myself. Heh-haa! No, I'll fix it. I'm good
at fixing rot. Call me the Rotmeister. No, I'm the Doctor. Don't call me the
Rotmeister.
\stoptext


The first float will be placed nicely in the right margin up against
the text. The second, however, will be shifted into the margin.

Can anyone suggest anything? I'm not sure how to go about debugging this.

I believe it is another example of the shifting PGF graphics that
others (and I) have seen since upgrading to a new beta (I believe this
changed sometime since version 2011.11.29).

Any help appreciated,

Felix
___________________________________________________________________________________
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-01-23 14:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-23 14:40 Wandering floats Felix Ingram

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