This site will go down shortly. If you need any help, then please subscribe to The Persian TeX discussion mailing list
ask now - it's free

Most popular questions within the last 3 days

Most active Members
this month:
    0 votes
    46 views

    By running the following file, the \thepage command in the longtable environment does not work properly. (All pages of the page number are equal to 1).
    What is the cause and how can the problem be fixed?

    \documentclass{article}
    \usepackage{longtable}
    
    \begin{document}
    \begin{longtable}{| c | c |} \hline
    A & page \thepage \\
    \hline \endhead
    \hline \endfoot
    \rule{0.7\textwidth}{0.7\textheight}&\\
    \rule{0.7\textwidth}{0.7\textheight}&\\
    \rule{0.7\textwidth}{0.7\textheight}&
    \end{longtable}
    \end{document}
    

    I've already asked this question here

    asked by (120 points)
    ...