On Thu, Jul 24, 2008 at 9:58 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> On Thu, 24 Jul 2008, Steffen Wolfrum wrote:
>
>> Hi,
>>
>> the content is centered, but how do I center the frame:
>
> Do you want
>
> \midaligned{\framed[...]{...}}
>
> Aditya
\presetlocalframed[centeredframe]
\def\startcenteredframed
{\dosingleempty\dostartcenteredframed}
\def\dostartcenteredframed[#1]%
{\startalignment[middle]
\dontleavehmode\localframed[centeredframe][#1]
\bgroup}
\def\stopcenteredframed
{\egroup
\stopalignment}
\showframe
\starttext
\startcenteredframed
[frame=on,before=\vskip5cm,location=center,align=middle,width=0.8\textwidth,offset=0pt]
„Wir müssen für die Freiheit planen und nicht für die
Sicherheit, wenn auch vielleicht aus keinem anderen Grund als dem,
dass nur die Freiheit die Sicherheit sichern kann."
\blank[3pt]
\it{Karl Popper}
\stopcenteredframed
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________