diff --git a/src/Writers/LaTeXWriter.jl b/src/Writers/LaTeXWriter.jl index aa9578f34f0..f93f0bdb431 100644 --- a/src/Writers/LaTeXWriter.jl +++ b/src/Writers/LaTeXWriter.jl @@ -100,7 +100,7 @@ function compile_tex(texfile) Sys.which("latexmk") === nothing && (@error "LaTeXWriter: latexmk command not found."; return false) @info "LaTeXWriter: using latexmk to compile tex." try - piperun(`latexmk -f -interaction=nonstopmode -view=none -lualatex -shell-escape $file`) + piperun(`latexmk -f -interaction=nonstopmode -view=none -lualatex -shell-escape $texfile`) return true catch err logs = cp(pwd(), mktempdir(); force=true)