Skip to content

Commit

Permalink
Remove calls to isnothing() in Tectonic build code
Browse files Browse the repository at this point in the history
This is to support Julia 1.0 on this branch.
  • Loading branch information
mortenpi committed Jul 7, 2022
1 parent 1e785e1 commit 18396fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Writers/LaTeXWriter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ function compile_tex(doc::Documents.Document, settings::LaTeX, fileprefix::Strin
end
elseif settings.platform == "tectonic"
@info "LaTeXWriter: using tectonic to compile tex."
tectonic = isnothing(settings.tectonic) ? Sys.which("tectonic") : settings.tectonic
isnothing(tectonic) && (@error "LaTeXWriter: tectonic command not found."; return false)
tectonic = (settings.tectonic === nothing) ? Sys.which("tectonic") : settings.tectonic
(tectonic === nothing) && (@error "LaTeXWriter: tectonic command not found."; return false)
try
piperun(`$(tectonic) -X compile --keep-logs -Z shell-escape $(fileprefix).tex`, clearlogs = true)
return true
Expand Down

0 comments on commit 18396fe

Please sign in to comment.