From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47398 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: centering & fit question Date: Fri, 13 Feb 2009 20:21:12 +0100 Message-ID: <5ACDFA7D-62C1-4789-9408-7E99DA29CF8A@gmail.com> References: <326847810902130703v75fb8472j7e2c6c7708e5ff4c@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1234553056 959 80.91.229.12 (13 Feb 2009 19:24:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Feb 2009 19:24:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 13 20:25:32 2009 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 1LY3fA-0007cs-1O for gctc-ntg-context-518@m.gmane.org; Fri, 13 Feb 2009 20:25:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1D8571FC83; Fri, 13 Feb 2009 20:24:02 +0100 (CET) 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 20937-06; Fri, 13 Feb 2009 20:22:48 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B5CCE1FC39; Fri, 13 Feb 2009 20:22:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B7B161FC39 for ; Fri, 13 Feb 2009 20:22:46 +0100 (CET) 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 09035-08 for ; Fri, 13 Feb 2009 20:22:09 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id 3561E1FC16 for ; Fri, 13 Feb 2009 20:22:09 +0100 (CET) Original-Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.186]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1DJM8CJ018030 for ; Fri, 13 Feb 2009 20:22:08 +0100 Original-Received: by fk-out-0910.google.com with SMTP id z23so760987fkz.2 for ; Fri, 13 Feb 2009 11:22:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=JpaO93QoRpndfF81CCSzpioOSR2GMVd+h6c9sfqzjzI=; b=RpIHMuYPpaC0sBPhlDnLfxOdgJNLac28aFG7Lkl6j3GW0IsVmZtAPmxEKhFdj8wd4k GKHqEsdN3z2GxUvvMFxN4xRMq8lNC0aCZqablEl+yM91ASR6OwmVAp2TrWuAQomkKsok PiH71EuykNRJMJJeaYxhE/FvXpp4KiT9eaM20= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=icjkSN+7bo8oI9rztsJQ9VVzDca/92uaqojyF8mprHWTV/5p54WpFwgNBgFf8n3m0Z Pjkk1ZGs4nvdY+CUTd5v8I7sjY0bl5uSY4nHOSKSeTOfBoI/9MX02RRkb8Ik8vWi7/Va h70zEW1tyM2iZirtexBytmKC0pbFfxZLgfh60= Original-Received: by 10.86.83.2 with SMTP id g2mr484689fgb.1.1234552928055; Fri, 13 Feb 2009 11:22:08 -0800 (PST) Original-Received: from ?10.70.208.118? (8.106.113.82.net.de.o2.com [82.113.106.8]) by mx.google.com with ESMTPS id e20sm719812fga.56.2009.02.13.11.22.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 13 Feb 2009 11:22:07 -0800 (PST) In-Reply-To: <326847810902130703v75fb8472j7e2c6c7708e5ff4c@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.128.186; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 179736649 - 6dfc0140cf7a X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:47398 Archived-At: Am 13.02.2009 um 16:03 schrieb Alan Stone: > Hello, > > In the underneath example, the only way I found to have everything > horizontally and vertically centered in the text and margin header, > as well as fit into the margin header, is as follows: [..] > What's the way to get the same result without using \framed > and without making the margin wider ? > > Uncommenting what's commented in the code above centers > everything ok, but the margin text doesn't fit. You text is too long and you need a vertical box to break the along lines. \setuplayout[margin=3cm] %\showframe \def\myText {\hfill some text \hfill} \def\myMarginText {\hbox{$\vcenter{\vbox{\raggedcenter this is some margin text}}$}} \def\myMarginText {\framed [location=middle, align=middle, width=\hsize, frame=off] {this is some margin text}} \setuppagenumbering[location=footer] \setupheader [before=\vss, after=\vss] \setupheadertexts [text] [\myText] [\myText] \setupheadertexts [margin] [\myMarginText] [\myMarginText] \starttext test \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________