Skip to content

Automatic column width is affected by usage of glossaries #635

Closed

Description

@jiedxu

Thanks for the nice package. I recently noticed the sizing of columns is affected by commands like \gls in glossaries. It seems to follow the width of the full name:

Image

When I just write KWKG, the space is correctly defined:

Image

Is that the case? I need a way to disable that. Do you need some reproducible code?

Activity

  1. Explorer-cc commented on Mar 4, 2026

    @Explorer-cc

    I need a way to disable that. Do you need some reproducible code?

    Of course, without which that is impossible for others to try and test, please provide a minimal testing code.

  2. jiedxu commented on Mar 8, 2026

    @jiedxu
    Author

    👌

    \documentclass{article}
    \usepackage[utf8]{inputenc}
    \usepackage{glossaries}
    
    \usepackage{tabularray}
    \UseTblrLibrary{booktabs}
    
    \makeglossaries
    
    \newacronym{ENTSO-E}{ENTSO-E}{European Network of Transmission System Operators for Electricity}
    
    \title{How to create a glossary}
    \author{ }
    \date{ }
    
    \begin{document}
    \maketitle
    
    \begin{table*}[!ht]
      \centering
      \begin{tblr}{
          colspec={ll},
          width=\textwidth
        }
        \toprule
        Name & Description \\
        test & \gls{ENTSO-E} \\
        \bottomrule
      \end{tblr}
      \label{tab:Data}
    \end{table*}
    
    \clearpage
    
    \printglossaries
    
    \end{document}
    Image
  3. jiedxu commented on Mar 8, 2026

    @jiedxu
    Author

    It's more like the expanded the glossary entry is not displayed correctly, so the issue is not what I said in the issue title.

    glossaries will expand the same entry in the first appearance, so:

    Image
    \documentclass{article}
    \usepackage[utf8]{inputenc}
    \usepackage{glossaries}
    
    \usepackage{tabularray}
    \UseTblrLibrary{booktabs}
    
    \makeglossaries
    
    \newacronym{ENTSO-E}{ENTSO-E}{European Network of Transmission System Operators for Electricity}
    
    \title{How to create a glossary}
    \author{ }
    \date{ }
    
    \begin{document}
    \maketitle
    
    % The first appearance will be expanded to include the full name.
    \gls{ENTSO-E}
    
    \begin{table*}[!ht]
      \centering
      \begin{tblr}{
          colspec={ll},
          width=\textwidth
        }
        \toprule
        Name & Description \\
        test & \gls{ENTSO-E} \\
        \bottomrule
      \end{tblr}
      \label{tab:Data}
    \end{table*}
    
    \clearpage
    
    \printglossaries
    
    \end{document}
  4. self-assigned this
    on Apr 29, 2026
  5. linked a pull request that will close this issueFinalize the 2026A sources #657on May 13, 2026
  6. added this to the 2026A milestone on May 13, 2026
  7. added
    Fixed in devThe raised concern is addressed in the dev branch, awaiting release.
    on May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Fixed in devThe raised concern is addressed in the dev branch, awaiting release.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions