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