To print my lists only when there are references I use the following syntax:
% List of figures
\iftotalfigures\listoffigures\fi
% List of tables
\iftotaltables\listoftables\fi
Now I would like to use the same for my xequations like this:
% List of xequations
\iftotalxequations\listofxequations\fi
My declaration is like this:
\DeclareNewTOC[
counterwithin=chapter,
name=equation,
type=xequation,
nonfloat,
]{loe}
\AtBeginDocument{
\newcaptionname{ngerman}\xequationname{Gleichung}
\newcaptionname{ngerman}\listxequationname{Gleichungsverzeichnis}
}
-
\begin{xequation-}
\begin{gather}
\begin{aligned}
a &= b\\
\label{eq:1}
\end{aligned}\\
\begin{array}{lll}
\text{mit:} &&\\
a & \text{--} & \text{Test [1]}\\
b & \text{--} & \text{Test [1]}
\end{array}
\notag
\end{gather}
\caption[Test]{Test}
\end{xequation-}
But \iftotalxequations is not defined. Is there an easy way to define it?
xequation-environment? – Bernard Aug 11 '19 at 18:17\documentclass,\usepackagestatements, the contents, and\end{document}, all put together in a single code example. Luckily, on the page you linked there is an MWE at the bottom that I could use for my answer - maybe for your next question you can try to include a code example with this convention yourself. – Marijn Aug 12 '19 at 16:07