hack in the command and image
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user