custom margins
This commit is contained in:
parent
5bc8c037aa
commit
6dc1e1590d
@ -138,8 +138,8 @@
|
||||
\fi
|
||||
|
||||
\if@twoside
|
||||
\hypersetup{pdfpagelayout=TwoPageRight}
|
||||
\else
|
||||
\hypersetup{pdfpagelayout=TwoPageRight}
|
||||
\else
|
||||
\hypersetup{pdfpagelayout=OneColumn}
|
||||
\fi
|
||||
\else
|
||||
@ -163,8 +163,8 @@
|
||||
\ifCU@custommargin
|
||||
\setMarginfalse
|
||||
\else
|
||||
% No Margin staggering on Odd and Even side
|
||||
\RequirePackage[hmarginratio=1:1]{geometry}
|
||||
% No Margin staggering on Odd and Even side
|
||||
\RequirePackage[hmarginratio=1:1]{geometry}
|
||||
\setMargintrue
|
||||
\fi
|
||||
|
||||
@ -177,12 +177,19 @@
|
||||
% ******************************** Packages ************************************
|
||||
% ******************************************************************************
|
||||
|
||||
% ******************** Layout, Formatting and Headers **************************
|
||||
% ******************************* Custom Margin ********************************
|
||||
% Add `custommargin' in the document class option to use this section
|
||||
% Set {innerside margin / outerside margin / topmargin / bottom margin} and many custom size for page layout
|
||||
\ifsetMargin
|
||||
\else
|
||||
\RequirePackage[left=35mm,right=30mm,top=35mm,bottom=25mm]{geometry}
|
||||
\fi
|
||||
|
||||
% *********************** Layout and Formatting ********************************
|
||||
|
||||
\def\pdfshellescape{1}
|
||||
\RequirePackage{lscape} % Supports Landscape Layout
|
||||
\RequirePackage{setspace} % Define line spacing in para
|
||||
\RequirePackage{fancyhdr} % Define custom header
|
||||
\RequirePackage{calc} % To calculate vertical spacing
|
||||
|
||||
% *************************** Conditional Statements **************************
|
||||
@ -299,6 +306,8 @@
|
||||
% ******************************* Header Formatting *****************************
|
||||
% Custom Header with Chapter Number, Page Number and Section Numbering
|
||||
|
||||
\RequirePackage{fancyhdr} % Define custom header
|
||||
|
||||
\pagestyle{fancy}
|
||||
|
||||
\ifCU@pageStyleI
|
||||
@ -329,11 +338,12 @@
|
||||
\fancyhead[LO]{\nouppercase \rightmark}
|
||||
\fancyhead[LE,RO]{\bfseries\thepage}
|
||||
\fancyhead[RE]{\nouppercase \leftmark}
|
||||
|
||||
\fi
|
||||
|
||||
\fi
|
||||
|
||||
|
||||
|
||||
\setlength{\headheight}{14.5pt}
|
||||
%\renewcommand{\headrulewidth}{0.5pt}
|
||||
%\renewcommand{\footrulewidth}{0pt}
|
||||
@ -342,6 +352,7 @@
|
||||
\renewcommand{\headrulewidth}{0pt}
|
||||
}
|
||||
|
||||
|
||||
% **************** Clear Header Style on the Last Empty Odd pages ***************
|
||||
\renewcommand{\cleardoublepage}{\clearpage\if@twoside \ifodd\c@page\else%
|
||||
\hbox{}%
|
||||
|
@ -1,13 +1,3 @@
|
||||
% *****************************************************************************
|
||||
% ******************************* Custom Margin ********************************
|
||||
% Add `custommargin' in the document class option to use this section
|
||||
% Set {innerside margin / outerside margin / topmargin / bottom margin} and many custom size for page layout
|
||||
\ifsetMargin
|
||||
\else
|
||||
\RequirePackage[left=35mm,right=30mm,top=35mm,bottom=25mm]{geometry}
|
||||
\fi
|
||||
|
||||
|
||||
% *****************************************************************************
|
||||
% ******************* Fonts (like different typewriter fonts etc.)*************
|
||||
% Add `customfont' in the document class option to use this section
|
||||
|
@ -71,7 +71,7 @@ It support the following custom options:
|
||||
Use `print` in the options to activate Print Version with appropriate margins and page layout and view styles.
|
||||
Leaving the options field blank will activate Online version.
|
||||
|
||||
* `custommargin`: You can alter the margin dimension for both print and online version by using the keyword `custommargin` in the options sections. Then you can define the dimensions of the margin in the `preamble.tex` file.
|
||||
* `custommargin`: You can alter the margin dimension for both print and online version by using the keyword `custommargin` in the options sections. Then you can define the dimensions of the margin in the `PhDThesisPSnPDF.cls` Class file.
|
||||
|
||||
* `index`: Including this option in `\documentclass` build the index, which you can put at the and of the thesis.
|
||||
|
||||
@ -246,3 +246,5 @@ You are trying to load an option that is not supported in the PhDThesisClass and
|
||||
* Scale the section sizes by an order when moving from a4paper to a5paper
|
||||
|
||||
* Support default option like a4paper, 12pt, etc., if not specified
|
||||
|
||||
* Custom margin has to be defined in the Cls file, will try to move it to the preamble.
|
||||
|
BIN
thesis.pdf
BIN
thesis.pdf
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
% ******************************* PhD Thesis Template ************************
|
||||
% Please have a look at the README.md file for info on how to use the template
|
||||
|
||||
\documentclass[a4paper,twoside,12pt,times,numbered,print,index]{Classes/PhDThesisPSnPDF}
|
||||
\documentclass[a4paper,twoside,12pt,times,numbered,custommargin,print,index]{Classes/PhDThesisPSnPDF}
|
||||
|
||||
% *****************************************************************************
|
||||
% ******************************* Class Options *******************************
|
||||
|
Loading…
Reference in New Issue
Block a user