-
Notifications
You must be signed in to change notification settings - Fork 0
/
Layout.tex
101 lines (91 loc) · 3.13 KB
/
Layout.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
% First we define the point size of the text as a variable because
% we want some other variables to depend upon it.
%
\newcommand{\pointsize}{11pt}
\documentclass[oneside, \pointsize]{book}
% Set the margins with the geometry package. For the top margin,
% we have a half-inch to the header containing the page number.
% The remaining half-inch to the text will be introduced by our
% definitions of \headwidth and \headsep.
%
%%% EDIT: changed so that all margins are 1 inch
\usepackage[
includehead,
includefoot,
left = 1in,
top = 0.7in,
right = 1in,
bottom = 1in
]{geometry}
\usepackage{fancyhdr}
\usepackage{setspace}
\usepackage{calc}
\usepackage[nocompress]{cite} %%% optional
\usepackage[pdfborder={0 0 0}, pdfpagemode=UseNone, pdfstartview=FitH]{hyperref} %%% optional
\usepackage[nottoc,numbib]{tocbibind}
% Set \headheight and \headsep so that \headheight + \headsep =
% 0.5in. Thus, the top of the text will be one inch from the top
% of the page.
% 2019 EDIT: Removes headers and restores top margin to 1 in. 2015 settings are commented out, just delete {0in} to restore.
\setlength{\headheight}{\pointsize + 2pt} %{0in}
\setlength{\headsep}{0.5in - \headheight} %{0in}
% Protrude page number half-inch into right margin so that it is a
% half-inch from the page's edge.
%
\fancyheadoffset[R]{0.5in}
% The Preliminary Pages are to be numbered with small Roman
% Numerals that are centered at the bottom of the page.
%
\fancypagestyle{prelim}{%
\renewcommand{\headrulewidth}{0pt}
\fancyhf{}
\pagenumbering{roman}
\cfoot{\thepage}
}
% Pages of the main text are to be numbered with arabic numerals
% that are in the upper right corner of the page.
%
% There are a couple additions to the header here that are not
% stipulated in the dissertation guidelines.
%
% (1) A headrule is added by setting the command \headrulewidth
% to be 0.4pt.
%
% (2) The command \fancyhead[L]{\rightmark} causes the current
% section to be indicated in the upper left of the page. See
% documentation for the fancyhdr to control this display.
%
%2019 EDIT: Removes headers and headrule. 2015 settings are commented out, just delete {0pt} to restore.
\fancypagestyle{maintext}{%
\renewcommand{\headrulewidth}{0.4pt} %{0.4pt}
\pagenumbering{arabic}
\fancyhf{}
\fancyhead[L]{\rightmark}
\cfoot{\thepage}%%%
%\lhead{Chapter \thechapter}
}
%%% for the first page of Abstract_Only.tex
\fancypagestyle{abstract1}{%
\renewcommand{\headrulewidth}{0pt} %{0.4pt}
\fancyheadoffset[R]{0in}
\pagenumbering{arabic}
\fancyhf{}
}
%%% for pages 2+ of Abstract_Only.tex
\fancypagestyle{abstract2}{%
\renewcommand{\headrulewidth}{0pt} %{0.4pt}
\fancyheadoffset[R]{0in}
\pagenumbering{arabic}
\fancyhf{}
\rhead{\thepage}
}
% Number figures, tables, and equations so that the chapter is
% included in the number. E.g., use Figure 2.3 for the third
% figure in Chapter 2.
%
%\makeatletter
%\def\l@section{\@tocline{1}{0,2pt}{2pc}{8mm}{\ \ }}
\usepackage{tocloft}
\renewcommand\cftchapafterpnum{\vskip6pt}
\renewcommand\cftsecafterpnum{\vskip6pt}
\renewcommand\cftsubsecafterpnum{\vskip6pt}