Math & ScienceAlternative numbering Definitions 1a 1b

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
bartvde
Posts: 3
Joined: Fri Nov 26, 2010 3:40 pm

Alternative numbering Definitions 1a 1b

Post by bartvde »

Hi all,

Is there a way to number certain Definitions (or Theorems, Propositions, ...) like this

Definition 4
...
Definition 5a
Definition 6a
...
Definition 5b
Definition 6b
...
Definition 7

Ideally, I want this this special numbering to be automatic: e.g., adjusting the counter of Definition 5b should somehow reference the counter of Definition 5a, and so on.

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Alternative numbering Definitions 1a 1b

Post by frabjous »

Of course, but it would help to see a minimal working example of your current usage, so we know what packages, documentclass, etc., you're using.

However, here's an initial suggestion for you, assuming you're using amsthm to create your definition environment.

Code: Select all

\documentclass{article}
\usepackage{amsthm}

\theoremstyle{definition}
\newtheorem{definition}{Definition}
\newtheorem{subdefinition}{Definition}[definition]
\renewcommand{\thesubdefinition}{\thedefinition\alph{subdefinition}}

\begin{document}

\begin{definition} 
   A definition 
\end{definition}

\begin{subdefinition} 
   A subdefinition 
\end{subdefinition}

\begin{subdefinition} 
   Another subdefinition 
\end{subdefinition}

\begin{definition}
    Another definition.
\end{definition}

\end{document}
subdefs.png
subdefs.png (8.31 KiB) Viewed 6238 times
bartvde
Posts: 3
Joined: Fri Nov 26, 2010 3:40 pm

Re: Alternative numbering Definitions 1a 1b

Post by bartvde »

It's hard to give an MWE since I can't do any better than just give the result.

The latex code that you provided is not exactly what I need:
- I want to start directly with "Definition 1a", without using "Definition 1".
- I want to mix everything up. E.g., in the following order: 1, 2a, 3a, 4, 2b, 3b.

This kind of numbering may look bad, since it destroys the logical numbering of the definitions/theorems/..., but in the context of equivalent definitions, I find it useful.
Post Reply