cs | de | en | es | et | fi | fr | hu | ka | lt | pl | pt-br | ro | ru | se
We are migrating LeMill database and the service is in read-only mode. You can browse LeMill, but not log in or edit content. Announcement about the future of LeMill will be made in this space during week 8-12.12. 2014.


How to write equations in LeMill

by Jukka Purma, Hans Põldoja, Tarmo Toikkanen — last modified 2011-06-07 17:50
group: LeMill development

You can use TeX/LaTeX notation to write mathematical symbols and formulas in LeMill. TeX/LaTeX is a typesetting language for describing formulas in unambiguous way: it might look complicated, but once you understand basics, it is easy to expand to anything mathematical you want to write. TeX is the name of the original math component and LaTeX is the expanded document generation language around TeX. For now on this lesson will call them both LaTeX formulas. (For more information check Wikipedia's articles: TeX / LaTeX)

LaTeX formulas are inserted with this button in toolbar:

Latex formula button

The button opens a sheet for writing and previewing the formula. Use the text area to write the formula and use Preview-button to check that the formula returns the correct graph.     

LaTeX formula editor

The formula is inserted to the current cursor position, either within text like this x^{2n}, or as a separate paragraph:


When you are editing surrounding text, the formula appears in green like this:  

LaTeX code in editor

You can edit these green formulas like any other text, but click the formula button to open the preview window to check the changes. When you save the chapter, or start editing another chapter these green formulas are replaced with typeset graphics.

You can also start writing LaTeX-formula straight into the editor. If you write, for example \sqrt{\gamma+t} and then select the written text and click the formula button, the selected text is treated as a LaTeX formula from now on: \sqrt{\gamma+t}

Additional information

http://amath.colorado.edu/documentation/LaTeX/Symbols.pdf -- a cheat sheet of latex symbols and notation. Very useful.

http://www.andy-roberts.net/misc/latex/latextutorial9.html -- a short one page introduction to most often used, but problematic graphical notations: divisions, square roots, etc.

http://amath.colorado.edu/documentation/LaTeX/tutorial/ -- one LaTeX tutorial. Concentrate on sections about maths, as there are other 'environments' that we do not use here. 

http://www.ctan.org/ -- headquarters of everything about TeX or LaTeX

http://en.wikipedia.org/wiki/TeX -- Wikipedia links for general information


Technical details

The LaTeX / TeX in LeMill uses API provided by Google Chart Tools, http://code.google.com/apis/chart/ and the appearance of the graphs and supported libraries may change as the service changes. If the service stops working, we will find another solution.