LyX ⇒ List of Equations / Table of Equations
List of Equations / Table of Equations
So in our document we have the Table of Contents, List of Figures, List of Tables, nomenclature, etc.
How to we insert a List of Equations? All of our equations are numbered and labeled. I.e., next to each equation appears (eq:EquationName, #)
Thanks in advance,
Robinson
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
List of Equations / Table of Equations
List of Equations / Table of Equations
I can get the new List to appear, but to populate it with equations each equation which you want to appear in your list must include something like:
Code: Select all
\myequations{Equation name \ref{eq:1}}
I was wondering if there was a more elegant way to include the tocloft package and have it recognize that each \begin{equation} should be listed in the TOC/List of Equations without that special \myequations following it.
Thanks,
Robinson
List of Equations / Table of Equations
Code: Select all
% redefine equation to automatically include our \myequations tag
\let\oldequation = \equation
\let\endoldequation = \endequation
\renewenvironment{equation}{
\begin{oldequation}
}{
\end{oldequation}
\myequations{\@currentlabelname}
}
\usepackage{tocloft}
\newcommand{\listequationsname}{List of Equations}
\newlistof{myequations}{equ}{\listequationsname}
% myequation takes in its display name
\newcommand{\myequations}[1]{
% display name is printed
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}
- Each \equations displayed name in the List of Equations is not its own \label (eg. Torque) but instead is the name of the \subsection in which it appears (such that dozens of equations have the name "Brushless Motor Fundamentals", etc.
- Equations 2.1 - 2.9 display correctly in the List of Equations but after the equation number hits 2.10 the second digit overlaps with the display name.
Code: Select all
\begin{equation}
\tau=F\times r
\label{eq:Torque}
\end{equation}