有没有更优雅的方式将题词保留在章节页面的底部(没有内容文本)?
我可以简单地更新/更改,\beforeepigraphskip
但当题词有更多行时,这会给我带来问题。我试图避免使用额外的包,因为memoir
已经包含了很多。
我确实尝试过这个问题,但解决方案不起作用,也许我只是\vfill
在错误的位置添加了。很难说,因为 OP 没有包含完整的 MWE...
梅威瑟:
\documentclass[openleft]{memoir}
\usepackage[]{csquotes}
\usepackage{lipsum}
\setlength{\epigraphwidth}{0.7\textwidth}
\setlength{\epigraphrule}{0pt}
\setlength{\beforeepigraphskip}{32\baselineskip}
\setlength{\afterepigraphskip}{3\baselineskip}
%
\makechapterstyle{mykoma}{
\renewcommand*{\chapterheadstart}{\vspace{\beforechapskip}}
\setlength{\beforechapskip}{2\onelineskip}%
\setlength{\afterchapskip}{1.5\onelineskip}%
\renewcommand*{\printchaptername}{ }%
\renewcommand*{\chapternamenum}{}%
\renewcommand*{\chapnumfont}{\fontfamily{phv}\selectfont\bfseries\normalsize}%
\renewcommand*{\printchapternum}{\chapnumfont \thechapter\space}%
\renewcommand*{\afterchapternum}{}%
\renewcommand*{\chaptitlefont}{\fontfamily{phv}\selectfont\bfseries\normalsize}
\renewcommand*{\afterchaptertitle}{\par \vspace{2ex}\rule{\columnwidth}{0.35cm}}
}
\begin{document}
\chapterstyle{mykoma}
\chapter{Revisão Bibliográfica} \label{cha:revisao}
\vspace*{-8ex}
\epigraph{\blockquote{Someone said something really worth repeating.}}%
{Not me, 1787, etc. }
\lipsum[1-3]
\end{document}
答案1
您可以重新定义工作方式\epigraph
,插入适合您需要的适当间距/内容:
\makeatletter
\renewcommand{\epigraph}[2]{\par\vfill%\vspace{\beforeepigraphskip}
{\epigraphsize\begin{\epigraphflush}\begin{minipage}{\epigraphwidth}
\@epitext{#1}\\ \@episource{#2}
\end{minipage}\end{\epigraphflush}
\pagebreak%\vspace{\afterepigraphskip}%
}}
\makeatother
这将替换\vspace{\beforeepigraphskip}
为\par\vfill
(将题词向下推)和\vspace{\afterepigraphskip}
。\pagebreak
由于memoir
自然地使用 设置其内容\flushbottom
,\pagebreak
将确保上方空间得到充分延伸,以便在页面底部放置题词。
\epigraph
或者,保留原始定义并插入一个钩子,以便在之后使用以下命令分页0pt
\afterepigraphskip
:
\setlength{\beforeepigraphskip}{\fill}
\setlength{\afterepigraphskip}{0pt}
\AddToHook{cmd/epigraph/after}{\pagebreak}
以下是使用后一种方法的完整最小示例:
\documentclass[openleft]{memoir}
\usepackage[]{csquotes}
\usepackage{lipsum}
\setlength{\epigraphwidth}{0.7\textwidth}
\setlength{\epigraphrule}{0pt}
\setlength{\beforeepigraphskip}{\fill}
\setlength{\afterepigraphskip}{0pt}
%
\makechapterstyle{mykoma}{%
\renewcommand*{\chapterheadstart}{\vspace{\beforechapskip}}
\setlength{\beforechapskip}{2\onelineskip}%
\setlength{\afterchapskip}{1.5\onelineskip}%
\renewcommand*{\printchaptername}{ }%
\renewcommand*{\chapternamenum}{}%
\renewcommand*{\chapnumfont}{\fontfamily{phv}\selectfont\bfseries\normalsize}%
\renewcommand*{\printchapternum}{\chapnumfont \thechapter\space}%
\renewcommand*{\afterchapternum}{}%
\renewcommand*{\chaptitlefont}{\fontfamily{phv}\selectfont\bfseries\normalsize}
\renewcommand*{\afterchaptertitle}{\par \vspace{2ex}\rule{\columnwidth}{0.35cm}}
}
\AddToHook{cmd/epigraph/after}{\pagebreak}
\begin{document}
\chapterstyle{mykoma}%
\chapter{Revisão Bibliográfica} \label{cha:revisao}
\vspace*{-8ex}
\epigraph{%
\blockquote{Someone said something really worth repeating.}}%
{Not me, 1787, etc. }
\lipsum[1-3]
\end{document}