From Wikiversity - Reading time: 2 min
LaTeX is a markup language (as is MediaWiki!) for producing mathematical texts of the highest quality. Its use is widespread in the mathematics world. It is built on plain TeX developed by Donald Knuth. You can embed LaTeX markups in MediaWiki by the </math> tags, e.g. <math>e = m c^2</math> is rendered as .
helloworld.tex (see /helloworld.tex).linux/cygwin/[1] whatever shell, go to the directory of your file helloworld.tex and type latex helloworld.dvips helloworld or type dvipdf helloworld to convert it to a postscript or PDF file.A good editing environment helps! A useful and free option is the LaTeX editor (LEd) (see their home page).
A LaTeX extension is also available for Open Office.
Or for a quick and easy solution, try Roger's Online Equation Editor.
pdflatex hello.tex
You can use latex sources also in Wikiversity. In general you will create a PDF file from your latex source. pdflatex converts the tex-file hello.tex in hello.pdf. You may need sometimes a different output format. If you want to convert the tex-file into a Wiki markdown output for Wikiversity you can use PanDoc.
This is useful if you want to use parts from source text in LaTeX also in a Wikiversity learning resource (e.g. for a mathematical text for a lecture). Copy the source in PanDoc and
When press "convert" you can use the Wiki source code in your learning resource.
Sometimes it is necessary to expand latex macros because the macros in your source are not available in Wikiversity.