It sounds like a good idea, until you need to write advanced mathematical documents, in which case it all breaks down.<p>Any tips to make a latex pandoc workflow viable for advanced math documents with custom commands and such. I.e. using the mathtools package and various advanced latex math  commands?