+% theorem environment
+\usepackage{framed}
+\usepackage[framed,thref,thmmarks,amsmath,hyperref]{ntheorem}
+
+% hyperlinks
+\usepackage[colorlinks=true,linkcolor=black,citecolor=black]{hyperref}
+
+% shortcuts
+\newcommand{\si}{Si$_{\text{i}}${}}
+\newcommand{\ci}{C$_{\text{i}}${}}
+\newcommand{\cs}{C$_{\text{s}}${}}
+\newcommand{\degc}[1]{\unit[#1]{$^{\circ}$C}{}}
+\newcommand{\degk}[1]{\unit[#1]{K}{}}
+\newcommand{\distn}[1]{\unit[#1]{nm}{}}
+\newcommand{\dista}[1]{\unit[#1]{\AA}{}}
+\newcommand{\perc}[1]{\unit[#1]{\%}{}}
+
+%\newcommand{\bra}[1]{\left\langle #1 \right|}
+%\newcommand{\ket}[1]{\left| #1 \right\rangle}
+%\newcommand{\braket}[2]{\left\langle #1 \mid #2 \right\rangle}
+\newcommand{\bra}[1]{\langle #1 |}
+\newcommand{\ket}[1]{| #1 \rangle}
+\newcommand{\braket}[2]{\langle #1 | #2 \rangle}
+
+% (re)new commands
+\newcommand{\printimg}[5]{%
+ \begin{figure}[#1]%
+ \begin{center}%
+ \includegraphics[#2]{#3}%
+ \caption{#4}%
+ \label{#5}%
+ \end{center}%
+ \end{figure}%
+}
+
+\pagestyle{fancy}
+
+\renewcommand{\chaptermark}[1]{
+ \markboth{\thechapter.\ #1}{}
+}
+\renewcommand{\sectionmark}[1]{
+ \markright{\thesection.\ #1}
+}
+\fancyhf{}
+\fancyhead[LE,RO]{\thepage}
+\fancyhead[LO]{\nouppercase\rightmark}
+\fancyhead[RE]{\nouppercase\leftmark}
+
+% hyphenation