You can also consider using viewerlayer:
\setupinteraction[state=start]
\defineviewerlayer[solution]
\setupcolors[state=start]
\usecolors[xwi]
\definecolor[keyColor][1.0(maroon)]
\starttext
\startitemize[n]
\but[ToggleLayer{solution}]
\samplefile{tufte}
\blank[big]
Thanks Fabrice and Aditya!
With three completely different approaches, I learned three times more than I
was expecting. This has been a great help. I will probably use the framedtext
method, but I learned something from each.
Gavin
> On Jan 11, 2022, at 4:44 PM, Aditya Mahajan wrote:
>
>
On Tue, 11 Jan 2022, Gavin via ntg-context wrote:
> Hello List,
>
> I am making problem sets for a physics class. Solutions use the style defined
> in the example below, and only appear if the “solution” mode is enabled. I am
> struggling to get a vertical space for the solution which is the
> Le 11 janv. 2022 à 17:56, Gavin via ntg-context a écrit :
>
> Thanks Hans! This is great. I made a slight change to add an additional
> feature. By moving the “mysolution” definition out of \startmode[solution], I
> can now use mysolution in either mode. I’d use this if I want to give my
>
Thanks Hans! This is great. I made a slight change to add an additional
feature. By moving the “mysolution” definition out of \startmode[solution], I
can now use mysolution in either mode. I’d use this if I want to give my
solution to one of the problems, as an example, on the handout.
-Gavin
On 1/11/2022 8:50 PM, Gavin via ntg-context wrote:
Hello List,
I am making problem sets for a physics class. Solutions use the style defined
in the example below, and only appear if the “solution” mode is enabled. I am
struggling to get a vertical space for the solution which is the same
Hello List,
I am making problem sets for a physics class. Solutions use the style defined
in the example below, and only appear if the “solution” mode is enabled. I am
struggling to get a vertical space for the solution which is the same whether
or not the solution is printed. Different