-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreport.tex
More file actions
194 lines (168 loc) · 5.09 KB
/
Copy pathreport.tex
File metadata and controls
194 lines (168 loc) · 5.09 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
% rubber: onchange report.glo 'makeglossaries report'
% rubber: watch report.glo
\documentclass[11pt,a4paper,oneside,notitlepage]{report}
% \newcommand{\draft}
\newif\ifdraft{}
\drafttrue{}
\usepackage{url}
%\usepackage{feynmp}
%\DeclareGraphicsRule{*}{mps}{*}{}
\usepackage[UKenglish]{babel}
\usepackage{pslatex}
\usepackage{a4wide}
\usepackage{graphics}
\usepackage{amsmath, amssymb, amsthm, latexsym}
\usepackage{braket}
\usepackage{notoccite}
\usepackage{slashed}
\NeedsTeXFormat{LaTeX2e}
\usepackage{setspace}
\usepackage{subcaption}
\usepackage{color}
\usepackage{multirow}
\usepackage{fancyhdr}
\usepackage{fancyvrb} %For verbatim commands SaveVerb, UseVerb
% \usepackage[small]{caption} %caption settings [normal] bf,up
\usepackage{eso-pic}
\usepackage[pdftex]{graphicx}
\usepackage{wasysym}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usetikzlibrary{arrows,shapes,patterns,decorations.pathmorphing,decorations.markings}
\usepackage{pgfplots}
\pgfplotsset{compat=1.10}
\usepackage{type1cm}
\usepackage{hyperref}
\usepackage[all]{hypcap}
\usepackage{datatool} % For glossaries package, below
\usepackage[toc]{glossaries}
\usepackage{pdflscape} % For the sidewaystable environment
\usepackage[binary-units]{siunitx}
\usepackage{dcolumn}
%\usepackage{feynmf}
%\usepackage{dot2texi}
\usepackage[capitalize]{cleveref}
\newcolumntype{d}[1]{D{.}{.}{#1} } % Decimal column type with #1 figures
\ifdraft{}
\usepackage{lineno}
\newcommand\note[1]{\textcolor{red}{#1}}
\else
\newcommand\note[1]{}
\fi
\hypersetup{pdfauthor={Timothy Brooks, Candan Dozen},
pdftitle={Technical report 2015},
pdfsubject={BeamLine for Schools 2015 project technical report},
pdfkeywords={BL4S} {Beamline} {HEP} {Particle Physics} {DAQ},
plainpages=false,
colorlinks,
linkcolor=blue,
citecolor=red}
\tikzset{
photon/.style={decorate, decoration={snake,amplitude=2pt, segment length=5pt}},
particle/.style={postaction={decorate}, decoration={markings,mark=at position .5 with {\arrow{>}}}},
antiparticle/.style={postaction={decorate}, decoration={markings,mark=at position .5 with {\arrow{<}}}},
gluon/.style={decorate, decoration={coil,amplitude=3pt, segment length=5pt}},
gaugino/.style={decorate, decoration={snake,amplitude=2pt, segment length=5pt,markings,mark=at position .5 with {\arrow{>}}}},
antigaugino/.style={decorate, decoration={snake,amplitude=2pt, segment length=5pt,markings,mark=at position .5 with {\arrow{<}}}}
}
\makeglossaries{}
\graphicspath{{./img/}}
\setlength{\headheight}{14pt}
\setlength{\oddsidemargin}{940mm} %0.5
\setlength{\evensidemargin}{-3.25 in}
\setlength{\textwidth}{150mm} %5.93in
\ifdraft{}
\overfullrule=5pt
\fi
% Fix abstract to use normal fonts
\usepackage[]{abstract}
\renewcommand{\abstractnamefont}{\normalfont\Huge\bfseries}
\renewcommand{\abstracttextfont}{\normalfont}
\doublespacing{}
\pagestyle{fancy}
\addtolength{\headwidth}{\marginparsep}
% remember chapter title
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
% section number and title
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}{}}
\if@twoside
\fancyfoot[RO,RE]{\thepage}
\else
\fancyfoot[RO]{\thepage}
\fi
\fancyhead[RO]{\leftmark}
\fancyhead[LO]{\rightmark}
\cfoot{}
\fancypagestyle{plain}{\renewcommand{\headrulewidth}{1pt}%
\renewcommand{\plainfootrulewidth}{0pt}%
\fancyhead[RO,LO]{}}
\renewcommand{\baselinestretch}{1.5}
% Command to force a long glossary entry, regardless of earlier usage
\newcommand{\glslong}[1]{\glsreset{#1}\gls{#1}}
\newcommand{\glspllong}[1]{\glsreset{#1}\glspl{#1}}
\newcommand{\Glslong}[1]{\glsreset{#1}\Gls{#1}}
\newcommand{\Glspllong}[1]{\glsreset{#1}\Glspl{#1}}
%====
%Insert to print the word ``draft'' across page
\makeatletter
\protected@write\@auxout{}{\string\@xdylanguage{main}{english}}%
\def\input@path{{./tex_src/}{./figures/}}
\ifdraft{}
\AddToShipoutPicture{%
\setlength{\@tempdimb}{.5\paperwidth}%
\setlength{\@tempdimc}{.5\paperheight}%
\setlength{\unitlength}{1pt}%
\put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){%
\makebox(0,0){\rotatebox{45}{\textcolor[gray]{0.9}{\fontsize{5cm}{5cm}\selectfont{}}}}
}
}
\fi
\makeatother
%----
\oddsidemargin 1.36cm
\textwidth 14.7cm
\setlength{\unitlength}{1mm}
% Input definitions for glossary
\input{terms}
\SaveVerb{isem}|isEM|
\begin{document}
\ifdraft{}
\linenumbers{}
\fi
%\begin{fmffile}{fgraphs}
% Switch to roman numerals for frontmatter
\pagenumbering{roman}
\begin{titlepage}
\thispagestyle{empty}
\input{title}
\end{titlepage}
\fancyhead[LO]{}
\begin{abstract}
\thispagestyle{empty}
\input{abstract}
\pagebreak
\end{abstract}
\setcounter{tocdepth}{4} % Include all the way down to subsections in ToC
\tableofcontents
\ifdraft{}
\else{
\listoffigures
\listoftables
}\fi
\newpage
% Switch back to arabic numerals
\pagenumbering{arabic}
%Main text goes in chapters
\fancyhead[LO]{\rightmark}
\input{introduction}
\appendix
\newpage
\addcontentsline{toc}{chapter}{Bibliography}
\fancyhead[LO]{}
\bibliographystyle{style/my-lim-num}
\bibliography{bib/report}
\newpage
\printglossary{}
%\end{fmffile}
\end{document}
% vim: path+=./tex_src/,