章节标题布局

章节标题布局

我正在尝试定义章节的第一页。目前,我可以这样做:

在此处输入图片描述

但我无法增加章节名称的尺寸,并且我想放置一条从蓝色方块底部到页面左边距的蓝线。

有人知道我该如何解决这两个问题吗?

这里是代码:

\DeclareFixedFont{\chapternumberfont}{T1}{ppl}{}{}{7.5cm}
\titleformat{\chapter}[display]{\fontsize{40}{75}\selectfont\normalfont\fontfamily{georgia}\selectfont\bfseries\color{cyan}}{
\thispagestyle{empty}
\begin{tikzpicture}[overlay, remember picture]
        \path let \p1 = (current page.west), \p2 = (current page.east) in
              node[minimum width=8cm, minimum height=7cm, rectangle, fill=cyan, anchor=north east, align=left, text width=8cm] at ($(current page.north east)$) {
                \begin{textblock*}{7cm}(0.3cm,-3.5cm)
                    \tikz \node [white,text width=8cm, align=left, font=\sffamily] {{\raisebox{4cm}{\Huge\bfseries\sffamily \chaptertitlename}} %\raisebox{-12pt}
                    {\chapternumberfont \thechapter}};
                \end{textblock*}
              };
       \path let \p1 = (current page.west), \p2 = (current page.east) in
              node[minimum width=\x2-\x1, minimum height=0.8in, rectangle, , anchor=south west, align=left, text width=\x2-\x1] at ($(current page.south west)$) {page \thepage};
\end{tikzpicture}
}{-1.75in}{}[\vspace*{1in}]

相关内容