diff scripts/plot/__fltk_print__.m @ 12279:18f7aac81ef0 release-3-4-x

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	Fri Jan 28 14:05:59 2011 -0500
+++ b/scripts/plot/__fltk_print__.m	Fri Jan 28 18:18:15 2011 -0500
@@ -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