diff options
Diffstat (limited to '')
-rw-r--r-- | doc/thesis/tex/docmacros.sty | 7 | ||||
-rw-r--r-- | doc/thesis/tex/docstyle.sty | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/thesis/tex/docmacros.sty b/doc/thesis/tex/docmacros.sty index 4c71004..a29205d 100644 --- a/doc/thesis/tex/docmacros.sty +++ b/doc/thesis/tex/docmacros.sty @@ -6,6 +6,8 @@ \RequirePackage{amssymb} \RequirePackage{bm} +%% MATHEMATICS + % Probability \DeclareMathOperator{\expectation}{E} \newcommand{\E}[1]{\expectation \left\{#1\right\}} @@ -36,3 +38,8 @@ \newcommand{\mx}[1]{\bm{\mathrm{#1}}} +%% TYPESETTING + +% Custom command IEEE references for figures and tables +\newcommand{\figref}[1]{Fig.~\ref{#1}} +\newcommand{\tabref}[1]{Tab.~\ref{#1}} diff --git a/doc/thesis/tex/docstyle.sty b/doc/thesis/tex/docstyle.sty index b33e206..2adec0f 100644 --- a/doc/thesis/tex/docstyle.sty +++ b/doc/thesis/tex/docstyle.sty @@ -84,4 +84,9 @@ urlcolor = black, } +%% Set up subfigures to look like in IEEE classes +\RequirePackage{subcaption} +\usepackage[labelformat=simple]{subcaption} +\renewcommand\thesubfigure{(\alph{subfigure})} + % vim: set ts=2 sw=2 noet: |