add missing argument from 081ca988

parent 8475a4fa
...@@ -96,14 +96,14 @@ options = '-synctex=1 -halt-on-error'; ...@@ -96,14 +96,14 @@ options = '-synctex=1 -halt-on-error';
[~, rfn] = fileparts(o.fileName); [~, rfn] = fileparts(o.fileName);
if ~isempty(o.maketoc) if ~isempty(o.maketoc)
% TOC compilation requires two passes % TOC compilation requires two passes
compile_tex(o, orig_dir, opts, [options ' -draftmode'], middle); compile_tex(o, orig_dir, opts, [options ' -draftmode'], middle, rfn);
end end
if status ~= 0 if status ~= 0
cd(orig_dir) cd(orig_dir)
error(['@report.compile: There was an error in compiling ' rfn '.pdf.' ... error(['@report.compile: There was an error in compiling ' rfn '.pdf.' ...
' ' opts.compiler ' returned the error code: ' num2str(status)]); ' ' opts.compiler ' returned the error code: ' num2str(status)]);
end end
compile_tex(o, orig_dir, opts, options, middle); compile_tex(o, orig_dir, opts, options, middle, rfn);
if o.showOutput || opts.showOutput if o.showOutput || opts.showOutput
fprintf('Done.\n\nYour compiled report is located here:\n %s.pdf\n\n\n', [pwd '/' rfn]) fprintf('Done.\n\nYour compiled report is located here:\n %s.pdf\n\n\n', [pwd '/' rfn])
...@@ -114,7 +114,7 @@ end ...@@ -114,7 +114,7 @@ end
cd(orig_dir) cd(orig_dir)
end end
function compile_tex(o, orig_dir, opts, options, middle) function compile_tex(o, orig_dir, opts, options, middle, rfn)
if opts.showOutput if opts.showOutput
if isoctave if isoctave
system([opts.compiler ' ' options middle o.fileName]); system([opts.compiler ' ' options middle o.fileName]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment