From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57032 Path: news.gmane.org!not-for-mail From: Curiouslearn Newsgroups: gmane.comp.tex.context Subject: Re: Why is the figure not centered Date: Fri, 12 Mar 2010 12:10:37 -0500 Message-ID: <3b4b12311003120910n6f4e06d8xfc3939c04350ebec@mail.gmail.com> References: <3b4b12311003120829k7357c509t2cbea0ab03f0441a@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1268413865 32097 80.91.229.12 (12 Mar 2010 17:11:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Mar 2010 17:11:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 12 18:11:01 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 1Nq8O1-0004Yc-UT for gctc-ntg-context-518@m.gmane.org; Fri, 12 Mar 2010 18:10:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7F27FC9D9D; Fri, 12 Mar 2010 18:10:56 +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 Tg-p+Berq9Ei; Fri, 12 Mar 2010 18:10:53 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B22BC9D56; Fri, 12 Mar 2010 18:10:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9B177C9D56 for ; Fri, 12 Mar 2010 18:10:51 +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 vK0NQw2TQjhf for ; Fri, 12 Mar 2010 18:10:40 +0100 (CET) Original-Received: from mail-pv0-f169.google.com (mail-pv0-f169.google.com [74.125.83.169]) by balder.ntg.nl (Postfix) with ESMTP id BC6CEC9D23 for ; Fri, 12 Mar 2010 18:10:39 +0100 (CET) Original-Received: by pvh11 with SMTP id 11so572870pvh.14 for ; Fri, 12 Mar 2010 09:10:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=yiWBsnU+rjbJp4XvpwqrjJJvx32eA8K4jvDwiH4XS7c=; b=IeKFmq5o8va0tAlGZQnG7iAuX98/5ghIQfpw5iHIMsSpgE3dxTPCAPqN908gFQPjWA 2FxSecMAMXhM2AS16/GgDG2giNZELHqfHcRDceyl2FP5PtMTM54hazhjjfvNQ/pIEXrt bsJWVO32D+8W9cHIzlz/TVq4XaLxWFVO9Y5IA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=MHMDTda4jFFu8mKbXqiW3E8CD/UT/5o8opRVJuuGYMtC1iGZLsYjAe8rNWX/8g/trM 2DnodEjoH3b1IpmLdLcMze5pq4+qXrvk/cGuzY/MvdlO6lyfge8bjEnTuF+rUrWwB5v7 OSocc22MN7QyJMJRoUnl9rXogccUUKpt8/2Gw= Original-Received: by 10.115.103.22 with SMTP id f22mr2870296wam.68.1268413837959; Fri, 12 Mar 2010 09:10:37 -0800 (PST) In-Reply-To: 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:57032 Archived-At: That worked great! Thanks. On Fri, Mar 12, 2010 at 11:50 AM, Aditya Mahajan wrote: > On Fri, 12 Mar 2010, Curiouslearn wrote: > >> Can someone please tell me why the code below does not (horizontally) >> center the figure? The caption is in the middle but the figure is not. >> >> Thanks. >> >> \usemodule[pgfplots] >> \starttext >> >> \placefigure[here][fig:demand]{Demand Curve} >> {\starttikzpicture >> =A0 =A0 =A0 =A0\startaxis[line width=3D1pt, >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 axis x line =3D bott= om, >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 axis y line =3Dleft, >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 xmin=3D0,xmax=3D60, >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ymax=3D120] >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\addplot[mark=3Dnone] coordinates {(0,100) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(50,0)}; >> =A0 =A0 =A0 =A0\stopaxis >> \stoptikzpicture} >> >> \stoptext > > Add a \hbox around \starttikzpicture ... \stoptikzpicture > > See > http://archive.contextgarden.net/message/20090722.010815.d9c051d3.en.html > > and Hans's reply. > > Aditya > _________________________________________________________________________= __________ > 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 =A0: http://www.pragma-ade.nl / http://tex.aanhet.net > archive =A0: http://foundry.supelec.fr/projects/contextrev/ > wiki =A0 =A0 : http://contextgarden.net > _________________________________________________________________________= __________ > ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________