[Tex/LaTex] References to named theorems

cross-referencingtheorems

I would like to know how to give theorem type environments names and then how to later reference them using those names.

I was able to use this thread to create named theorems. However, this seems more complicated than it needs to be and I can't figure out how to reference things by their names later in the paper.

In particular, I want to do the following. I want to list the assumptions that I'm using at the beginning of my paper. However, instead of giving boring, uninformative names like Assumption 1, I want to give them names that will help the reader remember what the assumption is later in the paper. For instance, an assumption about continuity could be named "Assumption C" while an assumption about integrability could be named "Assumption I." Then later in the paper I'd like to refer to Assumption C by a \ref{} command.

Best Answer

The cleveref package can be helpful here:

\documentclass{article}
\usepackage{amsthm}
\usepackage{cleveref}

\theoremstyle{definition}
\newtheorem{assump}{Assumption}
\newenvironment{myassump}[2][]
  {\renewcommand\theassump{#2}\begin{assump}[#1]}
  {\end{assump}}
\begin{document}

\begin{myassump}{C}
\label{ass:c}
test
\end{myassump}
\begin{myassump}{I}
\label{ass:i}
test
\end{myassump}
Cross-references to~\cref{ass:c} and~\cref{ass:i}

\end{document}

enter image description here

Since there's no information about how the actual structures for assumptions are built, I used some simple theorem-like structures with the help of amsthm; the myassump environment has as mandatory argument the string that will be used to name the assumption.