编译下面的代码后,我的输出中出现了空白的第一页(这是不理想的)。我不知道为什么会出现这个空白页。有人能帮忙吗?
\documentclass[twoside,openany,a5paper,14pt]{memoir}
%\usepackage{hyperref}
\usepackage[brazilian]{babel}
\usepackage[utf8]{inputenc}
\usepackage{titlesec}
\fixpdflayout
% Chapter style
\makeatletter
\renewcommand{\@makechapterhead}[1]{%
\vspace*{50 pt}%
{\setlength{\parindent}{0pt} \raggedright \normalfont
\bfseries\Huge
\ifnum \value{secnumdepth}>1
\if@mainmatter\thechapter.\ \fi%
\fi
#1\par\nobreak\vspace{40 pt}}}
% Title style
\newlength\drop
\newcommand*{\titleGM}{%
\thispagestyle{empty}
\begingroup% Gentle Madness
\drop = 0.1\textheight
\vspace*{\baselineskip}
\vfill
\hbox{%
\hspace*{0.2\textwidth}%
\rule{1pt}{\dimexpr\textheight-28pt\relax}%
\hspace*{0.05\textwidth}%
\parbox[b]{0.75\textwidth}{%
\vbox{%
\vspace{\drop}
{\Huge\bfseries\raggedright\@title\par}\vskip2.37\baselineskip
{\Large\@author\par}
\vspace{0.5\textheight}
}% end of vbox
}% end of parbox
}% end of hbox
\vfill
\null
\endgroup}
\makeatother
\title{Seguir adiante}
\author{Jos\'e Rodrigues}
\date{}
\begin{document}
\pagenumbering{gobble}
\thispagestyle{empty}
\titleGM
\thispagestyle{empty}
\clearpage
\pagenumbering{arabic}
Test
\end{document}
答案1
你的
\rule{1pt}{\dimexpr\textheight-28pt\relax}%
太高,不适合页面。最简单的方法是缩短一点
\rule{1pt}{\dimexpr\textheight-35pt\relax}%