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