I am getting an odd error and despite reinstalling pandoc and miktex is is still occuring.
I only have one \documentclass but this error continues.LaTeX Error: Two \documentclass or \documentstyle commands.
Here's my code and I'm compiling it with:
https://pastebin.com/MTcADABg (.tex file)pandoc sample_1.md -f gfm -H format.tex -o output.pdf
https://pastebin.com/BiB6EPKb (.md file)
This script works fine until I add in the \documentclass.
Does anyone know how to fix this error, it is driving me nuts. I've spent ages trying to find a way to fix it.
Thanks!