add pandoc to pdf converter and adapted template for Mac