sphinx-contrib / tikz

A Sphinx extension to draw pictures with the TikZ/PGF LaTeX package
Other
18 stars 15 forks source link

Implemented ``:xscale:`` option #5

Closed christian-krieg closed 3 years ago

christian-krieg commented 3 years ago

Hey there,

First of all: Many thanks for sharing such a great work! This extension is fantastic!

However, I faced the problem that some of my figures had an overhang in the generated PDF (because they were too big), so I found it quite handy to have an option to adjust the figure's width with regard to the available width in the target document. I didn't find such functionality, so I implemented it :)

I hope you find it useful as well! I think with :xscale:, it is pretty easy to adjust the width in an intuitive manner. Would be cool to see that propagating to upstream, and eventually a new release on PiPy :)

Cheers, Christian

Here is the essence: