ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: michael.murphy@uni-ulm.de,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Tikz figures not centred
Date: Thu, 11 Nov 2010 14:34:31 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.01.1011111434040.31692@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <1289492293.15830.0.camel@karneol3>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1466 bytes --]

On Thu, 11 Nov 2010, Michael Murphy wrote:

> On Thu, 2010-11-11 at 12:14 +0100, Vedran Miletić wrote:
>> 2010/11/11 Michael Murphy <michael.murphy@uni-ulm.de>
>>         Hi,
>>
>>         I've been having some problems with tikz figures. When I
>>         define a new
>>         tikz figure, I normally put it in a buffer:
>>
>>         \startbuffer[mypic]
>>                \starttikzfigure
>>                        ...
>>                \stoptikzfigure
>>         \stopbuffer
>>
>>         which I use later when I place the figure
>>
>>         \placefigure{My picture}{\getbuffer[mypic]}
>>
>>         The problem is that the figure is not centred: it is always
>>         aligned with
>>         the left side of the document. I guess this has something to
>>         do with
>>         Context not being able to get the image bounds, since it works
>>         fine for
>>         tikz images that are already precompiled into PDFs:
>>
>>         \placefigure{My picture}{\externalimage[mypic.pdf]}
>>
>>         Minimal example is attached.
>>
>>         Michael.
>>
>>
>> You have to wrap up the picture inside of a \hbox, e.g.
>>
>> \hbox{\starttikzfigure
>>        ...
>>     \stoptikzfigure}
>>
>> Regards,
>>
>> --
>> Vedran Miletić
>
> Hmm, why didn't I think of that... Thanks!

See 
http://archive.contextgarden.net/thread/20090722.010815.d9c051d3.en.html 
for an old discussion on this.

Aditya

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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:[~2010-11-11 19:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26 10:20 ConText, TikZ and definecolor: undefined control sequence Michael Murphy
2010-10-27 12:49 ` Cedric Mauclair
2010-10-27 17:18   ` Marius
2010-10-27 20:08     ` Michael Murphy
2010-10-28  7:54       ` Cedric Mauclair
2010-10-28  8:24         ` Cedric Mauclair
2010-10-28 11:47           ` Hans Hagen
2010-10-28 11:46         ` Hans Hagen
2010-10-28 12:14           ` Cedric Mauclair
2010-10-28  9:44       ` Marius
2010-11-11 11:07 ` Tikz figures not centred Michael Murphy
2010-11-11 11:14   ` Vedran Miletić
2010-11-11 16:18     ` Michael Murphy
2010-11-11 19:34       ` 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.LNX.2.01.1011111434040.31692@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --cc=michael.murphy@uni-ulm.de \
    --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).