LuaLaTex

Using LuaLaTeX seems like a great idea, inserting the excellent embedded programming language Lua into LaTeX1 code (not really code, a very good mathematical markup language) to help with some of the inconveniences of the language.

For those of you who’ve never worked with LaTeX, imagine a simple markup language like markdown for example. The text looks clean and simple, font style changing and the like is handled pretty seamlessly and does not distract from the experience of writing the text itself.

LaTeX is not like this.

It’s full of annoying backticks and curly braces which frankly get in the way of writing prose. It’s great for inserting maths, for example I cannot embed maths into markdown very simply but in LaTeX it’s a doddle.

For example

$\chi^2 = \sum_i_N$


This is a simple equation for the chi squared value of a dataset. It makes sense once you stare at it for a while I promise you!

It does not however handle things like file paths well. I started to write about embedding python into LaTeX to enable nice file pathing structures and relative paths but this turned out to be quite a hassle. I had a nice vision of writing a python pre-processor for latex which strips out any python code between some predetermined tags, running python on it and putting the resulting text back into the tex document. I gave up on this however for two reasons:

1. I could not be bothered
2. I found LuaLaTeX