maths / moodle-qtype_stack

Stack question type for Moodle
GNU General Public License v3.0
138 stars 147 forks source link

textput #1131

Closed sdirnboeck closed 3 months ago

sdirnboeck commented 3 months ago

Hello,

I just found the function textput and would like it to have the e-function displayed with \mathrm{e}. I have gotten the textput function to work for the logarithm and the imaginary unit i, but somehow it doesn't work for the exponential function.

How does the textput-function work for the exponential function?

sangwinc commented 3 months ago

The issue here is that student's input "e" is transformed into the Maxima constant %e. Hence, you need

texput(%e, "\mathrm{e}");