Fabrice Larribe wrote:
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.
one of you has to wikify this answer ...
\setupcolors[state=start]
\setupbackgrounds[text][text][background=color,backgroundcolor=red,backgroundoffset=3pt]
\defineenumeration
[example]
[way=bychapter,
separator=\compoundhyphen,
chapternumber=yes,
color=white,
command=\exampleframed]
\defineframed
[exampleframed]
[background=color,
backgroundcolor=white,
foregroundcolor=black,
style=bold,
frame=off]
\starttext
\chapter{One}
\input tufte
\startexample
\input tufte
\stopexample
\input tufte
\stoptext
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context