Help

Re: Help

by Colin Fraser -
Number of replies: 6
Picture of Documentation writers Picture of Testers
Tis this...So there is something in the creation of the combo dropdown that causes TeX not to render... You may want to put this up as a Tracker item... It also does not work in Moodle 2.0 btw...
Attachment texinquiz.png
In reply to Colin Fraser

Re: Help

by Marc Grober -
This was added to tracker a couple of years ago. No likely solution as it is an HTML limitation.
In reply to Marc Grober

Re: Help

by Colin Fraser -
Picture of Documentation writers Picture of Testers
Ahhh that is disappointing. The use of a form then limits the rendering of TeX? mmm now.. why would that be.
In reply to Colin Fraser

Re: Help

by Mauno Korpelainen -

The explanation is actually really simple - Internet Explorer can't use images in normal html drop down selection lists so it can't use tex either. In fact IE refuses to show even mathJax.

There are some workarounds like using javascript (jquery) that create lists that look like typical html drop down lists with image support - for example http://www.marghoobsuleman.com/jquery-image-dropdown - but such scripts have never been implemented to moodle or those question types and they don't work if javascript is disabled.

In reply to Mauno Korpelainen

Re: Help

by Marc Grober -
I thought colin was talking about this:
http://tracker.moodle.org/browse/MDL-19440
which is not related to the IE problem
In reply to Marc Grober

Re: Help

by Mauno Korpelainen -

The same issue, yes, but it is also an IE problem

http://moodle.org/mod/forum/discuss.php?d=123806#p543153

You can use asciimathml and MathJax in dropdownlists and firefox renders maths well in normal drop down selection lists but tex filter is using images and IE has no way to render tex filter images in selection list (drop down list).

Only Firefox can show maths in elements like

<select>
  <option>maths a</option>
  <option>maths b</option>
  <option>maths c</option>
  <option>maths d</option>
</select>

so if you want to use maths in drop down lists you can change those lists to some other elements like div or span and use css with some nice classes and styles to make it look like a drop down list. If select lists can be changed with jQuery to other html elements in those image drop down list scripts it is as well possible to use those other elements right from the start instead of select drop down lists.

And since it requires a major rewrite of code of that question type I fully agree when you said: "No likely solution as it is an HTML limitation." - in the near future wink

In reply to Mauno Korpelainen

Re: Help

by Colin Fraser -
Picture of Documentation writers Picture of Testers
I kinda figured it out last night that the reason was related to the inability of combo-dropdowns being able to display images. It took a while but I got there. wink