Text FormattingSeparate numbering for different types of assumptions

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
davidpage
Posts: 11
Joined: Sat Jan 16, 2010 12:05 pm

Separate numbering for different types of assumptions

Post by davidpage »

Hi,

I used the suggestion in this thread to label my assumptions A1, A2, and so on. But it turns out that I need a separate list of assumptions to be numbered B1, B2, etc. Is there a quick way I can achieve this? Thank you.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Separate numbering for different types of assumptions

Post by Johannes_B »

I don't understand the question. Can you please add some explanations and add a minimal working example for us to understand and reproduce what you want?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
davidpage
Posts: 11
Joined: Sat Jan 16, 2010 12:05 pm

Separate numbering for different types of assumptions

Post by davidpage »

Nevermind, I guess I've figured it out. The code would be something like the following.

Code: Select all

\newtheorem{assump}{Assumption}
\newtheorem{assumpB}{Assumption}
\renewcommand\theassump{A\arabic{assump}}
\renewcommand\theassumpB{B\arabic{assumpB}}

\begin{assump}
This assumption is labelled "Assumption A1".
\end{assump}

\begin{assumpB}
This assumption is labelled "Assumption B1".
\end{assumpB}

\begin{assump}
This assumption is labelled "Assumption A2".
\end{assump}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Re: Separate numbering for different types of assumptions

Post by Stefan Kottwitz »

Hi David,

thank you for posting your solution!
If there's anything else, we could take a look at, just let us know.

Stefan
LaTeX.org admin
Post Reply