[NTG-context] Itemize and framed

2014-08-29 Thread Fabrice Couvreur
Hi,
Is this the best way to insert a list in a frame ?
thank you,
Fabrice

\setupcolors[state=start]
\definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
\definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00]
\starttext
\framed[corner=06,frame=on,framecolor=H1prime,location=middle,background=color,backgroundcolor=H4]{%
\rbox{
\startitemize[1]
 \item planter le piquet 1 à côté de l'arbre 1 ;
 \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les
piquets 3 et 4 ;
\item se placer de manière à être aligné avec l'arbre 2 et le piquet 3
d'une part ;

 et avec l'arbre 1 et le piquet 4 d'autre part.
\item mesurer sa distance à l'arbre 1 ;
\item rechercher, dans le tableau, la distance correspondante entre les
deux arbres.
\stopitemize}}
\stoptext
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize and framed

2014-08-29 Thread Otared Kavian
Hi,

It looks fine, but you can as well use \startframedtext, as in:

\starttext
\definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
\definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00]
\starttext
\startframedtext[
width=\textwidth,
corner=06,
frame=on,
framecolor=H1prime,
location=middle,
background=color,
backgroundcolor=H4]

\startitemize[1] 
 \item planter le piquet 1 à côté de l'arbre 1 ; 
 \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les 
piquets 3 et 4 ;
\item se placer de manière à être aligné avec l'arbre 2 et le piquet 3 d'une 
part ;

 et avec l'arbre 1 et le piquet 4 d'autre part.
\item mesurer sa distance à l'arbre 1 ; 
\item rechercher, dans le tableau, la distance correspondante entre les deux 
arbres. 
\stopitemize

\stopframedtext

\stoptext

Best regards: OK


On 29 Aug 2014, at 15:19, Fabrice Couvreur fabrice1.couvr...@gmail.com wrote:

 
 Hi, 
 Is this the best way to insert a list in a frame ? 
 thank you,
 Fabrice
 
 \setupcolors[state=start]
 \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
 \definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00]
 \starttext
 \framed[corner=06,frame=on,framecolor=H1prime,location=middle,background=color,backgroundcolor=H4]{%
 \rbox{
 \startitemize[1] 
  \item planter le piquet 1 à côté de l'arbre 1 ; 
  \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les 
 piquets 3 et 4 ;
 \item se placer de manière à être aligné avec l'arbre 2 et le piquet 3 d'une 
 part ;
 
  et avec l'arbre 1 et le piquet 4 d'autre part.
 \item mesurer sa distance à l'arbre 1 ; 
 \item rechercher, dans le tableau, la distance correspondante entre les deux 
 arbres. 
 \stopitemize}}
 \stoptext
 ___
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize and framed

2014-08-29 Thread Wolfgang Schuster

Am 29.08.2014 um 15:55 schrieb Otared Kavian ota...@gmail.com:

 Hi,
 
 It looks fine, but you can as well use \startframedtext, as in:
 
 \starttext
 \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
 \definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00]
 \starttext
 \startframedtext[
   width=\textwidth,
   corner=06,
   frame=on,
   framecolor=H1prime,
   location=middle,
   background=color,
   backgroundcolor=H4]
 
 \startitemize[1] 
 \item planter le piquet 1 à côté de l'arbre 1 ; 
 \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les 
 piquets 3 et 4 ;
 \item se placer de manière à être aligné avec l'arbre 2 et le piquet 3 d'une 
 part ;
 
 et avec l'arbre 1 et le piquet 4 d'autre part.
 \item mesurer sa distance à l'arbre 1 ; 
 \item rechercher, dans le tableau, la distance correspondante entre les deux 
 arbres. 
 \stopitemize
 
 \stopframedtext
 
 \stoptext

In this case framedtext is the better choice but it can be done with framed as 
well
but one has to set values for align and disable the strut, e.g.

\framed
  [align=right,strut=no]
  {\startitemize
   …
   \stopitemize}

and when you use MkIV replace \framed with \startframed, i.e.

\startframed[align=right,strut=no]
  \startitemize
  …
  \stopitemize
\stopframed

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize and framed

2014-08-29 Thread Fabrice

Thank you for your answers, I continue to learn.
However, the solution should Otared me better because the numbering is 
less near the edge of the frame.

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize and framed

2014-08-29 Thread Otared Kavian
Hi Fabrice,

Actually with both solutions you can control the distance of the framed 
material to the frame by the key 
« offset=SomeMeasure »
For instance you can say:

\startframedtext[
width=\textwidth,
offset=.5em,
corner=06,
frame=on,
framecolor=H1prime,
location=middle,
background=color,
backgroundcolor=H4]

and changing .5em to another value you cans choose what you find better.

Best regards: OK

On 29 Aug 2014, at 19:30, Fabrice couvreur.fabr...@wanadoo.fr wrote:

 Thank you for your answers, I continue to learn.
 However, the solution should Otared me better because the numbering is less 
 near the edge of the frame.
 ___
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___