Skip to content

Allow simple form input elements within parts of equations #3338

Closed
@sangwinc

Description

@sangwinc

I'm the lead developer of the STACK online assessment system (https://stack-assessment.org/) which is a very popular online assessment system for mathematics. Students type in expressions to answer quizzes online, and Maxima (a computer algebra package) is used to assess their mathematical expressions. The system uses MathJax to display mathematics - thank you all for a superb library.

We would like to be able to create questions where students "fill in the blanks". In particular creating part of an expression/equation and have some html form input elements within the mathematical expression for students to type in a simple expression.

We would like support for things like <input type="text" name="q1174:3_ans1" class="algebraic" value="(x-4)^6"> inside a mathematical expression.

For example, we could have a LaTeX command like \forminput{...} which has contents like this

\forminput{<input type="text" name="q1174:3_ans1" class="algebraic" value="(x-4)^6">}

MathJax would render the rest of the equation, but retain the HTML input element box within the equation.

Our alternative currently is to spit up equations, e.g. here the student is expected to type in an integrand:

\( \int \) <input type="text" name="q1174:3_ans1" class="algebraic" value="(x-4)^6"> \( \mathrm{d}x\)

This only works in a small set of circumstances.

This is not a duplicate of this issue: #1831

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions