Hi Nasser, > > I am afraid it did not. But there was no errors. I did > get complete table of contents this time, but clicking on the last > sections in the TOC gave errors saying link not found. Like before > the increasing of \gHAdvance\fstf:id >
That's sad to hear. I've updated the counter anyway, so I hope it fixes at least some problems. I will probably not investigate this issue more, as it seems that the main issue is that we need to define a lot of macros for each split file, so you will always have issues with running out of memory with huge documents. > But since then, I am no longer now building the whole book as one > large document. As I mentioned, now I am building the book by > splitting each chapter into separate document. > I think it is a best solution, it should speed up the compilation significantly, as you don't need to recompile everything at every change. Best regards, Michal