-
Notifications
You must be signed in to change notification settings - Fork 2
/
mystyle.sty
119 lines (90 loc) · 3.7 KB
/
mystyle.sty
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
%%% Customizations
% These packages are optional, depending whether you want the features they provide.
% See the LaTeX Companion or other references for full information.
%%% PAGE DIMENSIONS
\usepackage{geometry} % to change the page dimensions
\geometry{a4paper} % or letterpaper (US) or a5paper or....
\geometry{margin=1.2in} % for example, change the margins to 2 inches all round
% \geometry{landscape} % set up the page for landscape
% read geometry.pdf for detailed page layout information
\usepackage{graphicx} % support the \includegraphics command and options
\usepackage[update,prepend]{epstopdf} % to use eps images
\usepackage{bm}
% \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
%%% PACKAGES
%\usepackage{mathpazo} %<-- Beautiful font that applies palatino also to maths
%\usepackage{palatino}
%\usepackage{newcent}
\usepackage{polski}
\usepackage[english]{babel}
\usepackage{wrapfig}
\usepackage{booktabs} % for much better looking tables
\usepackage{multirow}
\usepackage{array} % for better arrays (eg matrices) in maths
\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
% These packages are all incorporated in the memoir class to one degree or another...
\usepackage{amsmath}
\usepackage{ mathrsfs }
\usepackage{ tipa }
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{xfrac}
\usepackage{url}
\usepackage{adjustbox}
\usepackage{tabu}
\usepackage[toc]{appendix}
\usepackage{algorithmic}
\usepackage{algorithm}
\usepackage{enumitem}
\usepackage[colorlinks]{hyperref}
\usepackage[svgnames, table]{xcolor}
\hypersetup{
linkcolor = NavyBlue,
citecolor = ForestGreen,
urlcolor = Crimson
}
\usepackage{setspace}
%%% HEADERS & FOOTERS
\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
\setlength{\headheight}{15pt}
\pagestyle{fancy} % options: empty , plain , fancy
\renewcommand{\headrulewidth}{0pt} % customise the layout...
\lhead{}\chead{}\rhead{\leftmark} %left, center and right headers
\lfoot{}\cfoot{\thepage}\rfoot{} %left,center and right footers
\usepackage[bottom]{footmisc}
%%% SECTION TITLE APPEARANCE
\usepackage{sectsty}
%\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
% (This matches ConTeXt defaults)
%%% ToC (table of contents) APPEARANCE
\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
\usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents
\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!
\renewcommand*\contentsname{Table of Contents}
\addtocontents{toc}{~\hfill\textbf{Page}\par}
%%% QUOTES customisation
\def\signed #1{{\leavevmode\unskip\nobreak\hfil\penalty50\hskip2em
\hbox{}\nobreak\hfil(#1)%
\parfillskip=0pt \finalhyphendemerits=0 \endgraf}}
\newsavebox\mybox
\newenvironment{aquote}[1]
{\savebox\mybox{#1}\begin{quote}}
{\signed{\usebox\mybox}\end{quote}}
%%% MATH customisation
\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it} %LETTERS in Zaph Chancery
\usepackage{amsthm}
\usepackage{upgreek}
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\theoremstyle{remark}
\newtheorem*{remark}{Remark}
%%% PLOT PACKAGE
\usepackage{pgfplots}
\pgfplotsset{compat=newest}% <-- moves axis labels near ticklabels (respects tick label widths)
%%% ITEMIZE customisation
\renewcommand\labelenumi{\bfseries\theenumi.} % bold numbers with point (e.g., \textbf{1.})
%%% END of customizations
%\listfiles