ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Felix Ingram <f.ingram.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Wandering floats
Date: Mon, 23 Jan 2012 14:40:18 +0000	[thread overview]
Message-ID: <CAK5aKC-_n2VEgaa7KLeaPRsFBr1nf937-A_nbP-+veOgtssXiA@mail.gmail.com> (raw)

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
___________________________________________________________________________________


                 reply	other threads:[~2012-01-23 14:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAK5aKC-_n2VEgaa7KLeaPRsFBr1nf937-A_nbP-+veOgtssXiA@mail.gmail.com \
    --to=f.ingram.lists@gmail.com \
    --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).