make and \inputfile with latexmk so that we get better error messages and more reliable builds (hopefully)
add support for .Rmd and .Rtex files