I am using the isov2 document class and are using four \note{
s in one clause.
The isov2 documentation says:
NOTE 4 - Similarly, you may get the message! Too deeply nested - Again, hit <return>
and processing should continue. However, the indentation of later lists may not be correct.
How do I rather change this error into a bad style warning, as it should be?
\documentclass[wd,a4paper,copyright]{isov2}
\begin{document}
\clause{Resiliant MWE}
\note{one}
\note{two}
\note{three}
\note{four}
\note{five}
\note{six}
\note{one too many}
\sclause{Giving:}
\begin{verbatim}
Clause: 1
! LaTeX Error: Too deeply nested.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.10 \note
{one too many}
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
\end{verbatim}
\end{document}
\makeatletter\def\@toodeep{\ClassWarning{isov2}{list nesting too deep}} \makeatother
probably does what you ask\makeatletter\def\@toodeep{\@latex@warning{Isov2 note list nesting too deep}} \makeatother
also throws warning in Overleaf - thanks. Please post answer.