Re: [NTG-context] Setting framed

2009-03-22 Thread Wolfgang Schuster


Am 21.03.2009 um 21:45 schrieb Diego Depaoli:


Hi all,
in my text each section ends with an one-line box so I used \framed
(thinking that's the right way).
How to put each box at the same distance from last previous line even
it comes after a list, a table, a regular text...?


\dontleavehmode\framed{...}

or

\dontleavehmode\framedtext{...}

or

\startframedtext
...
\stopframedtext


There is an the option to set the \framed's font globally?


\setupframed

or

\setupframedtext

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
___


Re: [NTG-context] Setting framed

2009-03-22 Thread Diego Depaoli
On Sun, Mar 22, 2009 at 9:43 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 21.03.2009 um 21:45 schrieb Diego Depaoli:

 Hi all,
 in my text each section ends with an one-line box so I used \framed
 (thinking that's the right way).
 How to put each box at the same distance from last previous line even
 it comes after a list, a table, a regular text...?

 \dontleavehmode\framed{...}
Sorry Wolfgang, but I can't get wanted result
Consider follow example

\starttext
\startitemize
\item one
\item two
\stopitemize
\framed {This box is far from previous line}
\input tufte

\framed {This box is near previous line}
\startitemize
\item one
\item two
\stopitemize
\dontleavehmode\framed {Using dontleavehmode makes no difference
regarding previous line}
\input tufte

\dontleavehmode\framed {Here too}
\stoptext

My goal is to put all boxes at XXpt from previous line.

 There is an the option to set the \framed's font globally?

 \setupframed
Yes, I know it, but... which option?
I do not find the right one

Cheers
-- 
Diego Depaoli
___
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
___


Re: [NTG-context] Setting framed

2009-03-22 Thread Wolfgang Schuster


Am 23.03.2009 um 01:34 schrieb Diego Depaoli:


Sorry Wolfgang, but I can't get wanted result
Consider follow example


\defineframedtext
  [myframe]
  [width=fit,
   offset=.25ex,
   foregroundstyle=bolditalic,
   before={\blank[medium]},
   after={\blank[medium]}]

\setupitemize
  [before={\blank[medium]},
   after={\blank[medium]}]


\starttext
\startitemize
\item one
\item two
\stopitemize
\framed {This box is far from previous line}


\startmyframe
This box is far from previous line
\stopmyframe

You need a framedtext environment.


There is an the option to set the \framed's font globally?


\setupframed

Yes, I know it, but... which option?
I do not find the right one


foregroundstyle, see example setup above.

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
___


Re: [NTG-context] Setting framed

2009-03-22 Thread Diego Depaoli
On Mon, Mar 23, 2009 at 1:56 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 \startmyframe
 This box is far from previous line
 \stopmyframe

 You need a framedtext environment.
Understood, It's easier than I thought
No need of cryptic parameters.

 There is an the option to set the \framed's font globally?

 \setupframed

 Yes, I know it, but... which option?
 I do not find the right one

 foregroundstyle, see example setup above.
Yes, NOW I see it

As usual... many thanks Wolfgang

-- 
Diego Depaoli
___
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
___