* centered frame centered ?
@ 2008-07-24 14:37 Steffen Wolfrum
2008-07-24 19:58 ` Aditya Mahajan
0 siblings, 1 reply; 5+ messages in thread
From: Steffen Wolfrum @ 2008-07-24 14:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
the content is centered, but how do I center the frame:
\showframe
\starttext
\setupframed[frame=on,before=
\vskip5cm,location=center,align=middle,width=0.8\textwidth,offset=0pt]
\framed{„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}}
\stoptext
Steffen
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: centered frame centered ?
2008-07-24 14:37 centered frame centered ? Steffen Wolfrum
@ 2008-07-24 19:58 ` Aditya Mahajan
2008-07-25 7:43 ` Steffen Wolfrum
2008-07-25 13:21 ` Wolfgang Schuster
0 siblings, 2 replies; 5+ messages in thread
From: Aditya Mahajan @ 2008-07-24 19:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: centered frame centered ?
2008-07-24 19:58 ` Aditya Mahajan
@ 2008-07-25 7:43 ` Steffen Wolfrum
2008-07-25 7:54 ` Wolfgang Schuster
2008-07-25 13:21 ` Wolfgang Schuster
1 sibling, 1 reply; 5+ messages in thread
From: Steffen Wolfrum @ 2008-07-25 7:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 24.07.2008 um 21:58 schrieb Aditya Mahajan:
> 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[...]{...}}
Thanks, that works – but I was expecting a setupframed internal
solution ...
\setupframed[ ... location=center, ...]
... seems to do nothing?!
Steffen
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: centered frame centered ?
2008-07-25 7:43 ` Steffen Wolfrum
@ 2008-07-25 7:54 ` Wolfgang Schuster
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2008-07-25 7:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, Jul 25, 2008 at 9:43 AM, Steffen Wolfrum <context@st.estfiles.de> wrote:
>
> Am 24.07.2008 um 21:58 schrieb Aditya Mahajan:
>
>> 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[...]{...}}
>
>
> Thanks, that works – but I was expecting a setupframed internal
> solution ...
>
> \setupframed[ ... location=center, ...]
>
> ... seems to do nothing?!
\starttext
text
\framed[location=top,align=right]{text\\text}
text
\framed[location=middle,align=right]{text\\text}
text
\framed[location=bottom,align=right]{text\\text}
text
\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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: centered frame centered ?
2008-07-24 19:58 ` Aditya Mahajan
2008-07-25 7:43 ` Steffen Wolfrum
@ 2008-07-25 13:21 ` Wolfgang Schuster
1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2008-07-25 13:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, Jul 24, 2008 at 9:58 PM, Aditya Mahajan <adityam@umich.edu> 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 : 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-07-25 13:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-24 14:37 centered frame centered ? Steffen Wolfrum
2008-07-24 19:58 ` Aditya Mahajan
2008-07-25 7:43 ` Steffen Wolfrum
2008-07-25 7:54 ` Wolfgang Schuster
2008-07-25 13:21 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).