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
Dynare
reporting
Commits
401637c9
Commit
401637c9
authored
Jun 26, 2015
by
Houtan Bastani
Browse files
automatically find pdflatex.exe on windows with texlive installation
parent
447cdf4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/@report/compile.m
View file @
401637c9
...
...
@@ -70,6 +70,12 @@ if isempty(opts.compiler)
system
(
'PATH=$PATH:/usr/texbin:/usr/local/bin:/usr/local/sbin;which pdflatex'
);
elseif
ispc
[
status
,
opts
.
compiler
]
=
system
(
'findtexmf --file-type=exe pdflatex'
);
if
status
==
1
[
status
]
=
system
(
'pdflatex.exe --version'
);
if
status
==
0
opts
.
compiler
=
'pdflatex.exe'
;
end
end
middle
=
' '
;
opts
.
compiler
=
[
'"'
strtrim
(
opts
.
compiler
)
'"'
];
elseif
isunix
...
...
Write
Preview
Markdown
is supported
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