Here's the simple line of code which apparently gives the error in my main code, while it's woking with any simple MWE code :
The problem appears to be related to the
tildecommand inside a subsubsection, since everything compiles fine without it. The error message is this one :
TeX capacity exceeded, sorry
[input stack size = 5000]
The document has about 80 pages and contains lots of equations, but not THAT much. So I don't understand why the
tildeinside a subsubsection gives any trouble in my main code file (and the
tildedo works elsewhere in the same code file !).
Again, take note that this problematic code line DO works in any MWE that I tried.
Any idea ?