Lineno enable/disable option

This commit is contained in:
Krishna Kumar 2014-04-21 18:13:21 +01:00
parent 79d34fd13f
commit 20574845f5
3 changed files with 22 additions and 11 deletions

View File

@ -25,6 +25,8 @@
\newif\if@print\@printfalse
\DeclareOption{print}{\@printtrue}
\newif\ifPHD@draft\PHD@draftfalse
% ****************************** Define index **********************************
\newif\ifPHD@index\PHD@indexfalse
\DeclareOption{index}{\PHD@indextrue}
@ -128,7 +130,11 @@ PhD thesis guidelines recommend using A4 or A5paper}
\DeclareOption{twoside}{\PassOptionsToClass{\CurrentOption}{book}}%
% Draft Mode
\DeclareOption{draft}{\PassOptionsToClass{\CurrentOption}{book}}%
\DeclareOption{draft}{\PassOptionsToClass{\CurrentOption}{book}\PHD@drafttrue}%
% Line Numbers
\DeclareOption{lineno}{\PHD@drafttrue}
\DeclareOption{nolineno}{\PHD@draftfalse}
% Generates Warning for unknown options
\DeclareOption*{
@ -172,6 +178,7 @@ supported!}
\if@print
% For Print version
\hypersetup{
final=true,
plainpages=false,
pdfstartview=FitV,
pdftoolbar=true,
@ -207,6 +214,7 @@ supported!}
\else
% For PDF Online version
\hypersetup{
final=true
plainpages=false,
pdfstartview=FitV,
pdftoolbar=true,
@ -238,6 +246,13 @@ supported!}
\fi
\ifPHD@draft
\usepackage[switch,pagewise,mathlines]{lineno}
\renewcommand{\frontmatter}{\nolinenumbers}
\renewcommand{\mainmatter}{\linenumbers}
\renewcommand{\backmatter}{\linenumbers}
\fi
% ******************************************************************************
% ******************************** Packages ************************************
@ -367,7 +382,7 @@ font in the preamble.tex file by specifying `customfont' in the class options}
% PDFLaTeX does it automatically.
\ifsetDVI
\RequirePackage{sty/breakurl} % to split the url over multiple lines
\RequirePackage{breakurl} % to split the url over multiple lines
\fi
% ******************************************************************************

Binary file not shown.

View File

@ -1,7 +1,7 @@
%!PS-Adobe-2.0
%%Creator: dvips(k) 5.992 Copyright 2012 Radical Eye Software
%%Creator: dvips(k) 5.993 Copyright 2013 Radical Eye Software
%%Title: thesis.dvi
%%CreationDate: Mon Apr 21 16:05:45 2014
%%CreationDate: Mon Apr 21 18:12:51 2014
%%Pages: 39
%%PageOrder: Ascend
%%BoundingBox: 0 0 596 842
@ -13,7 +13,7 @@
%DVIPSWebPage: (www.radicaleye.com)
%DVIPSCommandLine: dvips -o thesis.ps thesis.dvi
%DVIPSParameters: dpi=600
%DVIPSSource: TeX output 2014.04.21:1605
%DVIPSSource: TeX output 2014.04.21:1812
%%BeginProcSet: tex.pro 0 0
%!
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S
@ -3420,7 +3420,6 @@ FontDirectory/CMEX10 known{/CMEX10 findfont dup/UniqueID known{dup
/FontMatrix [0.001 0 0 0.001 0 0 ]readonly def
/FontName /CMEX10 def
/FontBBox {-24 -2960 1454 772 }readonly def
/UniqueID 5092766 def
/PaintType 0 def
/FontInfo 9 dict dup begin
/version (003.002) readonly def
@ -3671,7 +3670,6 @@ FontDirectory/CMR10 known{/CMR10 findfont dup/UniqueID known{dup
/FontMatrix [0.001 0 0 0.001 0 0 ]readonly def
/FontName /CMR10 def
/FontBBox {-40 -250 1009 750 }readonly def
/UniqueID 5000793 def
/PaintType 0 def
/FontInfo 9 dict dup begin
/version (003.002) readonly def
@ -3921,7 +3919,6 @@ FontDirectory/CMSY10 known{/CMSY10 findfont dup/UniqueID known{dup
/FontMatrix [0.001 0 0 0.001 0 0 ]readonly def
/FontName /CMSY10 def
/FontBBox {-29 -960 1116 775 }readonly def
/UniqueID 5096651 def
/PaintType 0 def
/FontInfo 9 dict dup begin
/version (003.002) readonly def
@ -4168,7 +4165,6 @@ FontDirectory/CMMI10 known{/CMMI10 findfont dup/UniqueID known{dup
/FontMatrix [0.001 0 0 0.001 0 0 ]readonly def
/FontName /CMMI10 def
/FontBBox {-32 -250 1048 750 }readonly def
/UniqueID 5087385 def
/PaintType 0 def
/FontInfo 10 dict dup begin
/version (003.002) readonly def
@ -4554,8 +4550,8 @@ SDict begin 17.99446 H.A end
298 a
SDict begin [/View [/XYZ H.V]/Dest (Doc-Start) cvn /DEST pdfmark end
123 298 a 123 298 a
SDict begin [ {Catalog} << /PageLabels<</Nums[0<</S/r>>18<</S/D>>]>>
>> /PUT pdfmark end
SDict begin [ {Catalog} <</PageLabels<</Nums[0<</S/r>>18<</S/D>>]>>>>
/PUT pdfmark end
123 298 a Black Black 720 440
a Fy(Writing)51 b(y)-5 b(our)52 b(PhD)g(Thesis)g(in)1592
689 y(L)1656 646 y Fx(A)1728 689 y Fy(T)1832 737 y(E)1943