diff --git a/matlab/reports/@graph/createGraph.m b/matlab/reports/@graph/createGraph.m index ff1acc107..6979f67f1 100644 --- a/matlab/reports/@graph/createGraph.m +++ b/matlab/reports/@graph/createGraph.m @@ -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, ... diff --git a/matlab/reports/@report/write.m b/matlab/reports/@report/write.m index 1dda89f96..03b0dfc9a 100644 --- a/matlab/reports/@report/write.m +++ b/matlab/reports/@report/write.m @@ -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');