使用 verse 包更改回忆录中的 \beforepoemtitleskip

使用 verse 包更改回忆录中的 \beforepoemtitleskip

我想增加我正在设置的诗集标题前的垂直空间,但\setlength{\beforepoemtitleskip}和之间似乎存在冲突\setlrmarginsandblock

\documentclass[ebook]{memoir}

\begin{filecontents}{memory.tex}
\poemtitle{memory poem}
\settowidth{\versewidth}{the pearly silver shell}

\begin{verse}[\versewidth]
I want a poem to kiss me\\
deep inside\\
the pearly silver shell\\
of soul\\
\end{verse}

\begin{verse}[\versewidth]
erase my nightmares\\
turn them into\\
delinquent good deeds\\
\end{verse}
\end{filecontents}
\usepackage[utf8]{inputenc}
\usepackage{atbegshi}
\usepackage{zref-abspage}
\usepackage{lipsum}
\usepackage{ccicons}
\usepackage{graphicx}
\usepackage{verse}

\chapterstyle{dash}


\setlrmarginsandblock{*}{0.75in}{*}
\setulmarginsandblock{0.75in}{0.75in}{*}
\checkandfixthelayout
\setlength{\evensidemargin}{\oddsidemargin}

\setlength{\beforepoemtitleskip}{2.0in}

\begin{document}

\pagestyle{plain}
\aliaspagestyle{part}{empty}

\mainmatter

\book*{\textsc{I Want A Poem}}

\include{memory}

\end{document}

答案1

这是一个解决方法。

代替

\setlength{\beforepoemtitleskip}{2.0in}

\let\oldpoemtitle\poemtitle
\renewcommand{\poemtitle}{\vspace*{2.0in}\oldpoemtitle}

因此要重新定义其前面\poemtitle2.0in空间。

\vspace即使页面上没有文本,带星号的版本也能确保间距。

完整代码:

\documentclass[ebook]{memoir}

\begin{filecontents}{memory.tex}
\poemtitle{memory poem}
\settowidth{\versewidth}{the pearly silver shell}

\begin{verse}[\versewidth]
I want a poem to kiss me\\
deep inside\\
the pearly silver shell\\
of soul\\
\end{verse}

\begin{verse}[\versewidth]
erase my nightmares\\
turn them into\\
delinquent good deeds\\
\end{verse}
\end{filecontents}
\usepackage[utf8]{inputenc}
\usepackage{atbegshi}
\usepackage{zref-abspage}
\usepackage{lipsum}
\usepackage{ccicons}
\usepackage{graphicx}
\usepackage{verse}

\chapterstyle{dash}


\setlrmarginsandblock{*}{0.75in}{*}
\setulmarginsandblock{0.75in}{0.75in}{*}
\checkandfixthelayout
\setlength{\evensidemargin}{\oddsidemargin}

\let\oldpoemtitle\poemtitle
\renewcommand{\poemtitle}{\vspace*{2.0in}\oldpoemtitle}

\begin{document}

\pagestyle{plain}
\aliaspagestyle{part}{empty}

\mainmatter

\book*{\textsc{I Want A Poem}}

\include{memory}


\end{document} 

输出:

在此处输入图片描述

相关内容