From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57984 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: How can one center or align a float? Date: Thu, 8 Apr 2010 14:28:19 +0200 Message-ID: <30C31D38-836D-469D-B472-EE8B1772FBAD@gmail.com> References: <78DF562A-661B-43BD-BB27-9DC8BBEFC401@gmail.com> <4BBDA988.7060607@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: multipart/mixed; boundary="===============1904141578==" X-Trace: dough.gmane.org 1270729714 24110 80.91.229.12 (8 Apr 2010 12:28:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Apr 2010 12:28:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 08 14:28:32 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 1NzqqW-0004jJ-QL for gctc-ntg-context-518@m.gmane.org; Thu, 08 Apr 2010 14:28:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C5AA4C9D53; Thu, 8 Apr 2010 14:28:31 +0200 (CEST) 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 rv0OFj3vso9g; Thu, 8 Apr 2010 14:28:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0E154C9D27; Thu, 8 Apr 2010 14:28:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 48F71C9D27 for ; Thu, 8 Apr 2010 14:28:24 +0200 (CEST) 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 bXhbeC1wNl-F for ; Thu, 8 Apr 2010 14:28:21 +0200 (CEST) Original-Received: from mail-fx0-f222.google.com (mail-fx0-f222.google.com [209.85.220.222]) by balder.ntg.nl (Postfix) with ESMTP id 8D5FEC9D04 for ; Thu, 8 Apr 2010 14:28:21 +0200 (CEST) Original-Received: by fxm22 with SMTP id 22so1961807fxm.34 for ; Thu, 08 Apr 2010 05:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:mime-version :content-type:subject:date:in-reply-to:to:references:message-id :x-mailer; bh=SdfKKSKQWDjk3sgh3WQCJSPJ8LJakv8343eK+otZkuE=; b=F1rtLrERttZoDRMgkuAPsovMq3IN9mbB4B2eYA7iYsbNwBmKZCnSXA+SkHtprbHE8g BCLNmZKuLWulAIwYjAYSEXHcvuEkPLQuQaySUmN/YGIgG182++lVzyf5LXvWsB0wiCX0 mbWXPAyOLTVWkrP4b+FXDtqrNN07Hgo1wIX98= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=Ec+wfncSP+b1Sv1YraTNMYBaUUlLySdHvfIN3pNBz4JFDqtH79qWXVzIJUBGN08Kv9 uAVjimRqYXsawoCb0pPgYUkOnbEFTg/+IjA/DyqoP7nbvrV3deyvbS6QgilsBK0aJyh8 /h+BrwdyswigpP4s+a3nCwVKljVR7mlvmPvhg= Original-Received: by 10.223.42.22 with SMTP id q22mr81459fae.40.1270729701028; Thu, 08 Apr 2010 05:28:21 -0700 (PDT) Original-Received: from mackavian.math.uvsq.fr (MacKavian.math.uvsq.fr [193.51.32.142]) by mx.google.com with ESMTPS id z15sm82889fkz.21.2010.04.08.05.28.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 08 Apr 2010 05:28:20 -0700 (PDT) In-Reply-To: <4BBDA988.7060607@googlemail.com> X-Mailer: Apple Mail (2.1078) 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:57984 Archived-At: --===============1904141578== Content-Type: multipart/alternative; boundary=Apple-Mail-6-364723124 --Apple-Mail-6-364723124 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Thanks Wolfgang, your solution does perfectly what I do need. I guess the \offset trickery can be used for other floats as well, when = fine tuning is necessary. Many thanks again: OK On 8 avr. 2010, at 12:01, Wolfgang Schuster wrote: > Am 08.04.10 11:10, schrieb Otared Kavian: >> Hi all, >>=20 >> How is it possible to have a STEPchart be midaligned, or = right-aligned, as one may do this with figures, tables, and FLOWcharts? >> An example is here: >>=20 >> %%%%%%%%%%%% >> \usemodule[steps,mathml] >> \starttext >> \startbuffer[test-chart] >> \startSTEPtable >> \cell {$c=3D2a+3b$} \text {with $a=3D5$} >> \cell {$c=3D10+3b$} \text {and $b=3D6$} >> \cell {$c=3D10+18$} \text {we get} >> \cell {$c=3D28$} >> \stopSTEPtable >> \stopbuffer >> How can one center the following \type{\STEPchart}? >> \getbuffer[test-chart] >> \stoptext >> %%%%%%%%%%%% >>=20 >> I should add that \startalignment[middle], or \placefigure do not = have any influence on the alignment of the above example. >> =20 > You have to adjust it by hand, stepchart use the complete textwidth = and alignments > is useless in this case, use \offset to shift the chart to the right = side. >=20 > \offset[x=3D.3\textwidth]{\getbuffer[test-chart]} >=20 > Wolfgang >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ %%%%%%%%%%%%%%%%%% Otared Kavian D=E9partement de Math=E9matiques Universit=E9 de Versailles Saint-Quentin B=E2timent Fermat 45 aveue des Etats Unis 78035 Versailles cedex T=E9l=E9phone: +33 1 39 25 46 42 Secr=E9tariat: +33 1 39 25 46 44=20 Secr=E9tariat: +33 1 39 25 46 46 e-mail: Otared.Kavian@math.uvsq.fr --Apple-Mail-6-364723124 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1
Am = 08.04.10 11:10, schrieb Otared Kavian:
Hi = all,

How is it = possible to have a STEPchart be midaligned, or right-aligned, as one may = do this with figures, tables, and = FLOWcharts?
An example is = here:

%%%%%%%%%%%%
\usemodule[steps,mathml]
\starttext
\startbuffer[test-chart]
\startSTEPtable
= \cell {$c=3D2a+3b$} \text {with = $a=3D5$}
\cell = {$c=3D10+3b$} \text {and $b=3D6$}
= \cell {$c=3D10+18$} \text {we get}
= \cell {$c=3D28$}
\stopSTEPtable
\stopbuffer
How = can one center the following = \type{\STEPchart}?
\getbuffer[test-chart]
\stoptext
%%%%%%%%%%%%

I should add = that \startalignment[middle], or \placefigure do not have any influence = on the alignment of the above example.
  
You have to adjust it by = hand, stepchart use the complete textwidth and alignments
is useless = in this case, use \offset to shift the chart to the right = side.

\offset[x=3D.3\textwidth]{\getbuffer[test-chart]}

Wolf= gang

______________________________________________________________= _____________________
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.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

Otared.Kavian@math.uvsq.fr<= /div>



= --Apple-Mail-6-364723124-- --===============1904141578== 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 ___________________________________________________________________________________ --===============1904141578==--