Mercurial > hg > octave-lojdl
changeset 17459:981103844b51
Added windows name of GhostScript
author | Andrej Lojdl <andrej.lojdl@gmail.com> |
---|---|
date | Thu, 19 Sep 2013 22:53:06 +0200 |
parents | 562dafc5270a |
children | 0b6f44d31edc |
files | libinterp/corefcn/txt-latex.cc |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/txt-latex.cc +++ b/libinterp/corefcn/txt-latex.cc @@ -58,7 +58,12 @@ check_latex = "latex --version >/dev/null 2>/dev/null"; check_dvips = "dvips --version >/dev/null 2>/dev/null"; + + #if defined (__WIN32__) && ! defined (__CYGWIN__) + check_ghostscript = "gswin32c --version >null 2>null"; + #else check_ghostscript = "gs --version >/dev/null 2>/dev/null"; + #endif cmd = system (check_latex.c_str ()); @@ -190,7 +195,13 @@ ss >> string_font_size; png = file_ops::concat (directory_path, "default.png"); - command = "gs -q -dEPSCrop -dSAFER -dBATCH -dNOPAUSE -r" + string_font_size + " -dTextAlphaBits=4 -sDEVICE=pngalpha -sOutputFile=" + png + " \"" + eps + "\" "; + + #if defined (__WIN32__) && ! defined (__CYGWIN__) + command = "gswin32c -q -dEPSCrop -dSAFER -dBATCH -dNOPAUSE -r" + string_font_size + " -dTextAlphaBits=4 -sDEVICE=pngalpha -sOutputFile=" + png + " \"" + eps + "\" "; + #else + command = "gs -q -dEPSCrop -dSAFER -dBATCH -dNOPAUSE -r" + string_font_size + " -dTextAlphaBits=4 -sDEVICE=pngalpha -sOutputFile=" + png + " \"" + eps + "\" "; + #endif + status = system (command.c_str ());