364
edits
(→Printing (installing Ghostscript): describe how to use the 64 bit Ghostscript) |
(→Printing (installing Ghostscript): improve clarity) |
||
Line 556: | Line 556: | ||
the Destination directory used in these instructions. | the Destination directory used in these instructions. | ||
In order for Octave to find Ghostscript, | In order for Octave to find Ghostscript, the directory containing Ghostscript's command line | ||
be in the command shell's path. | program must be in the command shell's path. The name of Ghostscript's command | ||
Control Panel, or by having Octave modify the path variable to include the | line program may vary. Some examples are {{Codeline|gswin32c.exe}}, {{Codeline|gswin64c.exe}}, | ||
directory. | {{Codeline|gs.exe}}, and {{Codeline|mgs.exe}}. | ||
To directory containing Ghostscript's command line program may either be added to the command | |||
shell's using Windows Control Panel, or by having Octave modify the {{Codeline|path}} variable to | |||
include the directory where Ghostscript's command line programs resides. | |||
For the latter, to following lines may be placed in the {{Codeline|<nowiki>~/.octaverc</nowiki>}} file. | For the latter, to following lines may be placed in the {{Codeline|<nowiki>~/.octaverc</nowiki>}} | ||
file (where {{Codeline|~}} indicates the user's home folder). | |||
The variable {{Codeline|<nowiki>gs_path</nowiki>}} should be set to the Destination | The variable {{Codeline|<nowiki>gs_path</nowiki>}} should be set to the Destination | ||
directory where Ghostscript was installed. | directory where Ghostscript was installed. | ||
Line 570: | Line 574: | ||
setenv ('path', strcat (cmd_path, pathsep (), gs_path)); | setenv ('path', strcat (cmd_path, pathsep (), gs_path)); | ||
endif | endif | ||
In this case, the value of {{Codeline|gs_path}} has been set to the location of Ghostscript's command | |||
line program for the GPL's 8.15 version of Ghostscript. The location for other versions may differ. | |||
Please determine the location of the installed Ghostscript command line program and make the needed | |||
adjustments to these instructions. | |||
To set the path via the Control Panel, | To set the path via the Control Panel, |
edits