1

I'm using the glossaries package to generate a list of acronyms. I've changed the title of the page to List of Abbreviations, but this is appearing at the top center of the page, and its a little too small for my liking. How can I change this? I'd like it to be left aligned, like how the title appears for the List of Tables page.

MWE:

\documentclass{report}
\usepackage{times}
\usepackage{scalefnt} %Font size
\usepackage[top=1.0in,bottom=0.75in,left=1.25in,right=1in]{geometry} %Margins
\usepackage[onehalfspacing]{setspace} % setting the spacing between lines
\usepackage{amsmath} %For math environment
\usepackage{graphicx} % For inserting pictures
\usepackage[font={large}]{caption} % Captions
\usepackage{float}
\usepackage{fancyhdr} %Header and footer
\usepackage{subcaption} % for placing figures parallely
\usepackage[colorlinks=true,urlcolor=back,citecolor = black]{hyperref} %Creating links within the document
\usepackage{tikz}
\usepackage{tikzpagenodes}
\usepackage{afterpage}
\usepackage{chngcntr}
\usepackage{tocloft}
\usepackage{etoolbox}
\usepackage{titlesec}
\usepackage[framed,numbered,autolinebreaks,useliterate]{mcode}
\usepackage{listings}
\usepackage{longtable}
\usepackage[acronym]{glossaries}
\usepackage[toc,page]{appendix}
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathmorphing}

\renewcommand{\cftfigfont}{Figure \hspace{2mm}}   

\renewcommand*{\glossaryname}{List of Abbreviations}
\renewcommand*{\glspostdescription}{}
\renewcommand*{\glossaryentrynumbers}[1]{}


\newlength{\mylenf}
\settowidth{\mylenf}{\cftfigpresnum}
\setlength{\cftfignumwidth}{\dimexpr\mylenf+2.0em}

\titleformat{\chapter}[display]
{\normalfont\LARGE\bfseries}{\filright\chaptertitlename\ \thechapter}
{20pt}{\LARGE\filcenter}

\titlespacing*{\chapter}{0pt}{-30pt}{40pt}

\patchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{fancy}}{}{}

 \makeglossaries
 \newacronym{irs}{IRS}{Internal Revenue Service}
 \newacronym{un}{UN}{United Nations}

\begin{document}

\clearpage
\addcontentsline{toc}{chapter}{List of Tables}
\cleardoublepage
\phantomsection
\listoftables\thispagestyle{fancy}
\hypersetup{linkcolor=black}
\addtocontents{lot}{~\hfill\textbf{Pg.No}\par} 
\clearpage
\addcontentsline{toc}{chapter}{List of Abbreviations}
\cleardoublepage
\phantomsection
\pagenumbering{roman}
\setcounter{page}{10}
\printglossary[type = acronym,title= List of Abbreviations]

\clearpage
\gls{irs} and \gls{un} are acronyms.
\end{document}

What I'm getting What I want

Marco Daniel
  • 95,681

0 Answers0