* Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame
@ 2021-07-26 11:13 Fabrice Couvreur via ntg-context
2021-07-26 16:07 ` Wolfgang Schuster via ntg-context
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Fabrice Couvreur via ntg-context @ 2021-07-26 11:13 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur
[-- Attachment #1.1: Type: text/plain, Size: 1269 bytes --]
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: 2892 bytes --]
[-- Attachment #2: solution.png --]
[-- Type: image/png, Size: 46279 bytes --]
[-- Attachment #3: 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame
2021-07-26 11:13 Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame 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
2 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-07-26 16:07 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster
Fabrice Couvreur via ntg-context schrieb am 26.07.2021 um 13:13:
> 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=]
\startuseMPgraphic{acframe}
fill OverlayBox
leftenlarged (BackSpace + 5mm)
rightenlarged ExHeight
withcolor "lightgray";
setbounds currentpicture to OverlayBox;
\stopuseMPgraphic
\defineoverlay
[acframe]
[\useMPgraphic{acframe}]
\defineframed
[ACFRAME]
[...,
background=acframe,
...]
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Adjust the length of a frame
2021-07-26 11:13 Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame 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
2 siblings, 0 replies; 4+ messages in thread
From: Fabrice Couvreur via ntg-context @ 2021-07-27 10:05 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur
[-- Attachment #1.1: Type: text/plain, Size: 1472 bytes --]
Le lun. 26 juil. 2021 à 13:13, Fabrice Couvreur <fabrice1.couvreur@gmail.com>
a écrit :
> 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: 2743 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Adjust the length of a frame
2021-07-26 11:13 Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame 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
2 siblings, 0 replies; 4+ messages in thread
From: Fabrice Couvreur via ntg-context @ 2021-07-27 10:06 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-07-27 10:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 11:13 Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame 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 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).