Following is my MWE of my thesis, using to create a LIST OF ACRONYMS.
\documentclass{article}
\usepackage{acro}
\usepackage{mfirstuc}
\acsetup{
index = false,
list-long-format = \makefirstuc ,
list-name={LIST OF ACRONYMS},
list-style = lof , %because I want the list to be similar as LOF
list-heading = lof,
extra-style = comma,
list-short-width =6em
}
\DeclareAcronym{DBSCAN}{
short = DBSCAN ,
long = Density-Based Spatial Clustering of Applications with Noise ,
short-plural ={s} ,
long-plural = {s},
class = general ,
short-format = \scshape ,
index = DBSCAN
}
\begin{document}
\ac{DBSCAN}
\printacronyms[sort=true]
\end{document}
I am getting the following output
What I want is, to underline the heading of LIST OF ACRONYMS just like the following
Moreover, how could I get the same font as LIST OF FIGURES. Any help would be highly appreciated.
Below is the code, I believe, would have been used to generate LOF including some of the other code in the preamble.
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing*{\chapter}{0pt}{0pt}{30pt}
\setlength\cftbeforechapskip{10pt}
\renewcommand\cftfigafterpnum{\vskip8pt\par}
\renewcommand\cfttabafterpnum{\vskip8pt\par}
\renewcommand\cftchapafterpnum{\vskip8pt}
\renewcommand\cftsecafterpnum{\vskip8pt}
\makeatletter
\pretocmd{\chapter}{\addtocontents{toc}{\protect\addvspace{15\p@}}}{}{}
\pretocmd{\section}{\addtocontents{toc}{\protect\addvspace{15\p@}}}{}{}
\makeatother
\makeatletter
\def\BState{\State\hskip-\ALG@thistlm}
\newenvironment{figurehere}{\def\@captype{figure}}{}
\makeatother
\renewcommand\cftchapfont{\textbf\normalfont}
\renewcommand\cftchappagefont{{\normalfont}}
\AtBeginDocument{\renewcommand\contentsname{TABLE OF CONTENTS}}
\AtBeginDocument{\renewcommand\contentsname{\leftline{LIST OF FIGURES}}}
\titleformat{\chapter}[display]
{\bfseries\Large}
{\vspace{0.005cm}\centering \Large\bfseries{Chapter \thechapter}}
{1ex}
{\bfseries\Large\centering}
\begin{document}
\pagestyle{fancy}
\fancyhf{}
\rhead{\textbf{\textit{Annex M1}}}
\lhead{}
\rfoot{ \thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[OR]{\thepage}
\fancyfoot[EL]{\thepage}
\renewcommand{\headrulewidth}{0pt}
}
\tableofcontents
\include{tables}
\include{figures}
\addcontentsline{toc}{chapter}{List of Acronyms}
\setlength\cftparskip{-2pt}
\setlength\cftbeforechapskip{0pt}
\printacronyms[sort=true]
\clearpage
\end{document}
article
, your second code block sets the style of the\chapter
headings. Which class are you actually using?