ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Itemize and framed
Date: Fri, 29 Aug 2014 15:55:47 +0200	[thread overview]
Message-ID: <2C3ED268-16FE-43DF-A662-5CDC8B3F9FEB@gmail.com> (raw)
In-Reply-To: <CACyK-eqxfioSQ68Q2ucd781FVEnmO9zkHkOU-ZDbraFdgbMxjQ@mail.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

Best regards: OK


On 29 Aug 2014, at 15:19, Fabrice Couvreur <fabrice1.couvreur@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
___________________________________________________________________________________


  reply	other threads:[~2014-08-29 13:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-29 13:19 Fabrice Couvreur
2014-08-29 13:55 ` Otared Kavian [this message]
2014-08-29 16:17   ` Wolfgang Schuster
2014-08-29 17:30     ` Fabrice
2014-08-29 18:21       ` Otared Kavian

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=2C3ED268-16FE-43DF-A662-5CDC8B3F9FEB@gmail.com \
    --to=otared@gmail.com \
    --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).