reporting: use matlab2tikz when using Octave w OS X

time-shift
Houtan Bastani 2013-05-16 14:03:02 +02:00
parent 7037e2a4bc
commit 9d8c135f59
2 changed files with 2 additions and 2 deletions

View File

@ -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, ...

View File

@ -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');