sphinx-contrib / tikz

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

[#10] add option to support include image in tikz #11

Closed gdbdzgd closed 2 years ago

gdbdzgd commented 2 years ago

changes: add option when building html copy source/‹relative path› to tikz tmp build directory

modify:     sphinxcontrib/tikz.py

Signed-off-by: Zhang, Guodong gdzhang@linx-info.com

philexander commented 2 years ago

I have implemented your feature request in a slightly different way (in version 0.4.14) as follows. We have a new configuration value tikz_includegraphics_path which internally adds the directory to the search path for \includegraphics by calling \graphicspath. This has the advantage, that no files need copying. Also note, that I discourage to put the images in the _static sub-directory, the contents of which is copied in to the html output. The images need, however, only be present during compilation. If you find any problem with my implementation, please let me know.