Mercurial > forge
changeset 9636:b688d8814e55 octave-forge
publish: fix bug due to incorrectly named variables
author | carandraug |
---|---|
date | Mon, 12 Mar 2012 15:16:22 +0000 |
parents | 76a4607ba4aa |
children | 18e637ba9984 |
files | main/miscellaneous/inst/publish.m |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 = "<h2>Generated graphics</h2>\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