--- printold.m 2007-05-27 22:57:16.000000000 +0200 +++ print.m 2007-05-27 22:57:58.000000000 +0200 @@ -176,7 +176,8 @@ ## check if we have to use convert dev_list = {"aifm" "corel" "fig" "png" "pbm" "dxf" "mf" "hpgl", ... - "ps" "ps2" "psc" "psc2" "eps" "eps2" "epsc" "epsc2" "emf"}; + "ps" "ps2" "psc" "psc2" "eps" "eps2" "epsc" "epsc2" \ + "emf" "tex"}; convertname = ""; [idx, errmsg] = cellidx (dev_list, dev); if (! idx) @@ -192,15 +193,22 @@ if (strcmp (dev, "ps") || strcmp (dev, "ps2") ... || strcmp (dev, "psc") || strcmp (dev, "psc2") || strcmp (dev, "epsc") || strcmp (dev, "epsc2") - || strcmp (dev, "eps") || strcmp (dev, "eps2")) + || strcmp (dev, "eps") || strcmp (dev, "eps2") + || strcmp (dev, "tex")) ## Various postscript options - if (dev(1) == "e") - options = "eps "; + if (! strcmp (dev, "tex")) + if (dev(1) == "e") + options = "eps "; + else + options = strcat (orientation, " "); + endif + options = strcat (options, "enhanced "); + termn = "postscript "; else - options = strcat (orientation, " "); + termn = "epslatex "; + options = ""; endif - options = strcat (options, "enhanced "); - + if (any (dev == "c") || use_color > 0) if (force_solid < 0) options = strcat (options, "color dashed "); @@ -221,9 +229,9 @@ if (! isempty (fontsize)) options = strcat (options, " ", fontsize); endif - - new_terminal = strcat ("postscript ", options); - + + new_terminal = strcat (termn, options); + elseif (strcmp (dev, "aifm") || strcmp (dev, "corel")) ## Adobe Illustrator, CorelDraw if (use_color >= 0)