Re: [NTG-context] Frame and rulethickness

2015-03-29 Thread Fabrice

Hi Wolfgang,
Initially, I wanted to use Metapost, but I told myself that you or Hans 
would stand to be told to use the command \framed :-)

thank you,
Fabrice
___
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
___

[NTG-context] Frame and rulethickness

2015-03-28 Thread Fabrice Couvreur
Hi,
Is it possible to have a different line thickness right and bottom ?
Best regards,
Fabrice


\defineframed
  [ACFRAME]
  [topframe=off,
   bottomframe=on,
   rightframe=off,
   leftframe=on,
   framecolor=green,
   rulethickness=2pt,
   width=fit,
   align=flushleft,
   location=low,
   background=color,
   backgroundcolor=lightgray]

\defineenumeration
  [exemple]
  [text={Exemple},
   headstyle={\bf\feature[+][f:smallcaps]},
   headcommand=\ACFRAME,
   numberconversionset=ACCONVERSION,
   inbetween={\blank[big]},
   ]

\starttext
\startexemple
\dorecurse{10}{blabla}
\stopexemple
\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] Frame and rulethickness

2015-03-28 Thread Wolfgang Schuster

 Am 28.03.2015 um 12:06 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com:
 
 Hi,
 Is it possible to have a different line thickness right and bottom ?
 Best regards,
 Fabrice
 
 
 \defineframed
   [ACFRAME]
   [topframe=off,
bottomframe=on,
rightframe=off,
leftframe=on,
framecolor=green,
rulethickness=2pt,
width=fit,
align=flushleft,
location=low,
background=color,
backgroundcolor=lightgray]
 
 \defineenumeration
   [exemple]
   [text={Exemple},
headstyle={\bf\feature[+][f:smallcaps]},
headcommand=\ACFRAME,
numberconversionset=ACCONVERSION,
inbetween={\blank[big]},
]
 
 \starttext
 \startexemple
 \dorecurse{10}{blabla}
 \stopexemple
 \stoptext

Use MetaPost.

\startuseMPgraphic{ACFRAME}
fill OverlayBox withcolor \MPcolor{lightgray} ;
draw leftboundary   OverlayBox withpen pencircle scaled 2pt withcolor 
\MPcolor{green} ;
draw rightboundary  OverlayBox withpen pencircle scaled 3pt withcolor 
\MPcolor{green} ;
draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor 
\MPcolor{green} ;
clip currentpicture to OverlayBox leftenlarged 1pt rightenlarged 1.5pt 
bottomenlarged 0.5pt ;
\stopuseMPgraphic

\defineoverlay[ACFRAME][\useMPgraphic{ACFRAME}]

\defineframed
  [ACFRAME]
  [frame=off,
   background=ACFRAME]

\starttext
\ACFRAME{ Example }
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___