%References: http://tex.stackexchange.com/questions/58098/what-are-all-the-font-styles-i-can-use-in-math-mode \usepackage[hang]{caption} \usepackage[T1]{fontenc} \usepackage{times} \usepackage{verbatim} \usepackage{graphicx} \usepackage{amsmath} \usepackage{mathrsfs} % Fancy script mathscr \usepackage{amsthm} \usepackage{amssymb} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{xstring} \usepackage{mathtools} \usepackage{algorithm} \usepackage{bbm} %\usepackage{ulem} %\normalem{} \usepackage[binary-units=true,group-separator={,}]{siunitx} % gives \num{3002432} % Place both short and long title in the caption. % References: https://tex.stackexchange.com/questions/91341/display-short-title-and-long-title-both-in-a-caption %\makeatletter %\let\x@caption\caption % original \caption %\def\x@@caption[#1]#2{\x@caption[{#1}]{#1 --- #2}} % with optional arg %\def\x@@@caption#1{\x@caption[{#1}]{#1}} % without optional arg %\def\caption{\@ifnextchar[\x@@caption\x@@@caption} % new \caption %\makeatother % for subfigure \usepackage{subcaption} \captionsetup{compatibility=false} % TURN OFF FOR PRINT VERSION, ON FOR ONLINE VERSION %\usepackage[marginpar=2cm] {geometry} % Include other packages here, before hyperref. % http://en.wikibooks.org/wiki/LaTeX/Hyperlinks \usepackage[ backref=page,% pagebackref=true,% breaklinks=true,% bookmarks=true,% bookmarksnumbered=true,% bookmarksopen=true,% hyperfigures=true,% pdfauthor={Jon Crall},% colorlinks, %allcolors=black % % Comment in for thesis submission linkcolor=red, citecolor=green, anchorcolor=black, ]{hyperref} \usepackage{multirow} \usepackage{cleveref} \crefname{subfigure}{subfigure}{subfigures} \Crefname{subfigure}{Subfigure}{Subfigures} \crefname{subfigure}{}{} \Crefname{subfigure}{}{} % Remove the subfigure from cleveref and add parenthesis % http://tex.stackexchange.com/questions/170408/how-to-put-numbers-in-parenthesis-using-cleveref \creflabelformat{subfigure}{(#2#1#3)} % chktex-file 9 % chktex-file 10 % chktex-file 17 \crefmultiformat{subfigure}{(#2#1#3}{ and~#2#1#3)}{, #2#1#3}{ and~#2#1#3)} %http://tex.stackexchange.com/questions/17874/cleveref-and-titlesec-section-issues \crefname{appsec}{appendix}{appendices} \Crefname{appsec}{Appendix}{Appendices} %\input{creferrors.tex} % For space after ensuremath \usepackage{xspace} \usepackage{enumerate} %http://tex.stackexchange.com/questions/60135/path-to-external-files-in-nested-input %\usepackage{import} %\usepackage[numbers,sort]{natbib} %\usepackage[numbers,sort,compress]{natbib} %\usepackage{cite} %\usepackage[style=ieee]{biblatex} %\usepackage[% % bibstyle=ieee, % citestyle=numeric, % %isbn=true, % %doi=false, % %sorting=none, % %url=true, % %defernumbers=true, % %bibencoding=utf8, % backend=biber %]{biblatex} % IEEE style where each reference is individually braketed \usepackage[noadjust]{cite} \renewcommand\citeform[1]{[#1]} \renewcommand\citeleft{} \renewcommand\citeright{} \usepackage{booktabs} \usepackage{listings} \usepackage[chapter]{minted} \newenvironment{code}{\captionsetup{type=listing}}{} \usepackage[inline]{enumitem} \newlist{itemln}{itemize}{3} \setlist[itemln]{label=\textbullet,noitemsep,nolistsep} \newlist{enumln}{enumerate}{3} \setlist[enumln,1]{label=(\arabic*),noitemsep,nolistsep} \setlist[enumln,2]{label=(\arabic{enumlni}.\arabic*),noitemsep,nolistsep} \setlist[enumln,3]{label=(\arabic{enumlni}.\arabic{enumlnii}.\arabic*),noitemsep,nolistsep} \newlist{enumin}{enumerate*}{2} \setlist[enumin]{label=(\arabic*),noitemsep,nolistsep} \usepackage{makecell} % defines the FloatBarrier command \usepackage[section]{placeins} % References: https://tex.stackexchange.com/questions/333906/switch-between-long-and-short-caption-in-list-of-figures \makeatletter \let\latex@@caption\caption %\RenewDocumentCommand{\caption}{+o+m}{% \NewDocumentCommand{\captext}{+o+m}{% \IfValueTF{#1}{% \latex@@caption[#1]{\textbf{#1}\quad{}\@ifnextchar\par\@gobble\relax#2}% %\latex@@caption[#1]{\textbf{#1.} #2}% }{% %\latex@@caption[#2]{#2}% No [#1] given, use the long caption then! \latex@@caption[ERROR-NO-SHORT-TEXT]{#2}% No [#1] given, use the long caption then! } } \makeatother