I would like to place a victorian ornament (pgfornament 80) below List of Algorithms, References, and Index, all centered and capitalized.
Below is my minimal working example (MWE), but the ornament is frustratingly misplaced. Please help.
\documentclass[a4paper,12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage{algorithm2e}
\usepackage[object=vectorian]{pgfornament}
\usepackage{imakeidx}
\makeindex
\title{Question}
\author{Author}
\date{August 2021}
\begin{document}
\maketitle
\tableofcontents
\clearpage
\addcontentsline{toc}{chapter}{LIST OF ALGORITHMS}
%\centering {\rule{\textwidth}{1pt} \vspace{-1.5cm}}
\renewcommand{\listalgorithmcfname}{\hfill LIST OF ALGORITHMS \hfill}
\begin{center}
\pgfornament[width=4cm]{80}
\end{center}
{%
\let\oldnumberline\numberline%
\renewcommand{\numberline}{\algorithmcfname~\oldnumberline}%
\listofalgorithms
}
\newpage
\chapter{Introduction}
\lipsum[1] \
\begin{algorithm}[H]
\SetAlgoLined
\KwData{this text}
\KwResult{how to write algorithm with \LaTeX2e }
initialization;
\While{not at end of this document}{
read current;
\eIf{understand}{
go to next section;
current section becomes this one;
}{
go back to the beginning of current section;
}
}
\caption{How to write algorithms}
\end{algorithm}
\section{BibTex}
This document is an example of BibTeX using in bibliography management. Three items
are cited: \textit{The \LaTeX\ Companion} book \cite{latexcompanion}, the Einstein
journal paper \cite{einstein}, and the Donald Knuth's website \cite{knuthwebsite}.
The \LaTeX\ related items are \cite{latexcompanion,knuthwebsite}.
\index{Einstein}
\medskip
\renewcommand{\bibname}{ REFERENCES }
\bibliographystyle{unsrt}
\bibliography{ref}
\printindex
\end{document}
\chapter*{INDICES} \addcontentsline{toc}{chapter}{INDICES} \begin{center} \color{black} \pgfornament[width=4cm]{80} \end{center} \printindex– Sam Macharia Aug 11 '21 at 00:33