1

I'm using the glossaries package with listgroup style. I just need the glossary group headings (A, B .. ) centered. Thanks for your help!

1
  • 1
    Welcome! Rather hard to help without an example. Not, perhaps, impossible, but certainly much more difficult. Please make a small example document (minimal example) which we can compile to reproduce your situation and (hopefully) use to illustrate possible solutions.
    – cfr
    Nov 7, 2015 at 1:48

1 Answer 1

2

You would be far better advised to pick a different style if you want centred headings. This will almost certainly not work correctly.

centred

\documentclass{article}
\usepackage[style=listgroup]{glossaries}
\renewcommand*{\glsgroupheading}[1]{\item[]\makebox[\linewidth]{\glsgetgrouptitle{#1}}}
\makeglossary
\newglossaryentry{aa}{%
  name = aa,
  description = {AA aa}}
\newglossaryentry{bb}{%
  name = bb,
  description = {BB bb}}
\begin{document}
  \gls{aa} \gls{bb}
  \printglossary
\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .