I'm using LyX together with the Springer Journal LaTeX template to write a document. I'm also using the Algorithmic Environment module to create an algorithm layout within my document. The problem is that every time I compile the file, I get the following error:
No counter 'chapter' defined.
I found the line that is causing the problem and is this:
Basically, the Springer template is not divided in chapters, but in sections, so I decided to use the LyX preamble and correct this by writing:
But it seems it is not working because I keep getting the same error on the same line, like if I hadn't written anything in the preamble. Does anybody know how can I solve this?
I'm using LyX 2.1.2 on a Mac.