sphinx-contrib / plantuml

BSD 2-Clause "Simplified" License
113 stars 40 forks source link

Support Tikz format in LaTeX renderer #62

Open jackburridge opened 2 years ago

jackburridge commented 2 years ago

In the LaTeX output it would be nice to have the option to support Tikz. This is possible in plantuml and would give better typographic consistency.

jackburridge commented 2 years ago

I've had an initial stab at the thing and it works quite nicely I just can't figure out if theres a cleaner way to do it, lots is missing as well(width, height, scale), the branch is available here: https://github.com/jackburridge/plantuml/tree/tikz

I do a direct write to body to use \input{} and also add tikz to the preamble demo.pdf demo.zip

yuja commented 2 years ago

Thanks, the change looks fine to me. It's simple and small.

can't figure out if theres a cleaner way to do it,

Can you add a short # TODO: blah, blah... comment describing things should be cleaned up?

lots is missing as well(width, height, scale),

That should be fine since this is a new feature which breaks no existing use cases. Unsupported options can be documented in README.