# HG changeset patch # User jwe # Date 1192656344 0 # Node ID b1ca2c453b77ba252a3b366ec1e808637fdc9f81 # Parent daff886a8e2a5428a27a1c1926bb6b18b27859a9 [project @ 2007-10-17 21:25:44 by jwe] diff -r daff886a8e2a -r b1ca2c453b77 scripts/ChangeLog --- a/scripts/ChangeLog Wed Oct 17 19:02:11 2007 +0000 +++ b/scripts/ChangeLog Wed Oct 17 21:25:44 2007 +0000 @@ -1,3 +1,8 @@ +2007-10-17 Carlo de Falco + + * plot/print.m: Handle -textspecial and -textnormal flags for fig + output. + 2007-10-15 Søren Hauberg * general/rat.m, sparse/pcg.m, sparse/pcr.m, optimization/sqp.m, diff -r daff886a8e2a -r b1ca2c453b77 scripts/plot/print.m --- a/scripts/plot/print.m Wed Oct 17 19:02:11 2007 +0000 +++ b/scripts/plot/print.m Wed Oct 17 21:25:44 2007 +0000 @@ -72,7 +72,10 @@ ## @item emf ## Microsoft Enhanced Metafile ## @item fig -## XFig +## XFig. If this format is selected the additional options +## @code{-textspecial} or @{-textnormal} can be used to control +## whether the special flag should be set for the text in the figure +## (default is @{-textnormal}). ## @item hpgl ## HP plotter language ## @item mf @@ -127,6 +130,7 @@ printer = ""; debug = false; debug_file = "octave-print-commands.log"; + special_flag = "textnormal"; ## Ensure the last figure is on the screen for single line commands like ## plot(...); print(...); @@ -147,6 +151,8 @@ orientation = "portrait"; elseif (strcmp (arg, "-landscape")) orientation = "landscape"; + elseif (strcmp (arg, "-textspecial")) + special_flag = "textspecial"; elseif (strncmp (arg, "-debug", 6)) debug = true; if (length (arg) > 7) @@ -302,12 +308,14 @@ else options = " mono"; endif + options = strcat (options, " ", special_flag); if (! isempty (fontsize)) options = strcat (options, " fontsize ", fontsize); endif new_terminal = strcat ("fig ", options); + elseif (strcmp (dev, "emf")) ## Enhanced Metafile format options = " ";