请参阅下面的代码 - 我有一个 Tikz 包,我已将其复制为具有两行不同大小。现在的问题是,我的副标题出现在标题下方,我很难将它们翻转。理想情况下,我希望较小的文本位于较大的文本下方,并且在同一个 Tikz 条目中,以便标题包含副标题
(查看现在的截图,标题上方的副标题)
% Header %
\RequirePackage{tikz}
\newcommand{\header}[2]{%
\begin{tikzpicture}[remember picture,overlay]
\node [rectangle, fill=fillheader, anchor=north, minimum width=\paperwidth, minimum height=2.5cm] (box) at (current page.north){};
\node [anchor=center] (name) at (box) {%
\fontsize{40pt}{65pt}\color{header}%
{\thinfont #1}{\bodyfont #2}
};
\end{tikzpicture}
\vspace{1cm}
\vspace{-2\parskip}
}
%SubHeader%
\RequirePackage{tikz}
\newcommand{\subheader}[2]{%
\begin{tikzpicture}[remember picture,overlay]
\node [rectangle, fill=fillheader, anchor=north, minimum width=\paperwidth, minimum height=0.8cm] (box) at (current page.north){};
\node [anchor=center] (line) at (box) {%
\fontsize{10pt}{10pt}\color{header}%
{\bodyfont #1}{\bodyfont #2}
};
\end{tikzpicture}
\vspace{1cm}
\vspace{-2\parskip}
}