ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fabrice Larribe <larribe.fabrice@uqam.ca>
Subject: Re: How to do this in ConTeXt
Date: Wed, 04 Jan 2006 13:41:03 -0500	[thread overview]
Message-ID: <43BC16BF.9030502@uqam.ca> (raw)
In-Reply-To: <B3C24EA955FF0C4EA14658997CD3E25E5AE657@CAHIER.gst.uqam.ca>

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.

       reply	other threads:[~2006-01-04 18:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <B3C24EA955FF0C4EA14658997CD3E25E5AE657@CAHIER.gst.uqam.ca>
     [not found] ` <43BC 16BF.9030502@uqam.ca>
2006-01-04 18:41 ` Fabrice Larribe [this message]
2006-01-04 19:42   ` Hans Hagen
     [not found]   ` <B3C24EA955FF0C4EA14658997CD3E25E5AE664@CAHIER.gst.uqam.ca>
2006-01-04 20:51     ` FabriceL.
2006-01-04 21:48       ` Hans Hagen
2006-01-05 10:33       ` R S Ananda Murthy
2006-01-04 18:20 R S Ananda Murthy
  -- strict thread matches above, loose matches on Subject: below --
2006-01-04 16:52 R S Ananda Murthy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43BC16BF.9030502@uqam.ca \
    --to=larribe.fabrice@uqam.ca \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).