| In GUI the sequence for changing the printing *temporarily* to *.tiff
| file is as follows:
| Defaults area: Printing options
| Printing mode: Other format to file
| Graphics filename: e.g. spmfig_06Apr2001
| Graphics type: TIFF with backpress compression
|
| I'm wondering how to change the printing options *permanently* by
| editing the spm_defaults.m. I would like to set *.tiff file as default
| printing option, but changing the m-file seems to be tricky.
It's a bit of a hack to change the evaluated PRINTSTR variable so that
it prints with a different filename each time, but including the following
should work:
% Default command for printing
%-----------------------------------------------------------------------
fname = date;
fname(find(fname=='-')) = [];
fname = ['spmfig_' fname];
global PAGENUM
PAGENUM = 1;
PRINTSTR = ['global PAGENUM;'...
'print(''-noui'',''-painters'',''-dtiff'',[''' fname...
'_'' num2str(PAGENUM) ''.tiff'']); PAGENUM = PAGENUM + 1;']
%-----------------------------------------------------------------------
Best regards,
-John
|