Mercurial > octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
12278:52f6f2989fcd | 12279:18f7aac81ef0 |
---|---|
63 name = opts.name; | 63 name = opts.name; |
64 endif | 64 endif |
65 gl2ps_device = {sprintf("%snotxt", lower (suffix))}; | 65 gl2ps_device = {sprintf("%snotxt", lower (suffix))}; |
66 gl2ps_device{2} = "tex"; | 66 gl2ps_device{2} = "tex"; |
67 if (dos_shell) | 67 if (dos_shell) |
68 pipeline = {sprintf("copy con %s.%s", name, suffix)}; | 68 ## FIXME - this will only work on MinGW with the MSYS shell |
69 pipeline{2} = sprintf ("copy con %s.tex", name); | 69 pipeline = {sprintf("cat > %s-inc.%s", name, suffix)}; |
70 pipeline{2} = sprintf ("cat > %s.tex", name); | |
70 else | 71 else |
71 pipeline = {sprintf("cat > %s.%s", name, suffix)}; | 72 pipeline = {sprintf("cat > %s-inc.%s", name, suffix)}; |
72 pipeline{2} = sprintf ("cat > %s.tex", name); | 73 pipeline{2} = sprintf ("cat > %s.tex", name); |
73 endif | 74 endif |
74 case "tikz" | 75 case "tikz" |
75 ## format GL2PS_PGF | 76 ## format GL2PS_PGF |
76 gl2ps_device = {"pgf"}; | 77 gl2ps_device = {"pgf"}; |
159 unwind_protect_cleanup | 160 unwind_protect_cleanup |
160 pclose (pid); | 161 pclose (pid); |
161 end_unwind_protect | 162 end_unwind_protect |
162 endfor | 163 endfor |
163 | 164 |
165 if (! isempty (strfind (opts.devopt, "standalone"))) | |
166 opts.latex_standalone (opts); | |
167 endif | |
168 | |
164 endfunction | 169 endfunction |
165 | 170 |