# Ghostscript Error “undefined in H.S”

I downloaded a thesis proposal template. When I compile it no error appears, but to display dvi, I got the following error. So what is the problem and how to fix it?

Error: /undefined in H.S
Operand stack:

Execution stack:
%interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2
%stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1
%stopped_push   1914   1   3
%oparray_pop   1913   1   3
%oparray_pop   1897   1   3
%oparray_pop   1787   1   3
%oparray_pop   --nostringval--
%errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2
%stopped_push   --nostringval--
Dictionary stack:
--dict:1166/1684(ro)(G)--   --dict:0/20(G)--   --dict:80/200(L)--   --dict:95/300(L)--   --dict:17/200(L)--
Current allocation mode is local
MiKTeX GPL Ghostscript  9.00: Unrecoverable error, exit code 1

-
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Marco Daniel May 7 at 17:43
The error is a postscript error so you will not get an error during latex. You presumably are using pstricks or including an EPS file that is introducing an error. Remove your graphics inclusions and add them back one at a time to see which one breaks. –  David Carlisle May 7 at 20:25
H.S comes from package hyperref with pdfmark drivers (dvips, dvipsone, ...). –  Heiko Oberdiek May 25 at 11:34

In your case, Yap (MiKTeX dvi previewer) has problems in rendering your .dvi file. It may depend on some .eps file you are including (as David pointed out) but not necessarily (I've found that sometimes Yap has problems in rendering of fonts, as well).

I've had the same problem in some .dvi documents of mine and I've solved changing the Render Method to Dvips.

To do this in Yap, go to View -> Render Method and change it from Pk to Dvips.

If you want to change it globally, go to View -> Options -> Display -> Default Render Method and do the same as above.

-