I have a tabularx environment, with the first column containing each line number. This number is incremented automatically thanks to a variable:
\newcounter{versionscnt}
and then for each line:
\addtocounter{versionscnt}{1} \theversionscnt
This works perfectly fine.
But now I would need to print the total number of lines (ie the last value of my counter) BEFORE the tabularx. Is there a way for me to do that?
Thanks a lot for your time.
PS: I found some really long solutions on this forum, for related issues, but 1) I did not understand them and 2) I don't think that this requires 50 lines of code (but I might be wrong, I don't know)...