Add color to the log
Implement undo stack and undo actions
Cache `LaTeXStringBuilder#getSpans` result for better performance