Commit 9d8c135f authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: use matlab2tikz when using Octave w OS X

parent 7037e2a4
......@@ -130,7 +130,7 @@ if isempty(o.figname)
o.figname = [tempname '.tex'];
end
disp(' converting to tex....');
if exist('OCTAVE_VERSION')
if exist('OCTAVE_VERSION') && isempty(regexpi(computer, '.*apple.*', 'once'))
print(o.figname, '-dtikz');
else
matlab2tikz('filename', o.figname, ...
......
......@@ -46,7 +46,7 @@ fprintf(fid, ['\\makeatletter\n' ...
'\\def\\blfootnote{\\gdef\\@thefnmark{}\\@footnotetext}\n' ...
'\\makeatother\n']);
if exist('OCTAVE_VERSION')
if exist('OCTAVE_VERSION') && isempty(regexpi(computer, '.*apple.*', 'once'))
fprintf(fid, '\\usepackage[T1]{fontenc}\n');
fprintf(fid, '\\usepackage[utf8x]{inputenc}\n');
fprintf(fid, '\\usepackage{gnuplot-lua-tikz}\n');
......
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