record latexmk output
This commit is contained in:
@@ -217,6 +217,11 @@ module.exports = CompileManager = {
|
|||||||
error = new Error('compilation')
|
error = new Error('compilation')
|
||||||
error.validate = 'fail'
|
error.validate = 'fail'
|
||||||
}
|
}
|
||||||
|
// make top-level output accesible to user, write in background for simplicity
|
||||||
|
if (output != null) {
|
||||||
|
fs.writeFile(Path.join(compileDir, "output.stdout"), output.stdout, () => { })
|
||||||
|
fs.writeFile(Path.join(compileDir, "output.stderr"), output.stderr, () => { })
|
||||||
|
}
|
||||||
// compile was killed by user, was a validation, or a compile which failed validation
|
// compile was killed by user, was a validation, or a compile which failed validation
|
||||||
if (
|
if (
|
||||||
(error != null ? error.terminated : undefined) ||
|
(error != null ? error.terminated : undefined) ||
|
||||||
|
|||||||
@@ -201,6 +201,10 @@ module.exports = ResourceWriter = {
|
|||||||
// knitr cache
|
// knitr cache
|
||||||
should_delete = false
|
should_delete = false
|
||||||
}
|
}
|
||||||
|
if (path.match(/^output.(stdout|stderr)$/)) {
|
||||||
|
// latexmk output
|
||||||
|
should_delete = true
|
||||||
|
}
|
||||||
if (path.match(/^output-.*/)) {
|
if (path.match(/^output-.*/)) {
|
||||||
// Tikz cached figures (default case)
|
// Tikz cached figures (default case)
|
||||||
should_delete = false
|
should_delete = false
|
||||||
|
|||||||
Reference in New Issue
Block a user