limits of integration with TeX filter

limits of integration with TeX filter

by Jeff Eldridge -
Number of replies: 2
On my Moodle site (running 1.7), when I type:

$$$\int_{0}^{3}x^5\,dx$$$

I want to see this:

$$\int_{0}^{3}x^5\,dx$$

but instead, I see this:

integral.gif

Any suggestions on why the upper limit of integration appears differently on my Moodle? Thanks!

Average of ratings: -
In reply to Jeff Eldridge

Re: limits of integration with TeX filter

by Jeff Eldridge -
I think I've answered my own question (at least in part). If I type:

$$$\textstyle{\int_{0}^{3}x^5\,dx}$$$

then I see:

$$\textstyle{\int_{0}^{3}x^5\,dx}$$

on my Moodle site, just like I do here.

Is there a way to set textstyle as the default as it appears to be here on moodle.org?
In reply to Jeff Eldridge

Re: limits of integration with TeX filter

by John Forkosh -
Yes. See http://www.forkosh.com/mimetexmanual.html#options for a discussion of the -DDISPLAYSIZE compile option. (If your browser doesn't scroll down to #options by itself, click item (II)c from the table of contents.)

In short, download mimetex's source from http://www.forkosh.com/mimetex.zip and compile your own cgi as
cc -DAA -DDISPLAYSIZE=99 mimetex.c gifsave.c -lm -o mimetex.cgi

Then you'll always see \textstyle by default, and will need to type $$$\displaystyle\int_{0}^{3}x^5\,dx$$$ for the other style.