Latex for conditionals, while loops, lists