I'm making a document with LaTeX and I wish to add a lateral index to each page with the first letters of the first and last words.
I implemented the solution given in this answer with the
everyshi to reset a counter at the beginning of each page.
However, I still have a problem. My counter is not resetted axactly at the beginning of the page but a bit after. See bellow (The counter is printed at the beginning of the line) :
I'm using a multicols environnement from the
multicol package and if I have this problem, it's certainly due to the columns balancing.
Is there a way to solve this problem ?
Is there a way to execute a command or reset a counter exactly at the beginning of a page inside a multicol environnement ?