% Lyn's abstractions for references to sections, figures, etc. 
% The actual words used (E.g., ``section'' vs. ``sec.'')
% should be defined elsewhere

\newcommand{\namedref}[2]{#1~\ref{#2}}
\newcommand{\namedrefTwo}[3]{#1~\ref{#2} and~\ref{#3}}
\newcommand{\namedrefs}[3]{#1~\ref{#2}--\ref{#3}}

\newcommand{\secref}[1]{\namedref{\secWord}{#1}}
\newcommand{\Secref}[1]{\namedref{\SecWord}{#1}}
\newcommand{\secrefTwo}[2]{\namedrefTwo{\secsWord}{#1}{#2}}
\newcommand{\SecrefTwo}[2]{\namedrefTwo{\SecsWord}{#1}{#2}}
\newcommand{\secrefs}[2]{\namedrefs{\secsWord}{#1}{#2}}
\newcommand{\Secrefs}[2]{\namedrefs{\SecsWord}{#1}{#2}}

\newcommand{\chapref}[1]{\namedref{\chapWord}{#1}}
\newcommand{\Chapref}[1]{\namedref{\ChapWord}{#1}}
\newcommand{\chaprefTwo}[2]{\namedrefTwo{\chapsWord}{#1}{#2}}
\newcommand{\ChaprefTwo}[2]{\namedrefTwo{\ChapsWord}{#1}{#2}}
\newcommand{\chaprefs}[2]{\namedrefs{\chapsWord}{#1}{#2}}
\newcommand{\Chaprefs}[2]{\namedrefs{\ChapsWord}{#1}{#2}}

\newcommand{\appref}[1]{\namedref{\appWord}{#1}}
\newcommand{\Appref}[1]{\namedref{\AppWord}{#1}}
\newcommand{\apprefTwo}[2]{\namedrefTwo{\appsWord}{#1}{#2}}
\newcommand{\ApprefTwo}[2]{\namedrefTwo{\AppsWord}{#1}{#2}}
\newcommand{\apprefs}[2]{\namedrefs{\appsWord}{#1}{#2}}
\newcommand{\Apprefs}[2]{\namedrefs{\AppsWord}{#1}{#2}}

\newcommand{\figref}[1]{\namedref{\figWord}{#1}}
\newcommand{\Figref}[1]{\namedref{\FigWord}{#1}}
\newcommand{\figrefTwo}[2]{\namedrefTwo{\figsWord}{#1}{#2}}
\newcommand{\FigrefTwo}[2]{\namedrefTwo{\FigsWord}{#1}{#2}}
\newcommand{\figrefs}[2]{\namedrefs{\figsWord}{#1}{#2}}
\newcommand{\Figrefs}[2]{\namedrefs{\FigsWord}{#1}{#2}}

\newcommand{\tblref}[1]{\namedref{\tblWord}{#1}}
\newcommand{\Tblref}[1]{\namedref{\TblWord}{#1}}
\newcommand{\tblrefTwo}[2]{\namedrefTwo{\tblsWord}{#1}{#2}}
\newcommand{\TblrefTwo}[2]{\namedrefTwo{\TblsWord}{#1}{#2}}
\newcommand{\tblrefs}[2]{\namedrefs{\tblsWord}{#1}{#2}}
\newcommand{\Tblrefs}[2]{\namedrefs{\TblsWord}{#1}{#2}}

\newcommand{\exref}[1]{\namedref{\exWord}{#1}}
\newcommand{\Exref}[1]{\namedref{\ExWord}{#1}}
\newcommand{\exrefTwo}[2]{\namedrefTwo{\exsWord}{#1}{#2}}
\newcommand{\ExrefTwo}[2]{\namedrefTwo{\ExsWord}{#1}{#2}}
\newcommand{\exrefs}[2]{\namedrefs{\exsWord}{#1}{#2}}
\newcommand{\Exrefs}[2]{\namedrefs{\ExsWord}{#1}{#2}}

\newcommand{\defref}[1]{\namedref{\defWord}{#1}}
\newcommand{\Defref}[1]{\namedref{\DefWord}{#1}}
\newcommand{\defrefTwo}[2]{\namedrefTwo{\defsWord}{#1}{#2}}
\newcommand{\DefrefTwo}[2]{\namedrefTwo{\DefsWord}{#1}{#2}}
\newcommand{\defrefs}[2]{\namedrefs{\defsWord}{#1}{#2}}
\newcommand{\Defrefs}[2]{\namedrefs{\DefsWord}{#1}{#2}}

\newcommand{\lemref}[1]{\namedref{\lemWord}{#1}}
\newcommand{\Lemref}[1]{\namedref{\LemWord}{#1}}
\newcommand{\lemrefTwo}[2]{\namedrefTwo{\lemsWord}{#1}{#2}}
\newcommand{\LemrefTwo}[2]{\namedrefTwo{\LemsWord}{#1}{#2}}
\newcommand{\lemrefs}[2]{\namedrefs{\lemsWord}{#1}{#2}}
\newcommand{\Lemrefs}[2]{\namedrefs{\LemsWord}{#1}{#2}}

\newcommand{\thmref}[1]{\namedref{\thmWord}{#1}}
\newcommand{\Thmref}[1]{\namedref{\ThmWord}{#1}}
\newcommand{\thmrefTwo}[2]{\namedrefTwo{\thmsWord}{#1}{#2}}
\newcommand{\ThmrefTwo}[2]{\namedrefTwo{\ThmsWord}{#1}{#2}}
\newcommand{\thmrefs}[2]{\namedrefs{\thmsWord}{#1}{#2}}
\newcommand{\Thmrefs}[2]{\namedrefs{\ThmsWord}{#1}{#2}}

\newcommand{\propref}[1]{\namedref{\propWord}{#1}}
\newcommand{\Propref}[1]{\namedref{\PropWord}{#1}}
\newcommand{\proprefTwo}[2]{\namedrefTwo{\propsWord}{#1}{#2}}
\newcommand{\ProprefTwo}[2]{\namedrefTwo{\PropsWord}{#1}{#2}}
\newcommand{\proprefs}[2]{\namedrefs{\propsWord}{#1}{#2}}
\newcommand{\Proprefs}[2]{\namedrefs{\PropsWord}{#1}{#2}}

\newcommand{\remref}[1]{\namedref{\remWord}{#1}}
\newcommand{\Remref}[1]{\namedref{\RemWord}{#1}}
\newcommand{\remrefTwo}[2]{\namedrefTwo{\remsWord}{#1}{#2}}
\newcommand{\RemrefTwo}[2]{\namedrefTwo{\RemsWord}{#1}{#2}}
\newcommand{\remrefs}[2]{\namedrefs{\remsWord}{#1}{#2}}
\newcommand{\Remrefs}[2]{\namedrefs{\RemsWord}{#1}{#2}}
 
\newcommand{\corref}[1]{\namedref{\corWord}{#1}}
\newcommand{\Corref}[1]{\namedref{\CorWord}{#1}}
\newcommand{\correfTwo}[2]{\namedrefTwo{\corsWord}{#1}{#2}}
\newcommand{\CorrefTwo}[2]{\namedrefTwo{\CorsWord}{#1}{#2}}
\newcommand{\correfs}[2]{\namedrefs{\corsWord}{#1}{#2}}
\newcommand{\Correfs}[2]{\namedrefs{\CorsWord}{#1}{#2}}

\newcommand{\convref}[1]{\namedref{\convWord}{#1}}
\newcommand{\Convref}[1]{\namedref{\ConvWord}{#1}}
\newcommand{\convrefTwo}[2]{\namedrefTwo{\convsWord}{#1}{#2}}
\newcommand{\ConvrefTwo}[2]{\namedrefTwo{\ConvsWord}{#1}{#2}}
\newcommand{\convrefs}[2]{\namedrefs{\convsWord}{#1}{#2}}
\newcommand{\Convrefs}[2]{\namedrefs{\ConvsWord}{#1}{#2}}


