From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43458 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: \placefigure not centering Date: Thu, 28 Aug 2008 14:23:25 +0200 Message-ID: <48B698BD.5020705@elvenkind.com> References: <20080827091426.GB4017@atos.labs.wmid.amu.edu.pl> <20080827174634.GE4017@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 1219928087 7511 80.91.229.12 (28 Aug 2008 12:54:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2008 12:54:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 28 14:55:39 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 1KYh2B-0008JU-CW for gctc-ntg-context-518@m.gmane.org; Thu, 28 Aug 2008 14:55:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 87FBB1FD60; Thu, 28 Aug 2008 14:54:30 +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 02100-01-7; Thu, 28 Aug 2008 14:53:48 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A13C31FCDD; Thu, 28 Aug 2008 14:24:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3E23D1FC5A for ; Thu, 28 Aug 2008 14:24:41 +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 29032-02-8 for ; Thu, 28 Aug 2008 14:23:59 +0200 (CEST) Original-Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by ronja.ntg.nl (Postfix) with ESMTP id 04C7D1FCA0 for ; Thu, 28 Aug 2008 14:23:32 +0200 (CEST) Original-Received: from [192.168.178.20] (boo.demon.nl [82.161.175.147]) (authenticated bits=0) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id m7SCNQ4x099082 for ; Thu, 28 Aug 2008 14:23:32 +0200 (CEST) (envelope-from taco@elvenkind.com) User-Agent: Thunderbird 1.5.0.10 (X11/20070305) In-Reply-To: <20080827174634.GE4017@atos.labs.wmid.amu.edu.pl> X-Virus-Scanned: by XS4ALL Virus Scanner 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:43458 Archived-At: Marcin Borkowski wrote: > 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. You could probably use \framed[frame=off]{} instead of \hbox{} Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________