I want to put
\minitoc before the beginning of the chapter. I've tried to use
\minitoc normally but it prints the contents of the previous chapter the current chapter for latex.
I followed this How can I put a minitoc before a chapter, on the facing page?
but it did worked on some chapters and not all of them