Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Earlier in the document, there's some equations labeled like this:

(1)  (some space) \frac{1}{/2}=0.5

(2)  (some space) hi

Now, I want to do something like this and switch the equation number and start over:

(a)  (some space) hello

How can I do this?

share|improve this question
1  
Are those really equations? Or is it just an enumeration that just happens to have math in some items? –  Manuel Jun 17 at 16:38

1 Answer 1

up vote 7 down vote accepted

Something like this?

enter image description here

\documentclass[leqno,fleqn]{article}
\usepackage{amsmath} %% for \eqref macro
\setlength\textwidth{2in} % just for this example
\begin{document}

\begin{equation} \frac{1}{2}=0.5 \label{eq:1} \end{equation} 
\begin{equation} \mbox{hi} \end{equation}

\setcounter{equation}{0}  % reset the equation counter
\renewcommand{\theequation}{\alph{equation}} % change numbering from arabic to alphabetic

Now, I want to do something like this and switch the equation number and start over:
\begin{equation} \mbox{hello} \label{eq:a} \end{equation}

Here are cross-references to equations \eqref{eq:1} and \eqref{eq:a}.
\end{document}
share|improve this answer
1  
+1 You might add some labels to show this work correctly too. –  Andrew Swann Jun 17 at 19:24
    
Wouldn't it be better to use two different (custom) environments each with their own counters? equation-arabic, equation-alpha for example? –  Thruston Jun 17 at 19:50
    
@AndrewSwann - Thanks for this suggestion, I'll incorporate in in the answer. –  Mico Jun 17 at 20:02
    
@Thruston - Let's see if the OP weighs in on what he/she is trying to achieve with this change in equation numbering system. –  Mico Jun 17 at 20:04
    
Thanks! It's really interesting though because this only works if I don't include the fleqn. This post is really helpful though. –  user54689 Jun 18 at 1:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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