Mercurial > hg > octave-nkf
changeset 7037:b1ca2c453b77
[project @ 2007-10-17 21:25:44 by jwe]
author | jwe |
---|---|
date | Wed, 17 Oct 2007 21:25:44 +0000 |
parents | daff886a8e2a |
children | 4482ba9814b7 |
files | scripts/ChangeLog scripts/plot/print.m |
diffstat | 2 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2007-10-17 Carlo de Falco <kingcrimson@tiscali.it> + + * plot/print.m: Handle -textspecial and -textnormal flags for fig + output. + 2007-10-15 Søren Hauberg <hauberg@gmail.com> * general/rat.m, sparse/pcg.m, sparse/pcr.m, optimization/sqp.m,
--- a/scripts/plot/print.m +++ b/scripts/plot/print.m @@ -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 = " ";