CustomMargin

This commit is contained in:
Krishna Kumar 2014-06-06 19:22:15 +01:00
parent db60faf199
commit 4c2c26081c
3 changed files with 8 additions and 8 deletions

View File

@ -67,7 +67,7 @@
\DeclareOption{PageStyleII}{\PHD@pageStyleIItrue} \DeclareOption{PageStyleII}{\PHD@pageStyleIItrue}
% ***************************** Custom Margins ******************************** % ***************************** Custom Margins ********************************
\newif\ifsetMargin\setMarginfalse % Margins are not set \newif\ifsetCustomMargin\setCustomMarginfalse % Margins are not set
\newif\ifPHD@custommargin\PHD@custommarginfalse % Custom margin \newif\ifPHD@custommargin\PHD@custommarginfalse % Custom margin
\DeclareOption{custommargin}{\PHD@custommargintrue} \DeclareOption{custommargin}{\PHD@custommargintrue}
@ -429,7 +429,7 @@ font in the preamble.tex file by specifying `customfont' in the class options}
anchorcolor=black anchorcolor=black
} }
\ifPHD@custommargin \ifPHD@custommargin
\setMarginfalse \setCustomMargintrue
\else \else
\ifsetDVI \ifsetDVI
% Odd and Even side Margin for binding and set viewmode for PDF % Odd and Even side Margin for binding and set viewmode for PDF
@ -437,7 +437,7 @@ font in the preamble.tex file by specifying `customfont' in the class options}
\else \else
\RequirePackage[pdftex,paper=\PHD@papersize,hmarginratio=1:1,vmarginratio=1:1,scale=0.75,bindingoffset=5mm]{geometry} \RequirePackage[pdftex,paper=\PHD@papersize,hmarginratio=1:1,vmarginratio=1:1,scale=0.75,bindingoffset=5mm]{geometry}
\fi \fi
\setMargintrue \setCustomMarginfalse
\fi \fi
\if@twoside \if@twoside
@ -466,7 +466,7 @@ font in the preamble.tex file by specifying `customfont' in the class options}
} }
\ifPHD@custommargin \ifPHD@custommargin
\setMarginfalse \setCustomMargintrue
\else \else
% No Margin staggering on Odd and Even side % No Margin staggering on Odd and Even side
\ifsetDVI \ifsetDVI
@ -474,7 +474,7 @@ font in the preamble.tex file by specifying `customfont' in the class options}
\else \else
\RequirePackage[pdftex,paper=\PHD@papersize,hmarginratio=1:1,vmarginratio=1:1,scale=0.75]{geometry} \RequirePackage[pdftex,paper=\PHD@papersize,hmarginratio=1:1,vmarginratio=1:1,scale=0.75]{geometry}
\fi \fi
\setMargintrue \setCustomMarginfalse
\fi \fi
\hypersetup{pdfpagelayout=OneColumn} \hypersetup{pdfpagelayout=OneColumn}
@ -580,7 +580,8 @@ font in the preamble.tex file by specifying `customfont' in the class options}
} }
% If Margin has been set (default margin print/online version) % If Margin has been set (default margin print/online version)
\ifsetMargin \ifsetCustomMargin
\else
\setFancyHdr % Apply fancy header settings otherwise apply it in preamble \setFancyHdr % Apply fancy header settings otherwise apply it in preamble
\fi \fi

View File

@ -5,8 +5,7 @@
% Set {innerside margin / outerside margin / topmargin / bottom margin} and % Set {innerside margin / outerside margin / topmargin / bottom margin} and
% other page dimensions % other page dimensions
\ifsetMargin \ifsetCustomMargin
\else
\RequirePackage[left=37mm,right=30mm,top=35mm,bottom=30mm]{geometry} \RequirePackage[left=37mm,right=30mm,top=35mm,bottom=30mm]{geometry}
\setFancyHdr % To apply fancy header after geometry package is loaded \setFancyHdr % To apply fancy header after geometry package is loaded
\fi \fi

Binary file not shown.