5

I'm using a custom chapterstyle in memoir, with a pgfornament flourish below the title. I would like to reduce the spacing between the chapter title and the ornamentation, so that the ornament appears just below the chapter title:

enter image description here

I'm pretty sure that whatever I need to do will go in the makechapterstyle code, in the line \renewcommand\afterchaptertitle, and so far have attempted to adjust using vskip, midchapskip and afterchapskip to no avail. Any ideas?

    \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}
  • I think You have to use \midchapskip and \afterchapskip along with `\setlength'. I haven't been able to get anything to work thoug. You can take a look at tex.stackexchange.com/questions/359972/… – Thorbjørn E. K. Christensen Feb 25 '18 at 6:41
  • the center environment adds vertical space above the ornament and below it. I guess you want {\centering\pgfornament{...}} – Johannes_B Feb 25 '18 at 8:59
1

A center environment always adds vertical space around itself.

The following uses \raisebox for finetuning.

kittyMemoirChapterstyle

\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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.