ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Curiouslearn <curiouslearn@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: problem with tikz remember picture and overlay.
Date: Mon, 7 Mar 2011 08:02:04 -0500	[thread overview]
Message-ID: <AANLkTimxr2mzKtUW=NKenUj1xeGLwB=sjk68YTOq9iHP@mail.gmail.com> (raw)

Hello,

I am trying to use tikz's remember picture and overlay for absolute
positioning. With the code below, the content in the tikz picture
appears on a new page after the slide title. I want it to appear on
the same page. Please see the minimal example below. I have explained
with comments where the problem occurs.

Thanks for your help.

    \setuppapersize[S6][S6]
    \setuplayout[backspace=0.5in, width=middle, header=0.25in,
      topspace=0.25in, height=middle]
    \setupbackgrounds[page][background=color, backgroundcolor=linen]
    \setupwhitespace[medium]
    \setuppagenumbering[location=]
    \setupcolors[state=start]
    \setupinteraction[state=start,color=blue]
    \setupcolor[xwi]

    \definehead[slidetitle][subject]
    \setuphead[slidetitle][style=\tfb,
                           color=lightsteelblue]

    \def\SlideTitle#1{\page\framed[frame=off, background=color, %
        backgroundcolor=gray:9]{\slidetitle{#1}}}
    \usemodule[simplefonts]
    \setmainfont[Helvetica]
    \switchtobodyfont[20pt]

    \definehead[slidetitle][subject]
    \setuphead[slidetitle][style=\tfb,
                           color=lightsteelblue]

     \def\SlideTitle#1{\page\framed[frame=off, background=color, %
        backgroundcolor=gray:9]{\slidetitle{#1}}}

    \starttext

     \SlideTitle{Product Characteristics and Quality}

     % This tikz content should appear on the same page as the title,
but it appears
      % on a new page. If I use \subject{Product Characteristics and
Quality} then
      % the tikz content appears on the same page.

     \starttikzpicture[remember picture, overlay]
       \node[xshift=2in, yshift=2in] at (current page.north west)
            [text width = 2in]{Weight?}
     \stoptikzpicture

    % The following content appears on another page after the tikz
content. This is independent
    % of whether I use \SlideTitle or \subject. How can I make all of
these appear on the same page?

     MORE CONTENT HERE


     \stoptext
___________________________________________________________________________________
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:[~2011-03-07 13:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-07 13:02 Curiouslearn [this message]
2011-03-07 14:13 ` Curiouslearn

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='AANLkTimxr2mzKtUW=NKenUj1xeGLwB=sjk68YTOq9iHP@mail.gmail.com' \
    --to=curiouslearn@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).