JuliaTeX / TikzPictures.jl

Creating PGF/TikZ pictures and saving them in various formats
Other
89 stars 28 forks source link

Path for files #51

Closed harshangrjn closed 3 years ago

harshangrjn commented 4 years ago

Is there a way to specify a particular path, something like save(PDF("results/test"), tp) instead of saving in the default folder? Currently I get an error of this form: results/results: no such file or directory (ENOENT)

mykelk commented 4 years ago

I think the directory has to exist. Does it in your case?

harshangrjn commented 4 years ago

I do have the "results" directory. But it throws an error about a folder which I haven't asked to save the file in. That's why, I was surprised.

mykelk commented 4 years ago

What's the output of ; pwd?

harshangrjn commented 4 years ago

My current directory is ~/code, where the script to generate the pdf is contained. And I also have the ~/code/results folder.

mykelk commented 4 years ago

It works for me:

image