From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112278 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur via ntg-context Newsgroups: gmane.comp.tex.context Subject: Adjust the length of a frame Date: Tue, 27 Jul 2021 12:06:55 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1836319212545958825==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12671"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Fabrice Couvreur To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 27 12:11:17 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8K3P-00030r-7b for gctc-ntg-context-518@m.gmane-mx.org; Tue, 27 Jul 2021 12:11:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C47FD286012; Tue, 27 Jul 2021 12:08:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TeeOWX7Tv8hY; Tue, 27 Jul 2021 12:08:38 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5CA7A286021; Tue, 27 Jul 2021 12:08:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AAFEA28601C for ; Tue, 27 Jul 2021 12:08:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O8sMUCPp0tth for ; Tue, 27 Jul 2021 12:08:35 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.177; helo=mail-oi1-f177.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 62030285C53 for ; Tue, 27 Jul 2021 12:08:35 +0200 (CEST) Original-Received: by mail-oi1-f177.google.com with SMTP id x15so14481280oic.9 for ; Tue, 27 Jul 2021 03:08:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=C1RuRe12Edb7TJX9j6EgIrV2rd5btxMEVXRTSMWpRG0=; b=sRdvgX0rE/k/cG2sT6Rhclnl46mQnppkijw2Fg29TAtG93HLoWGPNxyuRuHefNS4xe sO5Pv0GO++poUlf2eCliOSHyK8FxUzec0Ckn6cGCe2pFSMJ1A0xNoPsWjkVYrnPP8XaH iAJfZv3L8JKHP/qdQdURXBHGhY+0eb/wNqZiq1zjylUX5ubRGuQmb1SUtvnSfejYWVRE R/EMyhOm/z1YZZN3Kwzhsnxn4fQb2SC1D2/V39FrVQ/XfKc1e6M4ju9pzAN8plqTxp/4 6I0Xk4qEcUfdBb41bNhLBx3p6u/EWSAjTQg0M80G7LtWXgP40rR+eky/H/lYYr6S3scw Jjnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=C1RuRe12Edb7TJX9j6EgIrV2rd5btxMEVXRTSMWpRG0=; b=RWO5WEXZfbsnasmwEy0ErfHBZ54ebfgnqJlJOLuxeH1Q3zdEW28vTIwt7ZXUhFzgL4 QIbp1tBY0HvpYYNEbc9mH0NRFuuJvFRRaZLp+xOrjXVYPvLgYPUfuMn+Wnicwgl4p1Hk H1H4BzjLJfeEzJzPnI1eaF6WivuCMhZcXkKzjoKJsIfFh8Rp4Z2vgoQ4ihOfF1kyQT7m KIJ1Em0HrhMhnazHeqHLH88sbRVtA31y2LaBwUM6dVjjupjGaLlNc5utsyY4gNjpAhuG bZhBMiwai+GpfBfF3BaEA/t20ICOcpylc20M8XKMs2nkw5WukvxlvVSh1QOvQ55fFPkj poEQ== X-Gm-Message-State: AOAM533jRbIuol+dyDApCtXFa0gfoRJ2CVecwSqBWB+UTk4Bh+qIxGyI p698VFZv7EEJCEmKGfi+bM1BddCpUDX1A1GyyVSEK5tMC7c= X-Google-Smtp-Source: ABdhPJyyl5AQ1XQTGFertFmN3p4tTxO9yZkINvzbaDnPL1RO9QxW0a632ineDVTvtrkmG63fjJ2XQoADyfESvaLtxdA= X-Received: by 2002:a05:6808:c7:: with SMTP id t7mr2204762oic.151.1627380514106; Tue, 27 Jul 2021 03:08:34 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:112278 Archived-At: --===============1836319212545958825== Content-Type: multipart/alternative; boundary="00000000000075303f05c8180dde" --00000000000075303f05c8180dde Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ---------- Forwarded message --------- De : Fabrice Couvreur Date: lun. 26 juil. 2021 =C3=A0 13:13 Subject: Texte source 30 / 5000 R=C3=A9sultats de traduction Adjust the len= gth of a frame To: mailing list for ConTeXt users 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=3Doff, width=3Dfit, align=3Dflushleft, location=3Dlow, background=3Dcolor, backgroundcolor=3Dlightgray, foregroundcolor=3D, foregroundstyle=3D] \setupenumerations [before=3D{\blank}, after=3D{\blank}, alternative=3Dtop, title=3Dyes, titleleft=3D{}, titleright=3D{}, titlestyle=3Dbold, width=3Dbroad] \defineenumeration [exercice] [text=3DExercice, number=3Dyes, numbercommand=3D\groupedcommand{}{.}, style=3Ditalic] \defineenumeration [solution] [text=3DSolution, headcommand=3D\ACFRAME, number=3Dno, numbercommand=3D\groupedcommand{}{}, style=3Dnormal] \starttext \startexercice{Le nombre d'or est irrationnel} Le nombre d'or, not=C3=A9 \m{\phi}, est tel que \m{\phi=3D\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 --00000000000075303f05c8180dde Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


---------- Forwarded message ---------
De=C2=A0: Fabrice Couvreur <fabrice1.couvreur@gmail= .com>
Date: lun. 26 juil. 2021 =C3=A0=C2=A013:13
Subjec= t: Texte source 30 / 5000 R=C3=A9sultats de traduction Adjust the length of= a frame
To: mailing list for ConTeXt users <ntg-context@ntg.nl>


Hello,
<= /span>Following on from my previous questions for writing my bo= ok (thanks again Wolfgang), I have to create a solution environment like th= e attached image.
My problem is adjusting t= he length of the frame.
Thank you.=
Fabrice

<= /span>
\setupbodyfont[newcomputermodern-book,11pt]

\definefram= ed
=C2=A0 =C2=A0[ACFRAME]
=C2=A0 =C2=A0[frame=3Doff,
=C2=A0 =C2=A0= width=3Dfit,
=C2=A0 =C2=A0 align=3Dflushleft,
=C2=A0 =C2=A0 location= =3Dlow,
=C2=A0 =C2=A0 background=3Dcolor,
=C2=A0 =C2=A0 backgroundcol= or=3Dlightgray,
=C2=A0 =C2=A0 foregroundcolor=3D,
=C2=A0 =C2=A0 foreg= roundstyle=3D]


\setupenumerations
=C2=A0 [before=3D{\blank},<= br>=C2=A0 =C2=A0after=3D{\blank},
=C2=A0 =C2=A0alternative=3Dtop,
=C2= =A0 =C2=A0title=3Dyes,
=C2=A0 =C2=A0titleleft=3D{},
=C2=A0 =C2=A0titl= eright=3D{},
=C2=A0 =C2=A0titlestyle=3Dbold,
=C2=A0 =C2=A0width=3Dbro= ad]

\defineenumeration
=C2=A0 =C2=A0[exercice]
=C2=A0 =C2=A0[t= ext=3DExercice,
=C2=A0 =C2=A0 number=3Dyes,
=C2=A0 =C2=A0 numbercomma= nd=3D\groupedcommand{}{.},
=C2=A0 =C2=A0 style=3Ditalic]

\define= enumeration
=C2=A0 =C2=A0[solution]
=C2=A0 =C2=A0[text=3DSolution,=C2=A0 =C2=A0 headcommand=3D\ACFRAME,
=C2=A0 =C2=A0 number=3Dno,
=C2= =A0 =C2=A0 numbercommand=3D\groupedcommand{}{},
=C2=A0 =C2=A0 style=3Dn= ormal]

\starttext

\startexercice{Le nombre d'or est irrat= ionnel}
=C2=A0 Le nombre d'or, not=C3=A9 \m{\phi}, est tel que \m{\p= hi=3D\dfrac{1+\sqrt{5}}{2}}. Montrer que \m{\phi} est irrationnel.
\stop= exercice

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

\stoptext<= /span>
--00000000000075303f05c8180dde-- --===============1836319212545958825== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1836319212545958825==--