From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63421 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Tikz figures not centred Date: Thu, 11 Nov 2010 14:34:31 -0500 (EST) Message-ID: References: <1288088447.2222.4.camel@silver-fox> <1289473672.2152.4.camel@silver-fox> <1289492293.15830.0.camel@karneol3> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-103855324-1289504073=:31692" X-Trace: dough.gmane.org 1289504143 1030 80.91.229.12 (11 Nov 2010 19:35:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 11 Nov 2010 19:35:43 +0000 (UTC) To: michael.murphy@uni-ulm.de, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 11 20:35:38 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PGcvm-0004FT-GG for gctc-ntg-context-518@m.gmane.org; Thu, 11 Nov 2010 20:35:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AE168CA860; Thu, 11 Nov 2010 20:35:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qeE6iRUQgWOz; Thu, 11 Nov 2010 20:35:30 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EBC3BCA854; Thu, 11 Nov 2010 20:35:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B9642CA854 for ; Thu, 11 Nov 2010 20:35:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ibC-vW--A65f for ; Thu, 11 Nov 2010 20:35:26 +0100 (CET) Original-Received: from filter7-ams.mf.surf.net (filter7-ams.mf.surf.net [192.87.102.75]) by balder.ntg.nl (Postfix) with ESMTP id CF4B8CA84D for ; Thu, 11 Nov 2010 20:35:25 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter7-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oABJZL7G010897 for ; Thu, 11 Nov 2010 20:35:23 +0100 Original-Received: FROM [10.0.2.15] (wpa107029.Wireless.McGill.CA [142.157.107.29]) By tombraider.mr.itd.umich.edu ID 4CDC4574.9EB68.25613 ; Authuser adityam; 11 Nov 2010 14:35:16 EST In-Reply-To: <1289492293.15830.0.camel@karneol3> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0DDtTzlIp - f21370eff232 - 20101111 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.75 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:63421 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-103855324-1289504073=:31692 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 11 Nov 2010, Michael Murphy wrote: > On Thu, 2010-11-11 at 12:14 +0100, Vedran Mileti=C4=87 wrote: >> 2010/11/11 Michael Murphy >> 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=C4=87 > > Hmm, why didn't I think of that... Thanks! See=20 http://archive.contextgarden.net/thread/20090722.010815.d9c051d3.en.html=20 for an old discussion on this. Aditya --8323328-103855324-1289504073=:31692 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323328-103855324-1289504073=:31692--