ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fabrice Couvreur via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
Subject: Adjust the length of a frame
Date: Tue, 27 Jul 2021 12:06:55 +0200	[thread overview]
Message-ID: <CACyK-eqs+Sv6WZsYxG27V=yewC8=_+A4+CwAQH9DQJx=2wZUNQ@mail.gmail.com> (raw)
In-Reply-To: <CACyK-eoCngVgJVrCW1TXr4wupvtUJo8D8JETCj+2n6UrrMLDLg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1546 bytes --]

---------- Forwarded message ---------
De : Fabrice Couvreur <fabrice1.couvreur@gmail.com>
Date: lun. 26 juil. 2021 à 13:13
Subject: Texte source 30 / 5000 Résultats de traduction Adjust the length
of a frame
To: mailing list for ConTeXt users <ntg-context@ntg.nl>


Hello,
Following on from my previous questions for writing my book (thanks again
Wolfgang), I have to create a solution environment like the attached image.
My problem is adjusting the length of the frame.
Thank you.
Fabrice

\setupbodyfont[newcomputermodern-book,11pt]

\defineframed
   [ACFRAME]
   [frame=off,
    width=fit,
    align=flushleft,
    location=low,
    background=color,
    backgroundcolor=lightgray,
    foregroundcolor=,
    foregroundstyle=]


\setupenumerations
  [before={\blank},
   after={\blank},
   alternative=top,
   title=yes,
   titleleft={},
   titleright={},
   titlestyle=bold,
   width=broad]

\defineenumeration
   [exercice]
   [text=Exercice,
    number=yes,
    numbercommand=\groupedcommand{}{.},
    style=italic]

\defineenumeration
   [solution]
   [text=Solution,
    headcommand=\ACFRAME,
    number=no,
    numbercommand=\groupedcommand{}{},
    style=normal]

\starttext

\startexercice{Le nombre d'or est irrationnel}
  Le nombre d'or, noté \m{\phi}, est tel que
\m{\phi=\dfrac{1+\sqrt{5}}{2}}. Montrer que \m{\phi} est irrationnel.
\stopexercice

\startsolution
  Nous raisonnons par l'absurde en supposant que \m{\phi} est rationnel.
\stopsolution

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 2898 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2021-07-27 10:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-26 11:13 Texte source 30 / 5000 Résultats de traduction " Fabrice Couvreur via ntg-context
2021-07-26 16:07 ` Wolfgang Schuster via ntg-context
2021-07-27 10:05 ` Fabrice Couvreur via ntg-context
2021-07-27 10:06 ` Fabrice Couvreur via ntg-context [this message]

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='CACyK-eqs+Sv6WZsYxG27V=yewC8=_+A4+CwAQH9DQJx=2wZUNQ@mail.gmail.com' \
    --to=ntg-context@ntg.nl \
    --cc=fabrice1.couvreur@gmail.com \
    /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).