I'm using the glossaries package, and when I issue \printglossaries:


the glossary is waaaaaay too wide:


My package options are




right before the \printglossaries is promptly ignored, and I couldn't find any option in the glossaries documentation to influence the width.

When I use twoside as a scrreprt option, the effect is much more pronounced.

Any ideas why this might happen or how I would fix it?

  • 1
    Please provide a full minimal example. – Marco Daniel Aug 10 '11 at 10:36
  • 2
    We'd like to keep answers separate from questions, so you should write a separate answer instead of editing your answer into the question. Self-answers are perfectly admissible, and a well-written answer may earn you additional reputation. – lockstep Nov 10 '11 at 0:45

[OPs answer moved from the question]

Just adjusting \glsdescwidth doesn't help, because you will have to readjust when your longest entry changes. So use a custom glossaries style instead:


% put the glossary in the longtable environment:
{p{\glstargetwidth} @{\hspace{\glshspace}}  p{\glsdescwidth}}}%
% have nothing after \begin{theglossary}:
% have nothing between glossary groups:
% set how each entry should appear:
\raggedright\strong{\glstarget{##1}{##2}}% the entry name
##4% the symbol 
&##3,% the description
\space ##5% the number list 
% set how sub-entries appear:


This will fix the width of your entry column, breaking the entry names when necesary.


From the glossaries user guide (texdoc glossaries-user.pdf), p82:

The tabular-like styles that allow multi-line descriptions and page lists use the length \glsdescwidth to set the width of the description column and the length \glspagelistwidth to set the width of the page list column. These will need to be changed using \setlength if the glossary is too wide.

  • Thanks a bunch! I was looking at that section specifically, but never saw that... PDF documentation for programming sucks. – Hauke Rehfeld Aug 11 '11 at 11:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.