1

I currently am trying to create an Assumption with 4 parts to it. I have first declared the assumptions chunk, then enumerated A,B,C, and D within. I am then trying to create reference labels for them. The sample code is as follows,

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{enumitem}
\newtheorem{assumption}{Assumption}

\begin{document}
\begin{assumption}[The Assumptions]\label{assumption1}
We have the following four assumptions. 

\begin{enumerate}[label={}]
\item \textbf{Part A:}
    Assumption B goes here
\item \textbf{Part B:}
    Assumption B goes here
\item \textbf{Part C:}
    Assumption C goes here
\item \textbf{Part D:}
    Assumption D goes here
\end{enumerate}

\end{assumption}

\end{document}

I would like to be able to put labels into each of the items of the enumerate chunk, but am having difficulties there. I am wondering if there is a way to do this with what I have above, or if there is a better way to go about things. Thanks.

2

You can do this:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{enumitem}
\newtheorem{assumption}{Assumption}

\begin{document}
\begin{assumption}[The Assumptions]\label{assumption1}
We have the following four assumptions. 

\begin{enumerate}[label={\textbf{Part~\Alph*:}}, ref={assumption~\Alph*}]
\item \label{assump-A}%
    Assumption A goes here
\item \label{assump-B}%
    Assumption B goes here
\item \label{assump-C}%
    Assumption C goes here
\item \label{assump-D}%
    Assumption D goes here
\end{enumerate}

\end{assumption}

This is a reference to \ref{assump-B}. Now to \ref{assump-A}, etc.
\end{document}

Screenshot

If you want the references to be prefixed by the assumption number (here, 1 since there is only one \begin{assumption}), use:

\begin{enumerate}[label={\textbf{Part~\Alph*:}},
  ref={assumption~\theassumption.\Alph*}]

screenshot 2

  • Thank you! I am also wondering if there is perhaps a way to retain the top-level number, i.e., have Assumption 1A, Assumption 1B, etc. Is there an easy way to do this too? Thanks. – user321627 Jun 15 at 22:14
  • It's in my edit. :-) – frougon Jun 15 at 22:15
  • 1
    Wow thank you!! This is awesome. – user321627 Jun 15 at 22:18
  • 1
    My pleasure. :-) – frougon Jun 15 at 22:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.