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:
--nostringval-- PermitFileReading --nostringval-- PermitFileWriting --nostringval--
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
Best Answer
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 theRender Method
toDvips
.To do this in Yap, go to
View
->Render Method
and change it fromPk
toDvips
.If you want to change it globally, go to
View
->Options
->Display
->Default Render Method
and do the same as above.