I have been searching the internet for hours but I think I am looking in the wrong direction. Hopefully this is the right place for asking, otherwise please point me in the right direction :)
I write markdown documents. I use latex inside these documents for equations and figures. I save these as .txt and use pandoc to convert to .pdf and such,
pandoc example.txt -o example.pdf --bibligraphy library.bib
to be precise. I have now started using knitr as well. I played around with it for a bit and tried to create more markdown .txt documents with latex embedded (as described above) as well as R code chunks. I then converted this to .pdf using pandoc but this didn't produce the desired result.
My question: are there any tools that will allow me to write markdown, latex and Rcode (knitr) in the same document and convert to proper pdf (and .docx) versions?