Okay, never mind! The problem was \pagetotal. In fact, I replaced it with \pageref{LastPage} (using the lastpage pakcage) and it just works.
Don't ask why, I don't know. :)
Well, I had a similar problem, with that awful error message and very difficult to trace back. After some test and try and ...
Search found 1 match
- Fri May 08, 2009 12:49 am
- Forum: General
- Topic: Help needed: Undefined control sequence. \end{document} ?
- Replies: 3
- Views: 32355