# Use of LaTex for equations

**URL:** <https://pressbooks.community/t/use-of-latex-for-equations/2016>\
**Category:** Adding Math or Interactive Content\
**Created:** [July 8, 2022, 2:34pm UTC](https://pressbooks.community/t/use-of-latex-for-equations/2016 "2022-07-08T14:34:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rob\_Rose](https://pressbooks.community/user_avatar/pressbooks.community/rob_rose/32/1332_2.png) [@Rob\_Rose](https://pressbooks.community/u/Rob_Rose)\
**Post date:** [July 8, 2022, 2:34pm UTC](https://pressbooks.community/t/use-of-latex-for-equations/2016/1 "2022-07-08T14:34:03Z")

</div>

I had a question regarding the use of LaTex in Pressbooks. I am able to use the automated numbering system for equations using LaTex:

 ![Screen Shot 2022-07-08 at 10.16.43 AM](https://pressbooks.community/uploads/default/original/2X/1/191e3ef7d7a410a5cca1046062e6a8715e1c02ee.png)

In addition, I have figured out how to add a custom label to equations using the LaTex code, “\tag{D.3.1}”

I am wondering if anyone is aware of a method for using a combination of auto-generated and custom numbering system. The “D.3” above refers to the section and chapter of the book while the final number refers to the equation number. Is there a way to tag equations where that final number is automatically generated, but then I add a section and chapter in front of it? I am hoping to not have to manually edit every equation number if I update or revise a chapter. I have played around with trying to find a solution here, but without success.

---

<div class="post-metadata">

**Author:** ![Rob\_Rose](https://pressbooks.community/user_avatar/pressbooks.community/rob_rose/32/1332_2.png) [@Rob\_Rose](https://pressbooks.community/u/Rob_Rose)\
**Post date:** [July 15, 2022, 7:35pm UTC](https://pressbooks.community/t/use-of-latex-for-equations/2016/2 "2022-07-15T19:35:47Z")

</div>

I wanted to revisit this question again by offering a bit of clarification. I am hoping to be able to generate an equation tag similar to the following where the final number is autogenerated based on the number of equations in the chapter:

 ![Screen Shot 2022-07-15 at 3.30.37 PM](https://pressbooks.community/uploads/default/original/2X/a/a70b206b7689805db33d869b83622b5d84f996aa.png)

---

<div class="post-metadata">

**Author:** ![ThomasWeideman](https://pressbooks.community/user_avatar/pressbooks.community/thomasweideman/32/1238_2.png) [@ThomasWeideman](https://pressbooks.community/u/ThomasWeideman)\
**Post date:** [July 18, 2022, 8:08pm UTC](https://pressbooks.community/t/use-of-latex-for-equations/2016/3 "2022-07-18T20:08:52Z")

</div>

Hi @Rob_Rose, we unfortunately don’t have support for automatic equation numbering with LaTeX yet though it has come up as a feature request in the past. We have a GitHub ticket open for adding this: [[Feature] Add support for equation numbering · Issue #32 · pressbooks/pb-mathjax · GitHub](https://github.com/pressbooks/pb-mathjax/issues/32). I’ve added a comment with a link to this thread for the tech team to reference.
