Too large Latex formulas

Too large Latex formulas

by Ivica Matotek -
Number of replies: 6
Testers की तस्वीर

Hi!

I have two servers, they have the same Moodle version, same setting of TeX notation, but there is difference in displaying formulas.

Table 1 Table 2
HTML code is the same. Only thing that is different (that I can think of) is server OS. On right side is old Debian Wheezy, and on the left is new Debian Jessie. Does anybody encounter with this problem?

Ivica
In reply to Ivica Matotek

Re: Too large Latex formulas

by AL Rachels -
Core developers की तस्वीर Particularly helpful Moodlers की तस्वीर Plugin developers की तस्वीर Testers की तस्वीर

Hi Ivica,

Did you mean to include some pictures? If so, they are missing.

In reply to AL Rachels

Re: Too large Latex formulas

by Ivica Matotek -
Testers की तस्वीर

Hi!

There were some pictures, but I don't know why there are not shown:




In reply to Ivica Matotek

Re: Too large Latex formulas

by Daniel Thies -
Core developers की तस्वीर Particularly helpful Moodlers की तस्वीर Plugin developers की तस्वीर Testers की तस्वीर

Hi Ivica,

The first image is displayed using the TeX notation filter using a mimetex binary which produces larger images. You can improve this by installing the texlive package in Debian. This install latex and other binaries on the system that will produce much better images.

The second image seems to be using MathJax filter which uses javascript to match the appearance to the surrounding text. You may want to configure this on the other server.

In reply to Ivica Matotek

Re: Too large Latex formulas

by AL Rachels -
Core developers की तस्वीर Particularly helpful Moodlers की तस्वीर Plugin developers की तस्वीर Testers की तस्वीर

Along with what Daniel says, if you do want to continue to use the Tex notation filter, but have the filters default text size more closely match the rest of your text, you can go to yourmoodle/filter/tex/pix.php and look for this line down around line 61:

$texexp = '\Large '.$texexp;

change the word Large to small like so:

$texexp = '\small '.$texexp;

or simply delete or comment out that line
\\$texexp = '\Large '.$texexp;

and purge all caches from  Site administration > Development > Purge all caches to make that change take action
and delete all images from your moodledata sub folder filter/tex
and refresh your browser you should see all images smaller

This change will HAVE to be made again after each Moodle upgrade or you will start getting the larger sizes again!