Automating the use of pandoc