Welcome to TheCredence.com - You may like to subscribe to our RSS feed to stay updated.
Background of Article - I have a fairly big drupal based website which deals with puzzles and equations. Now right from start I was facing this problem of showing Mathematics symbol but had no idea how to do it. Copy pasting equation/mathematics symbol was not the best of solution so I did a little search on net and hence, got the material for this article
I hope you will find it informative.
Tex, alongside its extensions, LaTeX and AMSLaTex, is the standard syntax used to type mathematical expressions. TeX is very commonly used by mathematicians, as almost all mathematical research is written in TeX. As a result, it should not surprise anyone that TeX has also become a standard for online writing of mathematic formulas and applications. The TeX syntax is a easy and common way to enter mathematics.
But the programmer may not want to read the TeX syntax, but instead have the mathematics to appear nicely typeset. In order to have this, several Drupal modules are used. One can choose among these modules depending how complex and how large the mathematic formulae which are required to be displayed are, and also if one want to install additional modules and software in his computer.
DruTeX - One of the most important advantages of Drutex is that it can handle the entire TeX syntax. DruTeX works by using the LaTeX angine to convert TeX to dvi. ImageMagic alongside dvipng are then used for the conversion of dvi into an image. But using DruTeX also has a disadvantage: DruTeX will work properly after one installs additional software of the server. This means that DruTeX will consume the server’s processing power. But despite all these drawbacks, it is a very powerful tool, which has its own plug-in architecture. It is also greatly supported by users on the internet, as it has its own discussion forum.
jsMath - jsMath is a javascript element which is used to render the TeX on the client’s browser. It has the advantage that one does not need to install additional software on the server, thus not increasing server load with TeX rendering software. The main work is displaced from the server onto the client’s machine.
Mathematics Filter - The use of Mathematics Filter requires the installation of mimeTeX executables on the server. Mathematics Filter uses these executables to convert TeX into images. It is a very fast module, but one should be aware that it cannot render the entire TeX syntax, but only a subset of it.
TeXfilter - Just like DruTeX, TeXfileter requires the installation of LaTeX on the server. Having to install additional software on the server, it has the same advantages as DruTex (it can handle the entire TeX syntax), and also the same disadvantages (the extra load on the server).
There will some other issues too with this that you won't be able to install latex on shared hosting servers but still its worth trying to install in local LAMP installation. I will highly recommend you to install XAMPP if you want one step solution for installing PHP + Apache + MySQL + Perl.
Reference Article - Displaying Mathematics with Tex
Links you may find interesting -
