页眉的设置自动加了 \rightmark
可以使用 markboth
置空。
\titleformat{\part}
{\normalfont\huge\filcenter}
{}
{20pt}
{\markboth{}{}\begin{tikzpicture}[remember picture,overlay]
\fill[outermarginbgcolor]
($(current page.north west)+(0,0)$) rectangle ($(current page.south east)+(0,0)$);%
\node[
rectangle,drop shadow={opacity=.3,color=black!40!white,shadow xshift=.05cm,shadow yshift=-.05cm},
fill=outermarginfgcolor!90,
text width=\paperwidth-2\outermarginwidth,
rounded corners=5pt,
text depth=15cm,
anchor=center,
inner sep=0pt] at (current page.north) (parttop)
{\thepart};%
\node[
anchor=south east,
inner sep=0pt,
outer sep=0pt] (partnum) at ([xshift=-20pt]parttop.south)
{\partnumfont\thepart};
\node[
anchor=south,
inner sep=0pt] (partname) at ([yshift=2pt]partnum.south)
{\partnamefont PART};
\node[%
anchor=north east,xshift=1.5\outermarginwidth,
align=left,font=\Huge\scshape\color{outermarginfgcolor},
inner xsep=0pt] at ([yshift=-0.5cm]partname.west|-partnum.south east)
{\parbox[][.5\paperheight][t]{.5\textwidth}{\raggedright#1}};%
\shade[%
rectangle,drop shadow={opacity=.3,color=black!40!white,shadow xshift=.05cm,shadow yshift=-.05cm},
top color=outermarginfgcolor!40,bottom color=outermarginbgcolor!20,
rounded corners=5pt,
] ($(current page.south west)+(\outermarginwidth,1.2\footheight)$) rectangle ($(current page.south east)+(-\outermarginwidth,.3\paperheight+1.2\footheight)$);%
\node[anchor=south,text=outermarginfgcolor,font=\large\sffamily\normalfont,] at ([yshift=1.25\footheight]current page.south) (partbottom) %
{\parbox[][.3\paperheight][c]{\paperwidth-2\outermarginwidth-.5\footheight}{\partpage}};%
\end{tikzpicture}%
}
问 如何让页面样式在Part中不起作用,就是在Part中无效,看不见