From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47380 Path: news.gmane.org!not-for-mail From: Alan Stone Newsgroups: gmane.comp.tex.context Subject: centering & fit question Date: Fri, 13 Feb 2009 16:03:12 +0100 Message-ID: <326847810902130703v75fb8472j7e2c6c7708e5ff4c@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1948711687==" X-Trace: ger.gmane.org 1234537571 8857 80.91.229.12 (13 Feb 2009 15:06:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Feb 2009 15:06:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 13 16:07:20 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 1LXzct-0006I6-7Z for gctc-ntg-context-518@m.gmane.org; Fri, 13 Feb 2009 16:06:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3AC591FC24; Fri, 13 Feb 2009 16:05:25 +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 17231-01-6; Fri, 13 Feb 2009 16:03:59 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 96F8A1FB57; Fri, 13 Feb 2009 16:03:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 72BF71FADC for ; Fri, 13 Feb 2009 16:03:58 +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 17672-02 for ; Fri, 13 Feb 2009 16:03:14 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by ronja.ntg.nl (Postfix) with ESMTP id 2B40E1FB5A for ; Fri, 13 Feb 2009 16:03:14 +0100 (CET) Original-Received: from mail-ew0-f11.google.com (mail-ew0-f11.google.com [209.85.219.11]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1DF3CSp017151 for ; Fri, 13 Feb 2009 16:03:13 +0100 Original-Received: by ewy4 with SMTP id 4so1135149ewy.2 for ; Fri, 13 Feb 2009 07:03:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=A1Zj91XAATFRArE7pkpCxDyfgx4poNNShLOMCsKI7YE=; b=KbJZZj/obt/1fExSLLPa9/0NziMOFH0tGqVu4hXdvLSUq+hygTfMBg1ZTOKHrvT0uQ qORW46n6wRXL0H7jvR4vg0BJ/eNnEgDsUlUOR2L1cDe//9N7t2NXqILK6Ue3ZATCbiLS d1KdvO1W5OMpj9jwYDDqbXbKgNkHrwlsUob10= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=RD0JeUsoF8oaYOOd2Isr6jVoy8Ael8aGABAzIkIqZDy3LEsqoFx3Ob57l4wvjRP997 JVajHohkO7h/4jCJjOk5mM+9jZn8JpXeoiN91Pu91I3BqOPFqTAye+XY4pJRUkpfTLKx LhkZTBQtQVULypjlNHGZIAyCNNh7kTbtWjpcg= Original-Received: by 10.210.125.13 with SMTP id x13mr1694747ebc.43.1234537392345; Fri, 13 Feb 2009 07:03:12 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.11; 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: 179608846 - 6f6f80bca757 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:47380 Archived-At: --===============1948711687== Content-Type: multipart/alternative; boundary=0015174c3f5cbb936f0462ce2285 --0015174c3f5cbb936f0462ce2285 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: \setuplayout[margin=3cm] \showframe \def\myText{% % \hfill some text \hfill} %\starthiding \framed[% width=\textwidth, height=\headerheight, align=middle, top=\vss, bottom=\vss, frame=off] {some text}} %\stophiding \def\myMarginText{% % \hfill this is some margin text \hfill} %\starthiding \framed[% width=\marginwidth, height=\headerheight, align=middle, top=\vss, bottom=\vss, frame=off] {this is some longer margin text}} %\stophiding \setuppagenumbering[location=footer] %\setupheader[% % before=\vss, % after=\vss] \setupheadertexts[text] [\myText] [\myText] \setupheadertexts[margin] [\myMarginText] [\myMarginText] \starttext test \stoptext 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. Thanks. -- Best, Alan * TeX engine = LuaTeX * ConTeXt minimals ver: 2009.01.18 14:39 MKIV fmt: 2009.1.22 int: english/english * Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home --0015174c3f5cbb936f0462ce2285 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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:
 
\setuplayout[margin=3D3cm]
 
\showframe
 
\def\myText{%
% \hfill some text \hfill}
%\starthiding
&= nbsp;  \framed[%
    width=3D\textwidth,    height=3D\headerheight,
   &nbs= p;align=3Dmiddle,
    top=3D\vss,
  &nb= sp; bottom=3D\vss,
    frame=3Doff]
 &n= bsp;  {some text}}
%\stophiding
 
\def\myMarginText{%
% \hfill this is some margin text \hfill}<= br>%\starthiding
   \framed[%
    = width=3D\marginwidth,
    height=3D\headerheight,    align=3Dmiddle,
    top=3D\= vss,
    bottom=3D\vss,
    frame=3Doff]
    {this is so= me longer margin text}}
%\stophiding
 
\setuppagenumbering[location=3Dfooter]
 
%\setupheader[%
% before=3D\vss,
% after=3D\vss]
 
\setupheadertexts[text]
 [\myText]
 [\myText]
 = ;
\setupheadertexts[margin]
 [\myMarginText]
 [\myMargin= Text]
  
\starttext
test
\stoptext
 
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.
 
Thanks.

--
Best,
Alan

* TeX engine =3D LuaTeX
* ConTeXt &= nbsp;minimals ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.22  int: en= glish/english
* Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home
--0015174c3f5cbb936f0462ce2285-- --===============1948711687== 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1948711687==--