- There’s been a number of times recently that I would have liked to define a
lineSegmentfrom a center point, a slope, and a length. (Or even more generally, a length before the point and a length after the point). You can define alineby a point and a slope, but I think the only way to define a line segment is by the endpoints. - I don’t know if this is a change in behavior, or if I’m just newly annoyed by it, but there’s a lot of extra width in the output of prefilling a
mathInputwith a fraction symbol.<mathInput prefill="/"/>I’ve been manually changing it to<mathInput prefill="/" minWidth="10"/>so that it looks better. Would there be a way (and a consensus desire) to either make the fraction bar take up more width or to default to a smaller width when there’s a prefill?
- I created this issue with the request for additional ways to define a line segment.
- The default
minWidthof a math input has been 50 pixels for quite awhile. I have not thought of the feature to base its minimum width based on the prefill. I don’t know how easy that would be to implement, but I’d want to make sure there was interest before exploring that further.
Also, check out the new <fractionInput> if you definitely want students to enter a fraction. It has a default minComponentWidth of 0, which appears to mean the same thing as 10.
I’d be nice if we had a feature request sticky where new feature requests could be added and the community could see what’s been requested.
I second the first feature request.
Chrissy, fractionInput has cleaned things up quite drastically for me. Some students would delete the prefill and then not know what the expected form of the answer was. They would proceed to refresh the page and then lose answers they had not submitted yet. Frustration all around.
I can see how that is helpful for a lot of problems, and I’m glad it exists! I previously used <stack> in some quotient rule problems to achieve something similar, so those should likely be rewritten now.
But some of the main times I’m thinking of is for things like difference quotients done in steps with more simplification required in each step, and I’m just not yet convinced that <fractionInput> is pedagogically what I want. It doesn’t look as much like a single expression, and I like that about the current single display with a prefill.
In the first step I might give them the /h and ask them just to fill in the simplified numerator. I started using the <description> tag (after I saw Virginia do it!) combined with <feedback> if they simplify too much to tell them that their answer should be a fraction with the numerator simplified. Doenet
It looks like I could modify one of the examples of <fractionInput> in the documentation to achieve something similar using
<p>
<mathInput name="mi" prefill="/h" hide>
<label>Type a fraction</label>
</mathInput>
</p>
<fractionInput name="frac" >
<label><m>\displaystyle \lim_{h \to 0}</m></label>
$mi
</fractionInput>
but I’m not convinced that’s better. Might be just comfort with what I’m used to, though!
Do you mean like the categories “Get Help”, “Discussion”, etc.? I’m not sure what is a sticky.
https://www.phorum.org/docs/html/faq/ch03s04.html
It’s essentially a thread that stays up top of the list and does not get moved down as new threads get created. I’ve seen this done with forum rules/faq/initial troubleshooting steps.
Started a new thread.
We just released a new dev version that includes the ability to define a line segment based on:
- midpoint
- slope
- length (can be negative to make the line segment extend the other direction)
- midpointOffset (number in [-1, 1]; 0: midpoint, -1: endpoint 1, 1: endpoint 2)
You can combine these with endpoints when only one endpoint is specified.
There are also similar properties you can reference from the line segment (say with name ls):
$ls.midpoint: always the midpoint even ifmidpointOffsetis not0$ls.slope$ls.length(always non-negative)
I’ll also note that WCAG 2.2 AA compliance requires interactive elements to be a minimum of 44x44 pixels. While this isn’t the legal accessibility standard yet (it’s 2.1), it likely will be. So it wouldn’t be bad to just go ahead and meet 2.2 compliance whenever possible . . . So I wouldn’t recommend making the minWidth default any smaller than this.
Does this mean the <fractionInput> and <matrixInput> without any parameters are out of compliance with 2.2 AA? That’s a bummer, because they would look much worse with larger boxes.
I’ll check before the meeting this afternoon. There are possibly workarounds as well, since it’s a hitbox issue, not purely visual size.