diff --git a/Plot2LaTeX.m b/Plot2LaTeX.m index df80a77..1e213fb 100644 --- a/Plot2LaTeX.m +++ b/Plot2LaTeX.m @@ -409,7 +409,7 @@ function Plot2LaTeX( h_in, filename, varargin ) waitbar(Step/nStep,hWaitBar,'Saving .svg to .pdf file'); end - if check_Inkscape_Version(inkscape_path) % inkscape v1 + if check_Inkscape_Version(opts.DIR_INKSCAPE) % inkscape v1 cmdtext = sprintf('"%s" "%s.svg" --export-filename="%s.pdf" --export-latex --export-area-drawing',... opts.DIR_INKSCAPE, filename, filename); else % inkscape v0