WeBWorK Main Forum

latex in popups

latex in popups

by Darwyn Cook -
Number of replies: 4
Is it possible to write a problem that uses a popup that has latex answers?
In reply to Darwyn Cook

Re: latex in popups

by Paul Pearson -
Hi Darwyn,

I'm pretty sure the answer is no (at least that was the conclusion I came to a few years ago when I investigated this question). Maybe there's some new CSS or JavaScript trick I don't know about, though.

Have a good evening!

Paul Pearson
In reply to Darwyn Cook

Re: latex in popups

by Danny Glin -
I believe Paul is correct, and it's likely not easily implemented.  My understanding is that HTML only allows text in drop-down lists, so to implement something like this would involve a good amount of javascript.

Can you accomplish what you need using a multiple choice object with radio buttons?
In reply to Darwyn Cook

Re: latex in popups

by Alex Jordan -
One time I wanted this for a statistics question where the choices were \mu, \bar{x}, \neq and similar stats related characters. I was lucky, in that there are unicode characters for these things, and LaTeX was not necessary. Depending on your needs, unicode characters might work for you too. (I tend to make drop down menus only for very short options. Otherwise I use check boxes.)