Problem rendering graphics in latex/moodle

Problem rendering graphics in latex/moodle

by khaled baloul -
Number of replies: 3

Hello all,

I am having problems rendering latex graphics, like as in

Using TeX Notation 3.

 

 I added \usepackage{graphicx} in administration/filter/Tex notation area..

 

What is going wrong with the installation, I have moodle 2.3.1.

Thanks for your help.

 

K. Bahloul

 

 

 

 

 

 

 

 

Average of ratings: -
In reply to khaled baloul

Re: Problem rendering graphics in latex/moodle

by AL Rachels -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Khaled,

We need to know a little more info to be able to help. Which Moodle, what else do you have set on the LaTeX Render Settings page, what kind of server is your Moodle on, and have you been able to get other Math notation to work?

AL

In reply to AL Rachels

Re: Problem rendering graphics in latex/moodle

by khaled baloul -


Hello AL, Hi mauno,

Thanks buddies for your help and answers.

I am using Mooodle 2.3.1 on a centOS server of my provider.
I am not aware about the Tex software he installed.
Following mauno, I tried some other latex commands and found out that xy-pic commands for graphs like \xymatrix seem working even if the output figures
are not correctly displayed in the browser as I should scroll far to the right to see them smile

I am yet looking to find which xy commands would render geometric figures: cicles, triangles, angles....

Again thanks for your help

K. Bahloul

In reply to khaled baloul

Re: Problem rendering graphics in latex/moodle

by Mauno Korpelainen -

Those examples in moodle docs are written for mimetex and they work with cgi mimetex without problems - for example http://www.imathas.com/cgi-bin/mimetex.cgi?\circle(150) used in img tag (see insert image button in editor toolbar)

<img src="http://www.imathas.com/cgi-bin/mimetex.cgi?\circle(150)" alt="Circle" width="152" height="150" />

creates Circle

If your tex filter was using mimetex and you had removed \line from blacklisted words array - see http://moodle.org/mod/forum/discuss.php?d=209285 - also your tex filter could output the examples with mimetex.

However mimetex can't use any usepackage commands so if your site is using texlive etc you need to check first which kind of commands different extra packages use - "picture", "xy", "pstricks", "graphicx"... - and those packages do not understand the "language" of these mimetex examples.

Finally pure tex renderers like mathJax do not have these commands at all.