diff --git a/matlab/reporting/@graph/createGraph.m b/matlab/reporting/@graph/createGraph.m
index d81ab12572bf12d81d2bcce50236f2efd2109297..8b9969cd4f253dd3224fb197121d3ff705f80ef7 100644
--- a/matlab/reporting/@graph/createGraph.m
+++ b/matlab/reporting/@graph/createGraph.m
@@ -120,10 +120,14 @@ drawnow;
 
 o.figname = [tempname '.tex'];
 disp('  converting to tex....');
-matlab2tikz('filename', o.figname, ...
-            'showInfo', false, ...
-            'showWarnings', false, ...
-            'checkForUpdates', false);
+if exist('OCTAVE_VERSION')
+    print(o.figname, '-dtikz');
+else
+    matlab2tikz('filename', o.figname, ...
+                'showInfo', false, ...
+                'showWarnings', false, ...
+                'checkForUpdates', false);
+end
 
 grid off;
 box off;
diff --git a/matlab/reporting/@report/write.m b/matlab/reporting/@report/write.m
index 031310d47585fc418f3d0e4ce57bb353d2fd75f5..2c1d9c84bda07c1a85f91e0d313fe69df34f47f8 100644
--- a/matlab/reporting/@report/write.m
+++ b/matlab/reporting/@report/write.m
@@ -41,10 +41,19 @@ if strcmpi(o.orientation, 'landscape')
     fprintf(fid, ',landscape');
 end
 fprintf(fid, ']{geometry}\n');
-fprintf(fid, '\\usepackage{pdflscape, pgf, pgfplots, booktabs}\n');
+fprintf(fid, '\\usepackage{pdflscape, pgf, booktabs}\n');
 fprintf(fid, ['\\makeatletter\n' ...
               '\\def\\blfootnote{\\gdef\\@thefnmark{}\\@footnotetext}\n' ...
               '\\makeatother\n']);
+
+if exist('OCTAVE_VERSION')
+    fprintf(fid, '\\usepackage[T1]{fontenc}\n');
+    fprintf(fid, '\\usepackage[utf8x]{inputenc}\n');
+    fprintf(fid, '\\usepackage{gnuplot-lua-tikz}\n');
+else
+    fprintf(fid, '\\usepackage{pgfplots}\n');
+end
+
 if o.showdate
     fprintf(fid, '\\usepackage{fancyhdr, datetime}\n');
     fprintf(fid, '\\newdateformat{reportdate}{\\THEDAY\\ \\shortmonthname\\ \\THEYEAR}\n');