# HG changeset patch # User carandraug # Date 1331565382 0 # Node ID b688d8814e55361da3045239ee027a5c126525e6 # Parent 76a4607ba4aa7ae2488b75f7a22769921445cff1 publish: fix bug due to incorrectly named variables diff -r 76a4607ba4aa -r b688d8814e55 main/miscellaneous/inst/publish.m --- a/main/miscellaneous/inst/publish.m Mon Mar 12 15:06:46 2012 +0000 +++ b/main/miscellaneous/inst/publish.m Mon Mar 12 15:16:22 2012 +0000 @@ -311,7 +311,7 @@ if (!isempty (figures)) for nfig = 1:length (figures) figure (figures(nfig)); - print (sprintf ("%s%d.%s", iFile(1:end-2), nfig, options.imageFormat), + print (sprintf ("%s%d.%s", ifile(1:end-2), nfig, options.imageFormat), sprintf ("-d%s", options.imageFormat), "-color"); if (strcmpi (options.format, "html")); section3_title = "

Generated graphics

\n"; @@ -320,10 +320,10 @@ elseif (strcmpi (options.format, "latex")) section3_title = "\\section*{Generated graphics}\n"; disp_fig = strcat (disp_fig, "\\includegraphics[scale=0.6]{", ifile(1:end-2), - sprintf("%d",nFig), "}\n"); + sprintf("%d",nfig), "}\n"); endif - endfor - endif + endfor + endif endfunction % TO DO