From 48c58cd6c008813ce4154ac3aaa50419f01e4258 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Fri, 29 Nov 2019 11:53:16 +0100 Subject: [PATCH] add missing argument from 081ca98851077266a15128eacbf5c0210c8889a0 --- matlab/reporting/src/@report/compile.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matlab/reporting/src/@report/compile.m b/matlab/reporting/src/@report/compile.m index c851e1323..81fd3229b 100644 --- a/matlab/reporting/src/@report/compile.m +++ b/matlab/reporting/src/@report/compile.m @@ -96,14 +96,14 @@ options = '-synctex=1 -halt-on-error'; [~, rfn] = fileparts(o.fileName); if ~isempty(o.maketoc) % 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 if status ~= 0 cd(orig_dir) error(['@report.compile: There was an error in compiling ' rfn '.pdf.' ... ' ' opts.compiler ' returned the error code: ' num2str(status)]); end -compile_tex(o, orig_dir, opts, options, middle); +compile_tex(o, orig_dir, opts, options, middle, rfn); if o.showOutput || opts.showOutput fprintf('Done.\n\nYour compiled report is located here:\n %s.pdf\n\n\n', [pwd '/' rfn]) @@ -114,7 +114,7 @@ end cd(orig_dir) end -function compile_tex(o, orig_dir, opts, options, middle) +function compile_tex(o, orig_dir, opts, options, middle, rfn) if opts.showOutput if isoctave system([opts.compiler ' ' options middle o.fileName]);