每章首页插入图片和文字

每章首页插入图片和文字

我使用以下代码设计了每个章节的第一页。

\documentclass[14pt, a4paper]{memoir}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{tikz}

%---------------------------------------------------------------------------------------------------
%   CHAPTER HEADINGS
%---------------------------------------------------------------------------------------------------
\makeatletter
\def\@makechapterhead#1{
    \thispagestyle{empty}
    \begin{tikzpicture}[remember picture,overlay]
    \fill[red] (current page.north east) rectangle ([xshift=-7cm]current page.south east);
    \fill[red] ([yshift=-7.525cm]current page.north west) rectangle ([xshift=-7cm,yshift=-7.325cm]current page.north east);
    \fill[white] ([xshift=-7cm,yshift=-7.525cm]current page.north east) rectangle ([yshift=-7.325cm]current page.north east);
    \node[white, scale=10] (label) at ([xshift=-3.5cm,yshift=-3.7125cm]current page.north east) {\thechapter};
    \node[red,scale=1.85, anchor=west, baseline=label.base] (title) at ([xshift=0.75cm,yshift=-5cm]current page.north west) {#1};

    \node at ([xshift=-3.6cm, yshift=-10cm]current page.north east) {\includegraphics[width=5cm]{example-image-a}};
    \node[white, align=justify, text width=5cm, anchor=north] at ([xshift=-3.6cm, yshift=-12cm]current page.north east) {\lipsum{1}};   
\end{tikzpicture}
    \newpage}
\makeatother

\begin{document}
\chapter{chapter 1}
\end{document}

现在,我想要一张数学家的照片和一段关于它的短文每章如下图所示。

章节风格

如何才能做到这一点?

相关内容