From 3c639959f47ca8d5d2da1539e7dc864bd9b55718 Mon Sep 17 00:00:00 2001 From: hugh-obrien Date: Mon, 9 Jul 2018 11:35:19 +0100 Subject: [PATCH] hack in the command and image --- app/coffee/LatexRunner.coffee | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/coffee/LatexRunner.coffee b/app/coffee/LatexRunner.coffee index 6a5a4f6..ef2b85b 100644 --- a/app/coffee/LatexRunner.coffee +++ b/app/coffee/LatexRunner.coffee @@ -16,7 +16,7 @@ module.exports = LatexRunner = # We want to run latexmk on the tex file which we will automatically # generate from the Rtex/Rmd/md file. - mainFile = mainFile.replace(/\.(Rtex|md|Rmd)$/, ".tex") + mainFile = mainFile.replace(/\.(Rtex|md|Rmd)$/, ".md") if compiler == "pdflatex" command = LatexRunner._pdflatexCommand mainFile @@ -32,6 +32,12 @@ module.exports = LatexRunner = if Settings.clsi?.strace command = ["strace", "-o", "strace", "-ff"].concat(command) + # ignore the above and make a pandoc command + console.log(mainFile) + console.log(image) + image = "ivotron/pandoc" + command = "pandoc -o $COMPILE_DIR/output.html $mainFile" + id = "#{project_id}" # record running project under this id ProcessTable[id] = CommandRunner.run project_id, command, directory, image, timeout, environment, (error, output) ->