Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
249cd964
Commit
249cd964
authored
May 02, 2013
by
Houtan Bastani
Browse files
reporting: for octave, use octave tikz conversion as opposed to matlab2tikz
parent
a90618f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/reports/@graph/createGraph.m
View file @
249cd964
...
...
@@ -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
;
...
...
matlab/reports/@report/write.m
View file @
249cd964
...
...
@@ -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'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment