Skip to content

Commit

Permalink
dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Nov 23, 2018
1 parent 28dcf65 commit 180e10a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Writers/LaTeXWriter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const DOCUMENT_STRUCTURE = (
)

const DOCKER_IMAGE_TAG = "0.1"
const verbose = `--verbose` in ARGS

function render(doc::Documents.Document)
mktempdir() do path
Expand Down Expand Up @@ -107,7 +108,7 @@ function render(doc::Documents.Document)
run(pipeline(dockercmd, stdout="LaTeXWriter.stdout", stderr="LaTeXWriter.stderr"))
elseif latexmk
@info "LaTeXWriter: using natively installed latex"
run(pipeline(texcmd, stdout="LaTeXWriter.stdout", stderr="LaTeXWriter.stderr"))
run(pipeline(texcmd, stdout = verbose ? stdout : "LaTeXWriter.stdout", stderr = verbose ? stderr : "LaTeXWriter.stderr"))
else
@error "LaTeXWriter: docker or latexmk + lualatex required for PDF generation."
end
Expand Down

0 comments on commit 180e10a

Please sign in to comment.