Results 1 to 3 of 3

Math Help - Number equations

  1. #1
    Newbie
    Joined
    Jan 2010
    Posts
    9

    Creating categories of equations (for multiple numberings)

    In my thesis I discriminate between 3 categories (A,B,C) of equations. I would like to have an individual numbering for each of these categories. regardless of section, chapter or subsection... regardless of the other types. It just numbers incrementally within it's own category.

    Something like this:
    equation A.1
    equation A.2
    equation B.1
    equation C.1
    equation A.3
    equation A.4
    equation C.2
    equation C.3
    etc...
    Is this possible ?
    and how so ?
    I would like to be able do customize the letters but this is less important than having multiple categories.
    Any help would be greatly appreciated!
    Last edited by beanbag; July 6th 2010 at 05:02 AM. Reason: forgot to complete the title
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Opalg's Avatar
    Joined
    Aug 2007
    From
    Leeds, UK
    Posts
    4,041
    Thanks
    7
    Quote Originally Posted by beanbag View Post
    In my thesis I discriminate between 3 categories (A,B,C) of equations. I would like to have an individual numbering for each of these categories. regardless of section, chapter or subsection... regardless of the other types. It just numbers incrementally within it's own category.

    Something like this:
    equation A.1
    equation A.2
    equation B.1
    equation C.1
    equation A.3
    equation A.4
    equation C.2
    equation C.3
    etc...
    Is this possible ?
    and how so ?
    I would like to be able do customize the letters but this is less important than having multiple categories.
    Any help would be greatly appreciated!
    I'm not sure if this will answer your requirements, but it might.

    In the preamble of your document (in other words, between the \documentclass line and the \begin{document} line), insert this:

    Code:
    \newcounter{eqnA}
    \newcounter{eqnB}
    \newcounter{eqnC}
    \renewcommand{\theeqnA}{\stepcounter{eqnA}A.\arabic{eqnA}}
    \renewcommand{\theeqnB}{\stepcounter{eqnB}B.\arabic{eqnB}}
    \renewcommand{\theeqnC}{\stepcounter{eqnC}C.\arabic{eqnC}}
    Then the input

    This is equation \theeqnA.

    This is equation \theeqnB.

    This is equation \theeqnA.

    This is equation \theeqnC.

    This is equation \theeqnC.

    This is equation \theeqnB.

    will produce the output

    This is equation A.1.
    This is equation B.1.
    This is equation A.2.
    This is equation C.1.
    This is equation C.2.
    This is equation B.2.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Jan 2010
    Posts
    9
    I will give this a try, thanks!
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 5
    Last Post: August 4th 2011, 02:36 PM
  2. Replies: 1
    Last Post: March 3rd 2011, 07:42 PM
  3. Replies: 1
    Last Post: February 13th 2010, 12:51 PM
  4. Replies: 3
    Last Post: July 8th 2009, 11:28 PM
  5. Replies: 2
    Last Post: February 12th 2009, 12:58 AM

Search Tags


/mathhelpforum @mathhelpforum