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
dec9c3a3
Commit
dec9c3a3
authored
Jun 11, 2013
by
Houtan Bastani
Browse files
reporting: search for pdflatex.exe on windows
parent
58a583c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/reports/@report/compile.m
View file @
dec9c3a3
...
...
@@ -59,9 +59,9 @@ if isempty(compiler)
system
([
'PATH=$PATH:/usr/texbin:/usr/local/bin:/usr/local/sbin;'
...
'which pdflatex'
],
echo
);
elseif
strcmp
(
computer
,
'PCWIN'
)
||
strcmp
(
computer
,
'PCWIN64'
)
error
([
'@report.compile: On Windows machines, you must explicitly '
...
'provide the
''
compiler
''
option or set the compiler '
...
'variable in the Report class
'
]
)
;
[
status
,
compiler
]
=
system
(
'findtexmf --file-type=exe pdflatex'
,
echo
);
middle
=
' '
;
compiler
=
[
'"'
strtrim
(
compiler
)
'"
'
];
else
% gnu/linux
[
status
,
compiler
]
=
system
(
'which pdflatex'
,
echo
);
end
...
...
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