Probably writint in #Latex would work. But this is far from a fast fix, when you do not know Latex already. But when you are willing to invest it can make live easy, if you are ok with not defining the layout and rather let Latex decide how it has to be layouted.