使用 TitleGM 时 vbox 溢出,导致标题页前面出现空白页

使用 TitleGM 时 vbox 溢出,导致标题页前面出现空白页

我在标题页之前看到了一个空白页,我怀疑这是由于我收到了 vbox 溢出警告。问题是我不知道如何正确调整 vbox 设置!有人能帮忙吗?这里有一个显示问题的示例文档:

\documentclass[10pt,ebook,oneside,openright]{memoir}
\usepackage{color}
\usepackage{graphicx}
\usepackage{rotfloat}
\usepackage[scaled]{berasans}
\usepackage[T1]{fontenc}
\usepackage{type1cm}
\usepackage{eso-pic}
\usepackage{setspace}
\usepackage{listings}
\usepackage{lmodern}
\usepackage{tikz}
\usepackage{framed}
\ifpdf
  \usepackage{pdfcolmk}
\fi

\chapterstyle{madsen}
\pagestyle{ruled}
\setsecnumdepth{subsection}
\renewcommand*\familydefault{\sfdefault}
\floatstyle{boxed}
\linespread{1.2}
\restylefloat{figure}

\newlength{\drop}
\newcommand*{\titleGM}{
\thispagestyle{empty}
\begingroup
  \drop = 0.1\textheight
  \vspace*{\baselineskip}
  \vfill
  \hbox{ 
    \hspace*{0.2\textwidth} 
    \rule{1pt}{\dimexpr\textheight-28pt\relax} % Vertical line
    \hspace*{0.05\textwidth} 
    \parbox[b]{0.75\textwidth}{ 
      \vbox{
        \vspace{\drop}
    {\noindent\HUGE\bfseries Growing The\\[0.5\baselineskip]Money Tree}\\[2    \baselineskip]
    {\Large\itshape Cultivating Financial Freedom One Leaf At A Time}\\[.37    \baselineskip] 
        {\Large \textsc{John Svazic}}\par 
        \vspace{0.5\textheight} 
        {\noindent ARM Trading Press}\\[\baselineskip]
      }% end of vbox
    }
    }
\endgroup}

\begin{document}
\titleGM
\frontmatter
\mainmatter
It was a dark and stormy night...
\backmatter
\end{document}

答案1

罪魁祸首是\vspace{0.5\textheight}\linespread{1.2}。我缩短了所用的长度\vspace,并\linespread在构建标题后将行移到了某个位置。我还删除了一些虚假的空格(通过%在适当的位置插入(我希望我已经删除了所有空格)),并将“John Svazic”更改为罗马字体(拉丁现代字体在无衬线系列中不提供小写字母):

\documentclass[10pt,ebook,oneside,openright]{memoir}
\usepackage{color}
\usepackage{graphicx}
\usepackage{rotfloat}
\usepackage[scaled]{berasans}
\usepackage[T1]{fontenc}
\usepackage{type1cm}
\usepackage{eso-pic}
\usepackage{setspace}
\usepackage{listings}
\usepackage{lmodern}
\usepackage{tikz}
\usepackage{framed}
\ifpdf
  \usepackage{pdfcolmk}
\fi

\chapterstyle{madsen}
\pagestyle{ruled}
\setsecnumdepth{subsection}
\renewcommand*\familydefault{\sfdefault}
\floatstyle{boxed}
\restylefloat{figure}

\newlength{\drop}
\newcommand*{\titleGM}{%
\thispagestyle{empty}
\begingroup
  \drop=0.1\textheight
  \vspace*{\baselineskip}
  \vfill
  \hbox{% 
    \hspace*{0.2\textwidth}%
    \rule{1pt}{\dimexpr\textheight-28pt\relax} % Vertical line
    \hspace*{0.05\textwidth}%
    \parbox[b]{0.75\textwidth}{%
      \vbox{%
        \vspace{\drop}
    {\noindent\HUGE\bfseries Growing The\\[0.5\baselineskip]Money Tree}\\[2    \baselineskip]
    {\Large\itshape Cultivating Financial Freedom One Leaf At A Time}\\[.37    \baselineskip] 
        {\Large\rmfamily\textsc{John Svazic}}\par 
        \vspace{0.47\textheight}
        \noindent ARM Trading Press
        \vspace*{\baselineskip}
      }% end of vbox
    }%
    }
\endgroup}

\begin{document}

\titleGM
\linespread{1.2}
\frontmatter
\mainmatter
It was a dark and stormy night...
\backmatter
\end{document}

在此处输入图片描述

相关内容