reporting: compile with synctex option

time-shift
Houtan Bastani 2014-02-14 11:44:14 +01:00
parent 80de0f324f
commit 5cb2fd4ae6
2 changed files with 5 additions and 1 deletions

3
.gitignore vendored
View File

@ -192,3 +192,6 @@ mex/build/matlab/run_m2html.m
/contrib/ms-sbvar/*.dat
/contrib/ms-sbvar/sbvar_commandline
/contrib/ms-sbvar/sbvar_init_file
# Reporting
*synctex.gz

View File

@ -47,6 +47,7 @@ if ~exist(o.filename, 'file')
end
middle = ' ./';
options = '-synctex=1';
if isoctave
echo = 1;
else
@ -71,7 +72,7 @@ if isempty(compiler)
o.compiler = compiler;
end
status = system([compiler middle o.filename], echo);
status = system([compiler ' ' options middle o.filename], echo);
[junk, rfn, junk] = fileparts(o.filename);
if status ~= 0