In the question Footer ruler on first page in fancyhdr with `book` I asked about the possibility to get a footer ruler on the first page of a chapter. The answer https://tex.stackexchange.com/a/566047/44119 gave the required result for this problem.
I now have a similar problem, where I want to have the footer ruler and footer text on the first page of a chapter but when I have a part I don't want to have the footer ruler and footer text on that page.
The suggestion by @Bernard in comment on https://tex.stackexchange.com/a/566047/44119 was to use \thispagestyle{empty} but thiis didn't work, so I thought using of a \newenvironment for this but this didn't work either (my try is commented out at the moment.
My MWE:
\documentclass[twoside]{book}
\usepackage{lipsum}
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\renewcommand{\footrulewidth}{0.4pt}
%
\fancypagestyle{fancyplain}{
\fancyhf{}
\fancyhead[LE, RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\fancyfoot[LE, RO]{\bfseries\thepage}
\fancyfoot[LO, RE]{\bfseries\scriptsize Generated}
}
%
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[LE, RO]{\textbf{\thepage}}
\fancyfoot[LO, RE]{\bfseries\scriptsize Generated}
\renewcommand{\headrulewidth}{0pt}}
\pagestyle{fancyplain}
\newenvironment{MyPart}{
\fancyfoot[LO, RE]{}
\renewcommand{\footrulewidth}{0.0pt}
}{
\fancyfoot[LO, RE]{\bfseries\scriptsize Generated }
}
\begin{document}
%% test based on suggestion by @Bernard in comment on https://tex.stackexchange.com/a/566047/44119:
\part{Manual}
\thispagestyle{empty}
%% my own idea:
\begin{MyPart}
\part{Manual}
\end{MyPart}
\chapter{My Chapter}
\lipsum[1]
\newpage
\lipsum[1]
\newpage
\lipsum[1]
\end{document}


xpatchsolution for my case and this works as expected. – albert Oct 09 '20 at 11:45\renewcommand{\thepart}{} \renewcommand{\partname}{}– albert Oct 09 '20 at 11:57