LaTeX Nonsequential Numbering of Subequations in LaTeX

  • Thread starter Thread starter ams2990
  • Start date Start date
  • Tags Tags
    Latex
AI Thread Summary
The discussion centers on the challenge of numbering subequations nonsequentially in LaTeX. The user seeks to replace the default numbering format (1a, 1b) with a custom sequence, specifically wanting to use (1c) instead of (1b). Suggestions include modifying the equation counter or creating a new environment with a custom counter. To adjust the numbering, users can utilize commands like \addtocounter and \setcounter, specifically targeting \theequation for main equations and \thesubequation for subequations. Additional resources for managing LaTeX counters are provided for further guidance.
ams2990
Messages
11
Reaction score
0
I am trying to get subequations numbered nonsequentially. I have
Code:
\begin{subequations}
	\begin{equation}
		...
	\end{equation}
	\begin{equation}
		...
	\end{equation}
\end{subequations}
which gives me

Code:
(1a) ...
(1b) ...
Instead, I want (1c) instead of (1b). I have no clue whether this is trivial or requires me to use a different subequation method all together, I don't know. Any suggestions are acceptable, provided I am able to use it interchangeably with non-subequations, such as (1a),(1c),(2),(3),(4e),(4g),...
 
Physics news on Phys.org
Why?
 
It's not quite clear exactly what you want and why you want it - but you can probably do what you want by either making the occasional change to a counter or by defining a new environment and counter that counts the way you want.

To increment a counter, you use \addtocounter{\thecounter}{value}
To set a counter you use \setcounter{\thecounter}{value}

The counter for equations is \theequation and the counter for subequation is \thesubequation.

http://en.wikibooks.org/wiki/LaTeX/Advanced_Topics
http://texblog.wordpress.com/2007/07/25/counters-in-latex/
 
Last edited by a moderator:

Similar threads

Replies
2
Views
2K
Replies
1
Views
5K
Replies
4
Views
4K
Replies
3
Views
2K
Replies
12
Views
3K
Replies
1
Views
7K
Replies
3
Views
4K
Back
Top