reporting: use matlab2tikz when using Octave w OS X
parent
7037e2a4bc
commit
9d8c135f59
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue