\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{thesisdefs}[2008/01/01 Definitions for my thesis] \RequirePackage{ifpdf} % Cross-reference handling %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \let\theHmemhycontfloat\empty \let\chapterautorefname\empty \let\sectionautorefname\empty \let\subsectionautorefname\empty \let\subsubsectionautorefname\empty \RequirePackage[pdfborder={0 0 0}]{hyperref} \RequirePackage{url} \renewcommand{\chapterautorefname}{Chapter} \renewcommand{\sectionautorefname}{Section} \renewcommand{\subsectionautorefname}{Subsection} \renewcommand{\subsubsectionautorefname}{Subsubsection} % Basic typography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifpdf \RequirePackage{microtype} \fi \RequirePackage[overload]{textcase} \RequirePackage{xspace} % Yes, this sucks. \DoubleSpacing % Graphics %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \RequirePackage{graphicx} \RequirePackage{color} \RequirePackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{fit} \usetikzlibrary{shapes.geometric} \RequirePackage{natbib} \newcommand{\thesisbibstyle}{plainnat} \RequirePackage{wrapfig} %\RequirePackage{nomencl} %\makenomenclature % Mathematical layout %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \RequirePackage{amsmath} \RequirePackage{amssymb} \RequirePackage{amsthm} \RequirePackage{nicefrac} \newtheoremstyle{ejrplain}% {0pt}% space above {0pt}% space below {}% body font {}% indent amount {\bfseries}% head font {:}% after-head punct. {.5em}% after-head space {}% head spec? \theoremstyle{ejrplain} \newtheorem{thm}{Theorem}[section] \newcommand{\thmautorefname}{Theorem} \newtheorem{lem}[thm]{Lemma} \newcommand{\lemautorefname}{Lemma} \newtheorem{prop}[thm]{Proposition} \newcommand{\propautorefname}{Proposition} \newtheorem{cor}[thm]{Corollary} \newcommand{\corautorefname}{Corollary} \theoremstyle{ejrplain} \newtheorem{defn}{Definition}[section] \newcommand{\defnautorefname}{Definition} \newtheorem{conject}{Conjecture}[section] \newcommand{\conjectautorefname}{Conjecture} \newtheorem{examp}{Example}[section] \newcommand{\exampautorefname}{Example} \theoremstyle{ejrplain} \newtheorem{rem}{Remark}[section] \newcommand{\remautorefname}{Remark} \newtheorem{note}{Note}[section] \newcommand{\noteautorefname}{Note} % org-mode fun %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newenvironment{orgtabular}[1]{\begin{tabular}{#1}}{\end{tabular}} %\newenvironment{orgtabularx}[2]{\begin{tabularx}{#1}{#2}}{\end{tabularx}} % Code %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \RequirePackage[lined,linesnumbered,commentsnumbered,algoruled]{algorithm2e} \SetKw{KwBreak}{break} \renewcommand{\nlSty}[1]{\textsf{\tiny #1}} % The following works around my brain's autoref breakage. \newcommand{\algref}[1]{\hyperref[#1]{Algorithm~\ref*{#1}}} \newcommand{\lineref}[1]{\hyperref[#1]{line~\ref*{#1}}} \newcommand{\Lineref}[1]{\hyperref[#1]{Line~\ref*{#1}}} \RequirePackage{listings} \lstloadlanguages{Octave,R,SQL} \lstset{language=Octave,columns=fullflexible,basicstyle={\small\sffamily},lineskip=-.75\baselineskip} \lstset{firstnumber=1,numbers=left,numberstyle=\tiny, stepnumber=5,numbersep=5pt,showstringspaces=false,stringstyle={\rmfamily}} \newfloat[chapter]{srccode}{lol}{Listing} \newcommand{\srccodeautorefname}{Listing} % Symbols %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\abs}[1]{|{#1}|} %\newcommand{\det}{\operatorname{det}} \newcommand{\bigabs}[1]{\left|{#1}\right|} \newcommand{\matnorm}[2]{\|{#1}\|_{#2}} \newcommand{\bigmatnorm}[2]{\left\|{#1}\right\|_{#2}} \newcommand{\genericnorm}[1]{\|{#1}\|} \newcommand{\biggenericnorm}[1]{\left\|{#1}\right\|} \newcommand{\infnorm}[1]{\matnorm{#1}{\infty}} \newcommand{\biginfnorm}[1]{\bigmatnorm{#1}{\infty}} \newcommand{\twonorm}[1]{\matnorm{#1}{2}} \newcommand{\bigtwonorm}[1]{\bigmatnorm{#1}{2}} \newcommand{\onenorm}[1]{\matnorm{#1}{1}} \newcommand{\bigonenorm}[1]{\bigmatnorm{#1}{1}} \newcommand{\conj}[1]{\overline{#1}} \newcommand{\transp}[1]{{#1}^{T}} \newcommand{\herm}[1]{{#1}^{H}} \newcommand{\Tr}{\operatorname{Tr}} \newcommand{\cond}{\operatorname{cond}} \newcommand{\colcond}{\operatorname{colcond}} \newcommand{\ccond}{\operatorname{ccond}} \newcommand{\colccond}{\operatorname{colccond}} \newcommand{\ckappa}{\operatorname{c}\kappa} \newcommand{\diag}{\operatorname{diag}} \newcommand{\sign}{\operatorname{sign}} \newcommand{\dreal}{\operatorname{real}} \newcommand{\dimag}{\operatorname{imag}} \newcommand{\absone}{\operatorname{abs1}} \newcommand{\perturb}[1]{\tilde{#1}} \newcommand{\octcode}[1]{\lstinline[language=Octave]!#1!} \newcommand{\Rcode}[1]{\lstinline[language=R]!#1!} \newcommand{\myname}{E.~Jason Riedy} \newcommand{\iterof}[2]{{#1}^{(#2)}} \newcommand{\xini}{\iterof{x}{0}} %\newcommand{\xcomp}{\xini} \newcommand{\xati}{\iterof{x}{i}} \newcommand{\xafteri}{\iterof{x}{i+1}} \newcommand{\dxati}{\iterof{\dx}{i}} \newcommand{\dxafteri}{\iterof{\dx}{i+1}} \newcommand{\xbeforei}{\iterof{x}{i-1}} \newcommand{\dxbeforei}{\iterof{\dx}{i-1}} \newcommand{\Dxati}{\iterof{\Dx}{i}} \newcommand{\Dxbeforei}{\iterof{\Dx}{i-1}} \newcommand{\ithstep}{$i$\textsuperscript{th} step\xspace} \newcommand{\yini}{\iterof{y}{0}} %\newcommand{\ycomp}{\yini} \newcommand{\yati}{\iterof{y}{i}} \newcommand{\yafteri}{\iterof{y}{i+1}} \newcommand{\ybeforei}{\iterof{y}{i-1}} \newcommand{\dyati}{\iterof{\dy}{i}} \newcommand{\dyafteri}{\iterof{\dy}{i+1}} \newcommand{\dybeforei}{\iterof{\dy}{i-1}} \newcommand{\Dyati}{\iterof{\Dy}{i}} \newcommand{\Dyafteri}{\iterof{\Dy}{i+1}} \newcommand{\Dybeforei}{\iterof{\Dy}{i-1}} \newcommand{\rati}{\iterof{r}{i}} \newcommand{\rbeforei}{\iterof{r}{i-1}} \newcommand{\Drati}{\iterof{\Dr}{i}} \newcommand{\Drbeforei}{\iterof{\Dr}{i-1}} \newcommand{\DAati}{\iterof{\DA}{i}} \newcommand{\DAafteri}{\iterof{\DA}{i+1}} \newcommand{\DAbeforei}{\iterof{\DA}{i-1}} \newcommand{\errati}{\iterof{e}{i}} \newcommand{\errbeforei}{\iterof{e}{i-1}} \newcommand{\errafteri}{\iterof{e}{i+1}} \newcommand{\hAati}{\iterof{\hat{A}}{i}} %\newcommand{\markcomputed}[1]{\widehat{#1}} \newcommand{\markcomputed}[1]{\widetilde{#1}} %\newcommand{\xcomp}{\markcomputed{x}} \newcommand{\xcomp}{y} \newcommand{\Acomp}{\markcomputed{A}} \newcommand{\bcomp}{\markcomputed{b}} \newcommand{\dx}{dx} \newcommand{\dy}{dy} \newcommand{\errinchar}{\delta} \newcommand{\errin}[1]{\errinchar #1} \newcommand{\DA}{\errin{A}} \newcommand{\Db}{\errin{b}} \newcommand{\Dx}{\errin{x}} \newcommand{\Dy}{\errin{y}} \newcommand{\Dr}{\errin{r}} \newcommand{\scalemat}[1]{D_{#1}} \newcommand{\sclnX}{\scalemat{\infnorm{x}}} \newcommand{\sclX}{\scalemat{\abs{x}}} \newcommand{\sclnY}{\scalemat{\infnorm{y}}} \newcommand{\sclY}{\scalemat{\abs{y}}} \newcommand{\alldim}{:} \newcommand{\baseprec}{\varepsilon} %\newcommand{\aprec}{\epsilon} \newcommand{\aprec}{\baseprec} \newcommand{\workingprec}{\baseprec_w} \newcommand{\solveprec}{\workingprec} \newcommand{\xprec}{\baseprec_x} \newcommand{\rprec}{\baseprec_r} \newcommand{\maxrd}{n_r} \newcommand{\maxrowdeg}[1]{n_r(#1)} \newcommand{\pvgrw}{g} \newcommand{\colpvgrw}{\pvgrw_c} \newcommand{\makevect}[2]{{#1}_{#2}} \newcommand{\zerovect}[1]{\makevect{0}{#1}} \newcommand{\onevect}[1]{\makevect{1}{#1}} % \newcommand{\nferr}{\nu} % \newcommand{\cferr}{\xi} % \newcommand{\nberr}{\eta} % \newcommand{\cberr}{\omega} % \newcommand{\sberr}{\varsigma} \newcommand{\nferr}{\operatorname{nferr}} \newcommand{\cferr}{\operatorname{cferr}} \newcommand{\nberr}{\operatorname{nberr}} \newcommand{\cberr}{\operatorname{cberr}} \newcommand{\cgberr}{\operatorname{cberr}_{E,f}} \newcommand{\sberr}{\operatorname{sberr}} \newcommand{\colberr}{\operatorname{colberr}} \newcommand{\defeq}{\overset{\text{\tiny def}}{=}} \newcommand{\suchthat}{:} \newcommand{\IEEESTD}{\textsc{Ieee754}\xspace} \newcommand{\IEEESTDREV}{\textsc{Ieee754r}\xspace} \newcommand{\ieeestd}{\IEEESTD} \newcommand{\ieeestdrev}{\IEEESTDREV} \newcommand{\ieeesingle}{bin32} \newcommand{\ieeedouble}{bin64} \newcommand{\BLAS}{\textsc{Blas}\xspace} \newcommand{\XBLAS}{\textsc{XBlas}\xspace} \newcommand{\LAPACK}{\textsc{Lapack}\xspace} \newcommand{\lapackfn}[1]{\textit{x}\texttt{\MakeUppercase{#1}}} \newcommand{\scalapackfn}[1]{\texttt{P}\lapackfn{#1}} \newcommand{\Intel}{Intel\textsuperscript{\textregistered}\xspace} \newcommand{\matlab}{\textsc{Matlab}\textsuperscript{\textregistered}\xspace} % Editorial marking %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\XXX}{\textcolor{red}{XXX:}\xspace} \endinput %%% Local Variables: %%% mode: latex %%% TeX-master: thesis.tex %%% End: