You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't seem to be the case, opening it is nice but when you run a script you rather want to write the pdf somewhere silently. I would do something like that:
functionmakepdf(latex)
dirname ="$(tempname()).d"mkdir(dirname)
texname =joinpath(dirname, "document.tex")
pdfname =joinpath(dirname,"document.pdf")
open(texname, "w") do file
write(file, latex)
endcd(dirname) dofor i in1:2
output =readall(`pdflatex -shell-escape -halt-on-error $texname`)
contains("Error:", output) &&println(output)
endend
pdfname
endfunctionwritepdf(latex,filename)
pdfname =makepdf(latex)
cp(pdfname,filename,remove_destination=true)
nothingendfunctionopenpdf(latex)
pdfname =makepdf(latex)
if OS_NAME ==:Windows
command ="cmd /K start \"\"$pdfname"CreateProcess(command)
elsespawn(`open $pdfname`)
end
pdfname
end
I can do a PR if you want.
The text was updated successfully, but these errors were encountered:
jonathanBieler
changed the title
Is there a way to write the pdf to a specific place.
Is there a way to write the pdf to a specific place ?
May 4, 2017
It doesn't seem to be the case, opening it is nice but when you run a script you rather want to write the pdf somewhere silently. I would do something like that:
I can do a PR if you want.
The text was updated successfully, but these errors were encountered: