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
9d8c135f
Commit
9d8c135f
authored
May 16, 2013
by
Houtan Bastani
Browse files
reporting: use matlab2tikz when using Octave w OS X
parent
7037e2a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/reports/@graph/createGraph.m
View file @
9d8c135f
...
...
@@ -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
,
...
...
...
matlab/reports/@report/write.m
View file @
9d8c135f
...
...
@@ -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'
);
...
...
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