Math fonts (Algebra filter)

Math fonts (Algebra filter)

Larry Jones -
回帖数:5
Is there anyway to make the fonts bigger for the Algebra filter?
回复Larry Jones

Re: Math fonts (Algebra filter)

Marc Grober -
See http://moodle.org/mod/forum/discuss.php?d=8312&parent=94622

I would suggest you use asciimathml, which makes this much easier to manage
回复Marc Grober

Re: Math fonts (Algebra filter)

Larry Jones -

I have the filter installed, but it does not work in a Quiz.  I look at how you got it work, too messy.  So how do I make the fonts bigger?  I just tried to call you (Skype).

回复Larry Jones

Re: Math fonts (Algebra filter)

Marc Grober -
on tex size raised earlier.......... while the note about mimetex was undoubtedly accurate..... apparently \small works with the current Moodle tex filter so other commands might work as well..... see http://www.scribd.com/doc/191838/LaTeX-Help-Sheet for some down and dirty details.

One reason I advise installing via met.php is to avoid conflicts with other moodle scripts, such as quiz.js.

you can find info on setting fonts inside the asciimathml script and on the asciimathml home page
回复Marc Grober

Re: Math fonts (Algebra filter)

Mauno Korpelainen -

I tested that quickly yesterday and although tex filter otherwise can use font sizes

  1. \tiny
  2. \scriptsize
  3. \footnotesize
  4. \small
  5. \normalsize
  6. \large
  7. \Large
  8. \LARGE
  9. \huge
  10. \Huge

it did not seem to work in quizzes. But like Marc said AsciiMathML works in quizzes if it's rendered from theme (meta.php) and not from filter. One problem with font sizes is that if we use image fallback scripts (for IE) we need to use for example Mimetex, MathTex or some other renderer to produce those font sizes as images instead of html, CSS or MathML. It's not simple anymore.

And we have several versions of those AsciiMathML scripts that may confuse people - "my scripts", "your scripts" and "their scripts"... big grin

I can't comment algebra filter because I have not used it

回复Mauno Korpelainen

Re: Math fonts (Algebra filter)

Mauno Korpelainen -

I could test this better tomorrow - the input/output is clearly different if you use for example Mimetex vs LiveTex

Mimetex (cgi) does render them correct Test

how about filter here in moodle.org - almost correct (teTeX and TeX filter):

$$\tiny X \scriptsize X \footnotesize X \small X \normalsize X \large X \Large X \LARGE X \huge X \Huge X$$