Changeset 136 for trunk/SRC/Postscript
- Timestamp:
- 07/10/06 17:20:19 (18 years ago)
- Location:
- trunk/SRC/Postscript
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Postscript/closeps.pro
r129 r136 6 6 ; Close the Postscript mode 7 7 ; 8 ; when archive_ps ne 0, we add the name and the date 9 ; at the bottom left corner of the postcript page. If the 10 ; postscript is called idl.ps we change its name to number.ps 11 ; (number automatically found to be 1 larger that any of the 12 ; existing ps file) 8 ; when archive_ps ne 0, we add the name and the date at the bottom left corner 9 ; of the postscript page. 10 ; If the postscript is called idl.ps we change its name to number.ps 11 ; (number automatically found to be 1 larger that any of the existing ps file) 13 12 ; 14 ; @keyword INFOWIDGET A long integer giving the id of the information15 ; widget (created by openps) that we have de destroy at16 ; the end of closeps (when the postscript is done)13 ; @keyword INFOWIDGET 14 ; A long integer giving the id of the information widget (created by openps) 15 ; that we have to destroy at the end of closeps (when the postscript is done). 17 16 ; 18 17 ; @uses cm_4ps … … 81 80 ENDIF 82 81 ;------------------------------------------------------------ 83 ; we annot e the postscript82 ; we annotate the postscript 84 83 ;------------------------------------------------------------ 85 84 date = byte(systime(0)) ; we get the date … … 89 88 ENDIF 90 89 ;------------------------------------------------------------ 91 ; close the post cript mode90 ; close the postscript mode 92 91 device, /close 93 92 ; -
trunk/SRC/Postscript/openps.pro
r129 r136 5 5 ; 6 6 ; @file_comments 7 ; switch to post cript mode and define it7 ; switch to postscript mode and define it 8 8 ; 9 ; @param namepsin {in}{optional} name of the postscript file.10 ; Extension '.ps' is added11 ; if missing. It will be stored in the psdir directory.9 ; @param namepsin {in}{optional} 10 ; name of the postscript file. 11 ; Extension '.ps' is added if missing. It will be stored in the psdir directory. 12 12 ; 13 13 ; @keyword FILENAME 14 ; to define the name of the post cript file through15 ; a keyword rather than with nameps in ut argument14 ; to define the name of the postscript file through 15 ; a keyword rather than with nameps input argument 16 16 ; (in this case the keyword can be pass through 17 17 ; different routines via _EXTRA keyword). … … 28 28 ; 29 29 ; @keyword PORTRAIT 30 ; 30 31 ; @keyword LANDSCAPE 31 ; @keyword KEEPPFONT same as keep_pfont32 32 ; 33 ; @keyword LIGHTNESS a scalar used to change the Lightness of the color 34 ; palette to be abble to adjust according to the printer we use, 35 ; the media (paper or slide)... 36 ; lightness < 1 to get lighter colors 37 ; > 1 to get darker colors 33 ; @keyword KEEPPFONT 34 ; same as keep_pfont 38 35 ; 39 ; @keyword _EXTRA used to pass any keyword to device procedure. 36 ; @keyword LIGHTNESS 37 ; a scalar used to change the Lightness of the color palette to be able to 38 ; adjust according to the printer we use, the media (paper or slide)... 39 ; > 1 to get darker colors 40 ; 41 ; @keyword _EXTRA 42 ; used to pass any keyword to device procedure. 40 43 ; 41 44 ; @uses cm_4ps … … 72 75 ENDIF 73 76 ;------------------------------------------------------------ 74 ; close the post cript device if we are already in postcsrit mode77 ; close the postscript device if we are already in postscript mode 75 78 IF !d.name EQ 'PS' THEN device, /close 76 79 ; switch to postscript mode -
trunk/SRC/Postscript/printps.pro
r129 r136 12 12 ; the archiving is done automatically whereas we ask if the postscript 13 13 ; file must be archived or not. 14 ; If the post cript name is "idl.ps" (default name) then this name will14 ; If the postscript name is "idl.ps" (default name) then this name will 15 15 ; be changed to number.ps (number automatically found to be 1 larger 16 16 ; that any of the existing ps file). … … 39 39 ; 25/8/19999 utilisation des widgets 40 40 ; 8/9/1999 utilisation de cw_bgroup 41 ; June 2005: Sebastien Masson: cleaning, english version with new commons41 ; June 2005: Sebastien Masson: cleaning, English version with new commons 42 42 ; 43 43 ; @version $Id$ … … 138 138 ; we destroy the widget 139 139 widget_control, event.top, /destroy 140 ; if the file was original y gzipped, then we re-gzip it and exit140 ; if the file was originally gzipped, then we re-gzip it and exit 141 141 IF uval.gzip THEN BEGIN 142 142 spawn, '\gzip ' + uval.nameps … … 149 149 AND keyword_set(archive_ps) THEN BEGIN 150 150 IF archive_ps NE 1 AND uval.name EQ 'print' then begin 151 wesave = report('Shall we archive the post cript?', /default_no, /question)151 wesave = report('Shall we archive the postscript?', /default_no, /question) 152 152 IF wesave EQ 0 THEN RETURN 153 153 ENDIF … … 159 159 allps = file_basename(allps,'.pdf') 160 160 ; find which of these names corresponds to numbers... 161 ; get asciicodes of the names161 ; get ASCII codes of the names 162 162 testnumb = byte(allps) 163 163 ; longest name 164 164 maxstrlen = (size(testnumb, /dimensions))[0] 165 ; asciicodes can be 0 or between byte('0') and byte('9')165 ; ASCII codes can be 0 or between byte('0') and byte('9') 166 166 testnumb = testnumb EQ 0 OR $ 167 167 (testnumb GE (byte('0'))[0] AND testnumb LE (byte('9'))[0]) … … 203 203 ; 25/8/19999 utilisation des widgets 204 204 ; 8/9/1999 utilisation de cw_bgroup 205 ; June 2005: Sebastien Masson: cleaning, english version with new commons205 ; June 2005: Sebastien Masson: cleaning, English version with new commons 206 206 ; 207 207 ; @version $Id$
Note: See TracChangeset
for help on using the changeset viewer.