How to compile a Scrivener document to Latex?

A post was split to a new topic: Creating new MMD-LaTeX compile formats