如何更改 LegrandOrangeBook 中垂直矩形的颜色

如何更改 LegrandOrangeBook 中垂直矩形的颜色

关于如何更改此 ocre 矩形的颜色,您有什么想法吗?我认为可以在 LegrandOrangeBook.cls 中完成,但我无论如何也找不到它。谢谢。

垂直矩形

答案1

在此处输入图片描述

red黑色组合色

在此处输入图片描述

black颜色

在此处输入图片描述

最初用ocre!40颜色编码

转到名为LegrandOrangeBook.cls

参见以下代码行号 124 -- 最初这有颜色ocre-- 我现在已将其更改为\textcolor{red!70!black!40}-- 现在重新编译文件并查看颜色的差异Part Number

    \node[anchor=north west, inner sep=0pt, xshift=\Gm@lmargin, yshift=-\Gm@tmargin] at (current page.north west) {\fontsize{220pt}{220pt}\selectfont\sffamily\bfseries\textcolor{red!70!black!40}{#1}}; % Part number

下面是完整的代码行,可以根据需要进行更改和实验

% Command to create and output the parts pages
\newcommand{\outputpartpage}[2]{
    \begin{tikzpicture}[remember picture, overlay]
        \node[anchor=center, rectangle, fill=ocre!20, inner sep=0pt, minimum height=\paperheight, minimum width=\paperwidth] at (current page.center) {}; % Background color
        \node[anchor=north west, inner sep=0pt, xshift=\Gm@lmargin, yshift=-\Gm@tmargin] at (current page.north west) {\fontsize{220pt}{220pt}\selectfont\sffamily\bfseries\textcolor{red!70!black!40}{#1}}; % Part number
        \node[anchor=north east, inner sep=0pt, xshift=-\Gm@rmargin, yshift=-\Gm@tmargin] at (current page.north east) {\fontsize{30pt}{30pt}\selectfont\sffamily\bfseries\textcolor{white}{\strut #2}}; % Part title
        \node[anchor=south east, inner sep=0pt, xshift=-\Gm@rmargin, yshift=\Gm@bmargin] at (current page.south east) { % Mini table of contents
            \parbox[t][][t]{8.5cm}{ % Width of box holding the mini ToC
                \printcontents[part]{l}{0}{\setcounter{tocdepth}{1}} % Display the mini table of contents showing chapters and sections, change tocdepth to 2 to also show subsections or 0 to only show chapters
            }
        };
    \end{tikzpicture}

相关内容