-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble.tex
52 lines (48 loc) · 1.42 KB
/
preamble.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
\documentclass[12pt,a4paper]{article}
\usepackage[pdftex]{graphicx}
\usepackage[english]{babel}
\usepackage[font=small,format=plain,labelfont=bf,up]{caption}
\usepackage{setspace}
\usepackage[protrusion=true,expansion=true]{microtype}
\usepackage{mathtools}
\usepackage{gensymb}
\usepackage{siunitx}
\usepackage{float}
\usepackage{booktabs}
\usepackage{array}
\usepackage{paralist}
\usepackage{verbatim}
\usepackage{subfigure}
\usepackage[capitalize]{cleveref}
\usepackage{enumitem}
\usepackage{titlesec}
\usepackage{url}
\usepackage{textcomp}
\usepackage{tabu}
\usepackage[toc,page]{appendix}
\usepackage{listings}
\usepackage[parfill]{parskip}
\makeatletter
\newif\if@mainmatter \@mainmattertrue
\newcommand\frontmatter{%
\cleardoublepage
\@mainmatterfalse
\pagenumbering{roman}}
\newcommand\mainmatter{%
\cleardoublepage
\@mainmattertrue
\pagenumbering{arabic}}
\makeatother
\newcommand{\bluetooth}{\textit{Bluetooth}\textsuperscript{\textregistered}}
\newcommand{\ble}{\bluetooth \textit{low energy}}
\newcommand{\code}[1]{\texttt{#1}}
\setdescription{leftmargin=\parindent,labelindent=\parindent}
\titlespacing\subsection{0pt}{\parskip}{0pt}
\titlespacing\subsubsection{0pt}{20pt}{0pt}
\titleformat{\subsubsection}{\small\bfseries}{\thesection}{1em}{}
\setlength{\parskip}{\baselineskip}
\lstset{basicstyle=\scriptsize\ttfamily}
\widowpenalty=10000
\clubpenalty=10000
\numberwithin{figure}{section}
\numberwithin{table}{section}