[Tex/LaTex] Horizontal alignment of multiple glossaries

acronymsglossarieshorizontal alignment

I utilize the glossariespackage with acronym option as well as an self-defined symbols list. Unfortunately, each glossary aligns different horizontally. Is it possible to make them aligned? Otherwise, it looks distracting to me.

vertical glossaries alignment

Code:

  \documentclass[8pt]{scrartcl}

  % LuaLaTeX
  \usepackage{luatextra}

  \usepackage[xindy,style=long,numberline,savewrites=true,acronym,nomain]{glossaries}
  % new group for symbols
  \newglossary[slg]{symbolslist}{syi}{syg}{Symbols}
  \makeglossaries

  % SYMBOLS:
  \newglossaryentry{sy:te}{name=$\text{T}_\text{E}$, description={echo time}, sort=sy-echotime, type=symbolslist}
  \newglossaryentry{sy:tr}{name=$\text{T}_\text{R}$, description={repetition time}, sort=sy-repetitiontime, type=symbolslist}
  % ACRONYMS:
  \newacronym{adc}{ADC}{anlog-to-digital converter}
  \newacronym{peg}{PEG}{polyethylene glycol}

  \begin{document}
  \printglossaries
  Text Text  Text Text Text Text Text Text
   Text Text Text Text Text Text Text Text.
  .... \gls{peg} .... \gls{adc}
  .... \gls{sy:tr} .... \gls{sy:te}

  \end{document}

Best Answer

I suggest you use the alttree style instead of long and set the width of the name field using \glssetwidest:

\usepackage[xindy,style=alttree,numberline,savewrites=true,acronym,nomain]{glossaries}
\glssetwidest{ADC}% widest name
\renewcommand*{\glsnamefont}[1]{\textmd{#1}}
Related Question