ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: placing a tikz/pgf figure
Date: Tue, 9 Jan 2007 20:08:19 -0500 (EST)	[thread overview]
Message-ID: <alpine.WNT.0.81.0701092000160.872@nqvgln> (raw)
In-Reply-To: <6faad9f00701091621l4f807cc0mb2129b6085c623d2@mail.gmail.com>

On Wed, 10 Jan 2007, Mojca Miklavec wrote:

> (abstract of Maarten-Jan's sample)
> 
> > \usemodule[tikz]
> >
> > \starttext
> >
> > \startbuffer[tikz]
> > \starttikzpicture
> > \draw[red,thick] (0,0) -- (1,1)
> >            {[rounded corners] -- (2,0) -- (3,1)}
> >                 -- (3,0) -- (2,1);
> > \stoptikzpicture
> > \stopbuffer
> >
> > \placefigure
> >       {The figure is flushed left, whereas it should be centered.}
> >       {\externalfigure[tikz.tmp]}
> >
> > \stoptext
> 
> Hello,
> 
> I've been playing a bit with the most simple tikz examples so far, but
> after I saw this example I got an impression that ConTeXt users might
> also want to see syntax like
> 
> \starttikzpicture[optional options]{name}
>  ...
> \stoptikzpicture
> 
> \usetikzpicture{name}
> 
> in addition to the existing one, which would then be equivalent to
> syntax of including metapost graphics. There are dozens of other
> \start[whatever] commands defined in the module, but I have no idea
> what all of them do. Perhaps \startpgfpicture might be another command
> worth considering, but I have no idea about the rest.

Maybe commands along the line of metapost (so that everything is 
easier to remeber)

\startreusablePGFgraphic
\startusablePGFgraphic
\startPGFcode
\startstaticPGFfigure ;)

and

\usePGFgraphic, \reusePGFgraphic, etc.

For proper integration, there should also be a mechanism to pass 
\overlayheight and \overlaywidth to the pgfpicture, so that the 
pgfpicture can use it.

I am just curious, does everyone use pgf for standalone graphic or has 
someone also tried to use it with \framed[background=...], which works 
for the most simple cases.

Aditya

      reply	other threads:[~2007-01-10  1:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-09 16:42 M.J. Kallen
2007-01-09 18:15 ` Willi Egger
2007-01-09 19:26   ` Hans Hagen
2007-01-09 22:51     ` Aditya Mahajan
2007-01-09 23:26     ` Mojca Miklavec
2007-01-10 20:08     ` Willi Egger
2007-01-10  0:21 ` Mojca Miklavec
2007-01-10  1:08   ` Aditya Mahajan [this message]

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=alpine.WNT.0.81.0701092000160.872@nqvgln \
    --to=adityam@umich.edu \
    --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).