Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: When creating large diagrams using plantuml, they can quickly get too wide for a pdf page. For images in the png, pdf and svg format, this problem is handled by the sphinx-provided "sphinxincludegraphics" latex command, which resizes the included graphic if needed. As tikz images are embedded using the "\input" command, this resize logic is not applicable for them. Solution: I would suggest to use the "max-width" option (which is already somehow implemented but not documented) to allow the user to specify a maximum width. The "adjustbox" macro, which is already being used for giving an absolute size for an image, also supports this type of maximum size. This way, the image is not resized if it fits, but only if it would exceed the given size.
- Loading branch information