Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-12 Thread fv leung via ntg-context
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]

Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-12 Thread Gavin via ntg-context
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: > >

Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-11 Thread Aditya Mahajan via ntg-context
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

Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-11 Thread Fabrice L via ntg-context
> 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 >

Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-11 Thread Gavin via ntg-context
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

Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-11 Thread Hans Hagen via ntg-context
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

[NTG-context] Conditional text appearing in a fixed vertical space

2022-01-11 Thread Gavin via ntg-context
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