From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4263 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Horizontal centering \startlines...\stoplines / poems Date: Sun, 04 Mar 2001 22:09:37 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010304220937.01736af0@server-1> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394942 24214 80.91.224.250 (23 Oct 2002 17:42:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:42:22 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Steve Lumos In-Reply-To: <09c345222090331HAMS2@lvcablemodem.com> Xref: main.gmane.org gmane.comp.tex.context:4263 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4263 At 01:22 AM 3/3/01 -0800, Steve Lumos wrote: > >This centers the title on the poem, but what I was hoping to do >was center the entire poem horizontally on the page. This definitely >gives me a way to get started though. >> ... >>\def\stopFancyPoem% >> {\stoplines >> \endofshapebox >> \dimen1=0pt >> \reshapebox >> {\setbox\scratchbox=\hbox{\unhcopy\shapebox}% >> \ifdim\wd\scratchbox>\dimen1 \global\dimen1=\wd\scratchbox \fi >> \unhbox\shapebox} >> \bgroup >> \hsize\dimen1 >> \PoemTitle >> \egroup Then add here: \expanded{\setuplayout[width=\the\dimen1]} >> \flushshapebox} >> >>\starttext (untested) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------