Generate and print List of equations

I recently learned of LaTeX code on StackExchange that will generate a list of all the equations that exist within a project. The code appears to work well with Scrivener when running LaTeX, and is available at:

The LaTeX code ‘extracts’ all of the equations as they appear in the PDF output document –along with the equation number– from within the Scrivener project. Using the “\listofequations” LaTeX print command, I believe the ‘List of equations’ can be printed essentially anywhere the command is placed within the Scrivener project.

I tested the LaTeX ‘List of equations’ code to print the equations at the end of my PDF output document. A copy of the first page of the ‘List of equations’ for my project is included below.

I don’t plan to include the ‘List of equations’ in my final document. Instead, I plan to use the list to quickly locate equations (from a growing list of 50+ equations) within my almost 300 page (and growing) document while I continue to write and edit.

I hope this may be of some use,

A quick question, you posted this to the tech support area, but it reads like you’re posting tips on how to use Scrivener to list equations rather than asking how to do so. If so, I could move this over to the “Using Scrivener” section for you.

Given that the OP is actually talking about LaTeX, might it not sit better in the MMD and LaTeX forum?



Hi AmberV,

Thank you for your posting.

I would appreciate and welcome your moving my posting wherever you feel it is appropriate.

I was just so surprised and thankful for the code to list the equations that I thought others may find helpful, that I posted soon thereafter, perhaps not in the best location.

Thank you for your suggestion to move my posting. Please feel free to do so at your convenience.

Thank you,

Thanks to the magic of linked threads, it can be both! :slight_smile: Some day it would be nice when there are tags around here, and one can post a “howto” or “usage” topic into whatever area is most appropriate. Hmmm.

Thanks for putting together the tip! I had thought that I listed that code in the sample LaTeX project template, under the “Contents” section (though commented out with the other demonstrations, like \listoffigures), but I guess not! I’ll add it to my list to put it in there so others needn’t have to look up the code in the future.

To round out the possible ways to print an index of a List of equations, another linked page on StackExchange at:

presents LaTeX code for a ‘Table of equations like list of figures’ which I have not had a chance to implement in my Scrivener project, but will do so as soon as I have a chance.

I’m particularly interested in the \noteworthy command that appears in the (second) answer provided by Charles Clayton where:

For example, the LaTeX \noteworthy command for the Pythagorean theorem equation, can be coded quite simply as follows:

\noteworthy{a^2 + b^2 = c^2}{Pythagorean theorem}

An example of a ‘List of Equations’ using the \noteworthy command may appear as follows:
[attachment=1]GDt7M.png[/attachment]where for example Boole’s inequality may appear in the document as:[attachment=0]FPIt3trim.png[/attachment]
I’m hoping to test the \noteworthy command and report the results.

Stay safe,

P.S. Please feel free to move this post wherever appropriate.

P.P.S. @AmberV: Can you provide a bit more information on where I might find “the sample LaTeX project template, under the “Contents” section”? Thanks!

Yeah, I was wondering about that default output. I had always envisioned that the result would be a lot more like the second example, kind of like a table of contents, and how figures and tables are listed. Good to know, and I’ve added these notes for my implementation; I’ll give some thought as to whether it would be good to provide some infrastructure for that approach if one wants it. I do try to keep that setup as vanilla simple as possible though, rather than assume what people may want.

It sounds like you’re already past the point where it may be useful, but there could be some tips and tricks that are worth adopting in your project. It is a project template, so create a new project from the File menu, go into Non-Fiction, and you’ll find it listed there.

The idea behind its design is to let Scrivener generate LaTeX syntax for some things where that is convenient, like turning the binder outline itself into \chapter … \section commands and so forth, and automatically labelling them, and even allowing for cross-references using Scrivener’s internal hyperlinking feature—stuff like that. At the same time it fully allows for one to write raw LaTeX right in the editor too. So you can take conveniences where they suit you, maybe using styles to mark equations and leaving the compiler to generate the scaffolding around them.