I'm writing several SOP's - Standard Operation Procedure for a cosmetics industry. I need two page numbering scheme in the footer, one with all pages of the document and other with all pages of specific SOP, something like this:
Global Page: 1/180
SOP Page: 1/7
the main TOC must show the global numbering and the TOC of each SOP, the local numbering.
How to do it?
\documentclass {article}
\usepackage{fancyhdr}
\fancyhf{} %clear header and footer
\fancypagestyle{firststyle}{
\rfoot{
\fbox{
\begin{tabular}{r}
Global Page: \thepage/\thepage \
SOP Page: \thepage/\thepage \
\end{tabular}
}}
}
\usepackage{titletoc}
\begin{document}
\tableofcontents
\newpage
\addcontentsline{toc}{section}{SOP 1 - Administration}
\pagestyle{firststyle}
\startlist{toc}
\printlist{toc}{}{\section*{Contents - SOP 1}}
\setcounter{page}{1}
\section{OBJECTIVE}
\section{RESPONSIBILITY}
\section{PROCEDURES}
\stopcontents
\newpage
\setcounter{section}{0}
\addcontentsline{toc}{section}{SOP 2 - Prodution}
\startlist{toc}
\printlist{toc}{}{\section*{Contents - SOP 2}}
\setcounter{page}{1}
\section{OBJECTIVE}
\section{RESPONSIBILITY}
\section{PROCEDURES}
\end{document}




titletoc. It will best if you ask another question on that topic. – Simon Dispa Jul 29 '22 at 13:20