Left-aligned, rather than centered list of symbols

horizontal alignmentsymbols

By default, my list of symbols is centered:

enter image description here

How do I make it left-aligned, just like my above list of figures? Here is what I use in the preambule:

\usepackage[symbols,nogroupskip,sort=use]{glossaries-extra}

\makenoidxglossaries
\glsxtrnewsymbol[description={Cumulative distribution function attached to the point process}]{F(x)}{\ensuremath{F(x)}}  
\glsxtrnewsymbol[description={Same as $F(x/s)$}]{F_s(x)}{\ensuremath{F_s(x)}}  
\glsxtrnewsymbol[description={Density attached to $F$}]{f(x)}{\ensuremath{f(x)}}
\glsxtrnewsymbol[description={Density attached to $f_s$}]{f_s(x)}{\ensuremath{f_s(x)}}

And in the main document:

\listoffigures
\hypersetup{linkcolor=red}
\printnoidxglossary[type=symbols,style=long,title={List of Symbols}]  % list of symbols

Best Answer

Since the long style is based on longtable, you automatically end up with a horizontally centered list. To nevertheless left align it, you can define your own custom style based on the original definition of the long style:

\newglossarystyle{mylong}{%
  \renewenvironment{theglossary}%
     {\begin{longtable}[l]{@{}lp{\glsdescwidth}}}%     %<-------------- added [l] and @{} here
     {\end{longtable}}%
  \renewcommand*{\glossaryheader}{}%
  \renewcommand*{\glsgroupheading}[1]{}%
  \renewcommand{\glossentry}[2]{%
    \glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}} &
    \glossentrydesc{##1}\glspostdescription\space ##2\tabularnewline
  }%
  \renewcommand{\subglossentry}[3]{%
     &
     \glssubentryitem{##2}%
     \glstarget{##2}{\strut}\glossentrydesc{##2}\glspostdescription\space
     ##3\tabularnewline
  }%
  \ifglsnogroupskip
    \renewcommand*{\glsgroupskip}{}%
  \else
    \renewcommand*{\glsgroupskip}{ & \tabularnewline}%
  \fi
}
Related Question