Mercurial > hg > octave-lyh
diff scripts/plot/__fltk_print__.m @ 12199:3fc07861449b
Fix {eps,ps,pdf}latexstandalone printing for fltk, bug 32262.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Fri, 28 Jan 2011 18:18:15 -0500 |
parents | b0084095098e |
children | 2f0d1e12806d |
line wrap: on
line diff
--- a/scripts/plot/__fltk_print__.m +++ b/scripts/plot/__fltk_print__.m @@ -65,10 +65,11 @@ gl2ps_device = {sprintf("%snotxt", lower (suffix))}; gl2ps_device{2} = "tex"; if (dos_shell) - pipeline = {sprintf("copy con %s.%s", name, suffix)}; - pipeline{2} = sprintf ("copy con %s.tex", name); + ## FIXME - this will only work on MinGW with the MSYS shell + pipeline = {sprintf("cat > %s-inc.%s", name, suffix)}; + pipeline{2} = sprintf ("cat > %s.tex", name); else - pipeline = {sprintf("cat > %s.%s", name, suffix)}; + pipeline = {sprintf("cat > %s-inc.%s", name, suffix)}; pipeline{2} = sprintf ("cat > %s.tex", name); endif case "tikz" @@ -161,5 +162,9 @@ end_unwind_protect endfor + if (! isempty (strfind (opts.devopt, "standalone"))) + opts.latex_standalone (opts); + endif + endfunction