From 175d5459ed766cc95545600ba723a921f10e0bd2 Mon Sep 17 00:00:00 2001 From: Krishna Kumar Date: Sun, 8 Dec 2013 18:38:29 +0000 Subject: [PATCH] DVIPS error fixed for older versions <5.98 dvips --- Classes/PhDThesisPSnPDF.cls | 26 +++++--------------------- thesis.dvi | Bin 83112 -> 83076 bytes thesis.pdf | Bin 379675 -> 379675 bytes thesis.ps | 4 ++-- 4 files changed, 7 insertions(+), 23 deletions(-) diff --git a/Classes/PhDThesisPSnPDF.cls b/Classes/PhDThesisPSnPDF.cls index e6e474f..6e78433 100644 --- a/Classes/PhDThesisPSnPDF.cls +++ b/Classes/PhDThesisPSnPDF.cls @@ -99,28 +99,12 @@ footnotes.} % Page Size \newcommand\CUED@papersize{a4paper} % Set Default as a4paper -\DeclareOption{a4paper}{ - \renewcommand\CUED@papersize{a4paper} - % 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{a4paper}{\renewcommand\CUED@papersize{a4paper}} +\DeclareOption{a5paper}{\renewcommand\CUED@papersize{a5paper}} \DeclareOption{letterpaper}{ \ClassWarning{PhDThesisPSnPDF}{The Cambridge University Engineering Deparment PhD thesis guidelines recommend using A4 or A5paper} \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}% @@ -163,7 +147,7 @@ supported!} %* ***************************** Print / Online ******************************** % Defines a print / online version to define page-layout and hyperrefering \ifsetDVI -\special{papersize=\paperwidth,\paperheight} +%\special{papersize=\paperwidth,\paperheight} \RequirePackage[dvips]{hyperref} \else \RequirePackage[unicode]{hyperref} @@ -190,7 +174,7 @@ supported!} \setMarginfalse \else % 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 \fi @@ -222,7 +206,7 @@ supported!} \setMarginfalse \else % 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 \fi diff --git a/thesis.dvi b/thesis.dvi index 7c5c9ea1c8580c2f57b2ed0007a302348d68bc3c..a71193ac323a992a3926900370ab6b00bb47473c 100644 GIT binary patch delta 583 zcmYMxO-Nfo6b0a%Nlc7ro+2m&Q6ti5X%a=OQ7MW$@h6pNRLDau&KUe@X89$X z7EDO0uZUq-PL5Y4_SG*JH3Yes9pha-*KG;jlVKr7K5pfmu34}%g`hS z)xb6By5}|p_SiFOg-_&reK#l)*GPpP%m_T!y)^tG29;BX4JRT!7)in@_UD&)SjE`B zf*_|!u-<9afjMcP7B>|{(?%nj0YlRFRYxw-Zn-%vn3nkfYd7PoSXaHDmy7q(c77%7 zEEu33drS+EOh=qF2qcxpsNa&^6)!T z(6v$wT5&2HpI>0zhTTjfy5@s{zv+U$U5kYrC<6J{M)%&pAkF{8I1lt>3p4_kzSxFB KV*g0a#d!j$AL^a} delta 638 zcmZqaWL?q8IzgSo+|;z2fq{W>a-y)x#^85sswxGE1*t{FnN_K_F<@qSW=cthf)0d} zk(!yFQKGQffxVuOv2nBF0$;|-`Tn|_t;Dq$8FvEttc;U4taG0ppwFl~`JUuH#yFr@ z72{@cnK~B6X=w8NO8Xf55oUO(%x7dg4p%dIWuWflMD+uV54S&5VFa2nM{^P*lZG@* zLCNHmI(r#4p^^{v9OW4kU~=w2N4;k9lK~sPd1c^CHpWndTz}*nMjNQUZ_%fj8A}mz z`Tly7Z4&owR@Crg1iCm&~1(UPhF**RbKnMNF*}>0P4U;O_tXDUck8vGD z&aQ7Y|7L{+Y@pyMnVdX-FXLmNLb;XtP^EsTmn(+u-TKDaX-Qw<{i8| zjLn+`k9cu29pQqBg9BA>^7RXQ8N)!1uV&mVa5Q3*sW!%eT!w*tZ#kl>1J>z^PM)&O*PK?4#?43;aK>z@Yit)7o diff --git a/thesis.pdf b/thesis.pdf index fb0a3572e026b6b173d4ec62e5917dd905d2c438..72e8924c115e0d55a89aafc0e9c5dec28b5fd46c 100644 GIT binary patch delta 256 zcmbO|O?>t=@rD-07N!>F7M3lnkJs{=rkW+CSSF?FT3VQzO#iT!^#Z1l{PZ{LSnb&@ ztc=aAObn+Rt!LGTb28SmwqnyExq;OlQ(R(t?FLpAOmX?`XE(6AGO=11n*%Kn-^?lt zVQ#nF%-SsOWMX09Y~twVXzJ{2VC-ycW?|%NW^QC;?Cfe{;$~rDVrN50#q@utSY-i6 CS4|86 delta 256 zcmbO|O?>t=@rD-07N!>F7M3lnkJs{=r}u&^ZenO^VrpSzY;0=mY-dAA#q@utSY-hL C7)tE` diff --git a/thesis.ps b/thesis.ps index ba0126b..580c864 100644 --- a/thesis.ps +++ b/thesis.ps @@ -1,7 +1,7 @@ %!PS-Adobe-2.0 %%Creator: dvips(k) 5.993 Copyright 2013 Radical Eye Software %%Title: thesis.dvi -%%CreationDate: Sun Dec 8 17:55:36 2013 +%%CreationDate: Sun Dec 8 18:37:41 2013 %%Pages: 39 %%PageOrder: Ascend %%BoundingBox: 0 0 596 842 @@ -13,7 +13,7 @@ %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips -z -o thesis.ps.temp thesis.dvi %DVIPSParameters: dpi=600 -%DVIPSSource: TeX output 2013.12.08:1755 +%DVIPSSource: TeX output 2013.12.08:1837 %%BeginProcSet: tex.pro 0 0 %! /TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S