update alignment and add latex printing ppl