\mainmatter
? There's a question about a document using the inevitable 'template', but this one doesn't just load a bunch of packages in the wrong order, it uses \if@mainmatter
even though the base class is report
. Assuming it doesn't just give an error for every \chapter
, I'm wondering where it gets the conditional from.