Commit 1a6f8753 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: in windows, replace native filesep with forward slash for inclusion in tex file

parent dec9c3a3
...@@ -127,7 +127,11 @@ end ...@@ -127,7 +127,11 @@ end
drawnow; drawnow;
if isempty(o.figname) if isempty(o.figname)
o.figname = [tempname '.tex']; tn = tempname;
if strcmp(computer, 'PCWIN') || strcmp(computer, 'PCWIN64')
tn = strrep(tn, '\', '/');
end
o.figname = [tn '.tex'];
end end
disp(' converting to tex....'); disp(' converting to tex....');
if exist('OCTAVE_VERSION') && isempty(regexpi(computer, '.*apple.*', 'once')) if exist('OCTAVE_VERSION') && isempty(regexpi(computer, '.*apple.*', 'once'))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment