JuliaTeX / TikzPictures.jl

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

Customize environment for TikZ picture #58

Closed epatters closed 4 years ago

epatters commented 4 years ago

Would it be possible to add a field to TikzPicture that allows the LaTeX environment for TikZ pictures to be changed? My use case is tikz-cd, which uses the environment \begin{tikzcd} .. \end{tikzcd} instead of \begin{tikzpicture} ... \end{tikzpicture}.

I can implement this feature if you think it makes sense.

mykelk commented 4 years ago

I'm open to it! Are there other use cases that you are aware of beyond tikz-cd?

epatters commented 4 years ago

Great! At the moment I can't think of any other uses cases.

mykelk commented 4 years ago

No prob. Feel free to send in a PR. It should be fine so long as the current API doesn't break.