I would like to have different page number formats for different sections of the document. I notice I can do per page numbering style using \thispagestyle (How to change page number location for first page only) but how can I do the same for a given section rather than a page? I.e., something like the following:
\begin{document}
\input{sectionA} %% page numbering style: -A-<page number>-
\input{sectionB} %% page numbering style: -B-<page number>-
\end{document}
I tried to use \thispagestyle but that doesn't quite work.

\renewcommand{\thepage}{\thesection--\arabic{page}} along with the aforementioned etcounterOr define globally that pages are counted sectionwise. This is all independant fromfancyhdr, but seeing an MWE would be great to provide a solid solution. – Johannes_B Jan 20 '15 at 17:38\documentclass{...}and ending with\end{document}. As has been pointed out before, failing to provide an MWE makes it both difficult for others to help you and difficult for your question to help others. Remember that questions and answers should be of general use - not just of interest to the asker. – cfr Jan 21 '15 at 02:02\pagestyleinstead of\thispagestylechanges the style for the subsequent pages. – Andrew Swann Jan 21 '15 at 07:20