nixpkgs-suyu/pkgs/development/python-modules/sphinxcontrib-tikz/binary-paths.patch
Chris Ostrouchov be4f84414e
pythonPackages.sphinxcontrib-tikz: init at 0.4.6
requires texlive.combined.scheme-full due to needing "standalone.cls"
from extras.
2019-07-23 13:09:25 -04:00

22 lines
1.1 KiB
Diff

diff --git a/sphinxcontrib/tikz.py b/sphinxcontrib/tikz.py
index ee21113..a4f4589 100644
--- a/sphinxcontrib/tikz.py
+++ b/sphinxcontrib/tikz.py
@@ -242,7 +242,7 @@ def render_tikz(self, node, libs='', stringsubst=False):
tf.write(latex)
tf.close()
- system([self.builder.config.latex_engine, '--interaction=nonstopmode',
+ system(['@texLive@/bin/pdflatex', '--interaction=nonstopmode',
'tikz-%s.tex' % shasum],
self.builder)
@@ -281,7 +281,7 @@ def render_tikz(self, node, libs='', stringsubst=False):
'-sOutputFile=%s' % outfn, '-r' + resolution + 'x' + resolution,
'-f', 'tikz-%s.pdf' % shasum], self.builder)
elif self.builder.config.tikz_proc_suite == "pdf2svg":
- system(['pdf2svg', 'tikz-%s.pdf' % shasum, outfn], self.builder)
+ system(['@pdf2svg@/bin/pdf2svg', 'tikz-%s.pdf' % shasum, outfn], self.builder)
else:
self.builder._tikz_warned = True
raise TikzExtError('Error (tikz extension): Invalid configuration '