JuliaTeX / TikzPictures.jl

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

Initiate _tikzUseTectonic in init #81

Open Ellipse0934 opened 2 years ago

Ellipse0934 commented 2 years ago

Changing init from __init__() = __init__svg() to

function __init__()
    __init__svg()
    try
        success(`$(tikzCommand()) -v`)
    catch
        global _tikzUseTectonic
        _tikzUseTectonic = true
    end
end

Automatically selects tectonic upon loading. We can additionally consider adding an environment variable with which users can specify which backend they wish to use.

Happy to file a PR, any thoughts ?

mykelk commented 2 years ago

Sure, you can file a PR!