Hi,
R S Ananda Murthy wrote:
Hello,
I need the format shown below:
-------------
|Example 1-1|
-----------------------------------------
\setupoutput[pdftex]
\setupcolors[state=start]
Here is (almost) what you want to acheive, but without any macros:
\blank
\starttext
%\def\Ex#1{ \line{\framed{\red #1}} }
\line{
\framed[background=color,backgroundcolor=black]{
{ {\white Exemple 1.1\ }}}\hfill
}
\hrule
\blank
To have numbers, you should use ennumeration.. And a try.. but I don't
know how to adjust things... Others have to complete...
\defineenumeration[Exemple][location=serried,headstyle=bold,width=broad,
text={\framed[background=color,backgroundcolor=black]{\red\sc
Exemple}\textrule},margin=0.5cm,before=\blank,after=\blank]
\startExemple
This is a nice exemple.
\stopExemple
This is the end.
\stoptext
F.
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context