Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LaTeX Subequation

  1. Sep 5, 2010 #1
    I am trying to get subequations numbered nonsequentially. I have
    Code (Text):
    \begin{subequations}
        \begin{equation}
            ...
        \end{equation}
        \begin{equation}
            ...
        \end{equation}
    \end{subequations}
    which gives me

    Code (Text):
    (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),...
     
  2. jcsd
  3. Sep 5, 2010 #2

    cristo

    User Avatar
    Staff Emeritus
    Science Advisor

    Why?
     
  4. Sep 5, 2010 #3
    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 [Broken]
    http://texblog.wordpress.com/2007/07/25/counters-in-latex/
     
    Last edited by a moderator: May 4, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: LaTeX Subequation
  1. Graphs in LaTeX (Replies: 3)

  2. LaTeX in PowerPoint (Replies: 2)

  3. Latex Help (Replies: 9)

  4. LaTeX help (Replies: 2)

Loading...