以下基于 的设置背后的想法memoir
是,标题应限制在 的设置中\newgeometry
,而图像应跨越位于其底部的标题页的整个宽度,其余页面应遵循\setlrmargins{*}{*}{1}
。我想任意上下移动标题。但更改top
我的边距\newgeometry
不会影响标题的垂直定位。我该如何解决这个问题?
\documentclass[a4paper, 12pt, twoside, openany, final]{memoir}
\usepackage{geometry}
\usepackage{titlesec}
\usepackage[svgnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{fadings}
\usepackage{xhfill}
\usepackage{afterpage}
\usepackage{kantlipsum}
\usepackage{microtype}
\setlrmargins{*}{*}{1}
\checkandfixthelayout
\begin{document}
\begingroup
\newcommand\YUGE{\fontsize{40}{40}\selectfont}
\setlength{\paperwidth}{\stockwidth}
\afterpage{\restoregeometry}
\newgeometry{left=1.5in, right=1in,top=-2in, bottom=0in}
\definecolor{mytan}{HTML}{628ab1}
\pagecolor{mytan}\afterpage{\nopagecolor}
\thispagestyle{empty}
\begin{flushleft}
\YUGE \textbf{The title}
\end{flushleft}
\vspace{8cm}
\begin{center}
\begin{tikzpicture}
\node[scope fading=north, inner sep=0pt, outer sep=0pt]{
\makebox[\textwidth]{\includegraphics[width=\paperwidth]{example-image-a}}
};
\end{tikzpicture}
\end{center}
\endgroup
\clearpage
\chapter{My chapter}
\kant[1]
\end{document}