DVIPS error fixed for older versions <5.98 dvips

This commit is contained in:
Krishna Kumar 2013-12-08 18:38:29 +00:00
parent 8e5ad9a19f
commit 175d5459ed
4 changed files with 7 additions and 23 deletions

View File

@ -99,28 +99,12 @@ footnotes.}
% Page Size % Page Size
\newcommand\CUED@papersize{a4paper} % Set Default as a4paper \newcommand\CUED@papersize{a4paper} % Set Default as a4paper
\DeclareOption{a4paper}{ \DeclareOption{a4paper}{\renewcommand\CUED@papersize{a4paper}}
\renewcommand\CUED@papersize{a4paper} \DeclareOption{a5paper}{\renewcommand\CUED@papersize{a5paper}}
% paperheight and paperwidth are set only for DVIPS (version 5.96 or below)
% to maintain backward compatability
\setlength{\paperheight}{297mm}
\setlength{\paperwidth} {210mm}
}
\DeclareOption{a5paper}{
\renewcommand\CUED@papersize{a5paper}
% paperheight and paperwidth are set only for DVIPS (version 5.96 or below)
% to maintain backward compatability
\setlength{\paperheight}{210mm}
\setlength{\paperwidth} {148mm}
}
\DeclareOption{letterpaper}{ \DeclareOption{letterpaper}{
\ClassWarning{PhDThesisPSnPDF}{The Cambridge University Engineering Deparment \ClassWarning{PhDThesisPSnPDF}{The Cambridge University Engineering Deparment
PhD thesis guidelines recommend using A4 or A5paper} PhD thesis guidelines recommend using A4 or A5paper}
\renewcommand\CUED@papersize{letterpaper} \renewcommand\CUED@papersize{letterpaper}
% paperheight and paperwidth are set only for DVIPS (version 5.96 or below)
% to maintain backward compatability
\setlength{\paperheight}{11in}
\setlength{\paperwidth} {8.5in}
} }
\PassOptionsToClass{\CUED@papersize}{book}% \PassOptionsToClass{\CUED@papersize}{book}%
@ -163,7 +147,7 @@ supported!}
%* ***************************** Print / Online ******************************** %* ***************************** Print / Online ********************************
% Defines a print / online version to define page-layout and hyperrefering % Defines a print / online version to define page-layout and hyperrefering
\ifsetDVI \ifsetDVI
\special{papersize=\paperwidth,\paperheight} %\special{papersize=\paperwidth,\paperheight}
\RequirePackage[dvips]{hyperref} \RequirePackage[dvips]{hyperref}
\else \else
\RequirePackage[unicode]{hyperref} \RequirePackage[unicode]{hyperref}
@ -190,7 +174,7 @@ supported!}
\setMarginfalse \setMarginfalse
\else \else
% Odd and Even side Margin for binding and set viewmode for PDF % Odd and Even side Margin for binding and set viewmode for PDF
\RequirePackage[hmarginratio=1:1,vmarginratio=1:1,scale=0.75,bindingoffset=5mm]{geometry} \RequirePackage[\CUED@papersize,hmarginratio=1:1,vmarginratio=1:1,scale=0.75,bindingoffset=5mm]{geometry}
\setMargintrue \setMargintrue
\fi \fi
@ -222,7 +206,7 @@ supported!}
\setMarginfalse \setMarginfalse
\else \else
% No Margin staggering on Odd and Even side % No Margin staggering on Odd and Even side
\RequirePackage[hmarginratio=1:1,vmarginratio=1:1,scale=0.75]{geometry} \RequirePackage[\CUED@papersize,hmarginratio=1:1,vmarginratio=1:1,scale=0.75]{geometry}
\setMargintrue \setMargintrue
\fi \fi

Binary file not shown.

Binary file not shown.

View File

@ -1,7 +1,7 @@
%!PS-Adobe-2.0 %!PS-Adobe-2.0
%%Creator: dvips(k) 5.993 Copyright 2013 Radical Eye Software %%Creator: dvips(k) 5.993 Copyright 2013 Radical Eye Software
%%Title: thesis.dvi %%Title: thesis.dvi
%%CreationDate: Sun Dec 8 17:55:36 2013 %%CreationDate: Sun Dec 8 18:37:41 2013
%%Pages: 39 %%Pages: 39
%%PageOrder: Ascend %%PageOrder: Ascend
%%BoundingBox: 0 0 596 842 %%BoundingBox: 0 0 596 842
@ -13,7 +13,7 @@
%DVIPSWebPage: (www.radicaleye.com) %DVIPSWebPage: (www.radicaleye.com)
%DVIPSCommandLine: dvips -z -o thesis.ps.temp thesis.dvi %DVIPSCommandLine: dvips -z -o thesis.ps.temp thesis.dvi
%DVIPSParameters: dpi=600 %DVIPSParameters: dpi=600
%DVIPSSource: TeX output 2013.12.08:1755 %DVIPSSource: TeX output 2013.12.08:1837
%%BeginProcSet: tex.pro 0 0 %%BeginProcSet: tex.pro 0 0
%! %!
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S /TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S