我在回忆录中使用自定义章节样式,标题下方有一个装饰花饰。我想减少章节标题和装饰之间的间距,以便装饰出现在章节标题下方:
我非常确定我需要做的一切都将放在 makechapterstyle 代码中,在行中\renewcommand\afterchaptertitle
,到目前为止,我已尝试使用进行调整vskip
,midchapskip
但afterchapskip
无济于事。有什么想法吗?
\documentclass[oneside,english,oldfontcommands]{memoir}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\makeatletter
\@ifundefined{date}{}{\date{}}
\usepackage{pgfornament}
\usepackage{lipsum}
\setsecnumdepth{none}
\maxsecnumdepth{none}
\makechapterstyle{custom}
{\renewcommand\chapternamenum{}
\renewcommand\printchaptername{}
\renewcommand\chaptitlefont{\fontsize{18}{18}\scshape\centering}
\renewcommand\afterchaptertitle{%
\begin{center}
\pgfornament[scale=0.25]{88}
\end{center}
}
}
\chapterstyle{custom}
\makeatother
\usepackage{babel}
\begin{document}
\chapter{Introduction}
\lipsum[1-3]
\end{document}
答案1
环境center
总是在其周围添加垂直空间。
以下用于\raisebox
微调。
\documentclass[oneside,english,oldfontcommands]{memoir}
\usepackage[T1]{fontenc}
\usepackage{mwepage}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\makeatletter
\@ifundefined{date}{}{\date{}}
\usepackage{pgfornament}
\usepackage{lipsum}
\usepackage{lmodern}% added
\setsecnumdepth{none}
\maxsecnumdepth{none}
\makechapterstyle{kitty}
{\renewcommand\chapternamenum{}
\renewcommand\printchaptername{}
\renewcommand\chaptitlefont{\fontsize{18pt}{18pt}\scshape\centering}
\renewcommand\afterchaptertitle{%
\par\centering%
\raisebox{.1ex}{\pgfornament[scale=0.35]{88}}\par\nobreak\vspace{2ex}
}
}
\chapterstyle{kitty}
\makeatother
\usepackage{babel}
\begin{document}
\chapter{Introduction}
\lipsum[1-3]
\end{document}\documentclass[oneside,english,oldfontcommands]{memoir}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\makeatletter
\@ifundefined{date}{}{\date{}}
\usepackage{pgfornament}
\usepackage{lipsum}
\setsecnumdepth{none}
\maxsecnumdepth{none}
\makechapterstyle{custom}
{\renewcommand\chapternamenum{}
\renewcommand\printchaptername{}
\renewcommand\chaptitlefont{\fontsize{18}{18}\scshape\centering}
\renewcommand\afterchaptertitle{%
\begin{center}
\pgfornament[scale=0.25]{88}
\end{center}
}
}
\chapterstyle{custom}
\makeatother
\usepackage{babel}
\begin{document}
\chapter{Introduction}
\lipsum[1-3]
\end{document}