From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43440 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.comp.tex.context Subject: Re: \placefigure not centering Date: Wed, 27 Aug 2008 19:46:34 +0200 Message-ID: <20080827174634.GE4017@atos.labs.wmid.amu.edu.pl> References: <20080827091426.GB4017@atos.labs.wmid.amu.edu.pl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219861050 15806 80.91.229.12 (27 Aug 2008 18:17:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Aug 2008 18:17:30 +0000 (UTC) To: Mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 27 20:18:22 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KYPax-0005VM-EN for gctc-ntg-context-518@m.gmane.org; Wed, 27 Aug 2008 20:18:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4668D1FE39; Wed, 27 Aug 2008 20:17:12 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29921-01-11; Wed, 27 Aug 2008 20:16:24 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 210AC1FDF4; Wed, 27 Aug 2008 19:48:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 84D641FE34 for ; Wed, 27 Aug 2008 19:48:06 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23127-10-10 for ; Wed, 27 Aug 2008 19:47:28 +0200 (CEST) Original-Received: from atos.wmid.amu.edu.pl (atos.wmid.amu.edu.pl [150.254.78.2]) by ronja.ntg.nl (Postfix) with ESMTP id DA9B61FDF4 for ; Wed, 27 Aug 2008 19:46:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by atos.wmid.amu.edu.pl (Postfix) with ESMTP id 864E41020E06 for ; Wed, 27 Aug 2008 19:46:34 +0200 (CEST) X-Virus-Scanned: by amavisd-new (PLD-Linux) at wmid.amu.edu.pl Original-Received: from atos.wmid.amu.edu.pl ([127.0.0.1]) by localhost (atos.wmid.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id qDuFQUnROC-1 for ; Wed, 27 Aug 2008 19:46:34 +0200 (CEST) Original-Received: by atos.wmid.amu.edu.pl (Postfix, from userid 3884) id 4DE701011213; Wed, 27 Aug 2008 19:46:34 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20080827091426.GB4017@atos.labs.wmid.amu.edu.pl> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:43440 Archived-At: Dnia Wed, Aug 27, 2008 at 11:14:26AM +0200, Marcin Borkowski napisał(a): > Why this does not center the figure horizontally? What should I do to > center it? > > \placefigure{none}{ > \starttikzpicture[scale=0.3] > \draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle; > \stoptikzpicture > } > > I discovered that using combinations with "1*1" helps, but this is a > dirty trick;). (Also, "none" as a label does not work with combinations > - is it a bug or a feature?) OK, so I'm answering myself. The problem is (I guess so at least) that the second parameter somehow gets typeset "as a paragraph" - that is, with full paragraph's width (=width of the whole column). Since nothing is said about centering, it is flush left. This helps: \placefigure{none}{\hbox{ \starttikzpicture[scale=0.5] \draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle; \stoptikzpicture }} Maybe it's not very clean, but it seems to work. If anyone has a cleaner (more "ConTeXt-way-ish" solution), I'd be thankful for a hint. Greets -- Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl) ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________