如何让词汇表样式更宽

如何让词汇表样式更宽

我使用词汇表样式“super”如下:

\usepackage[nopostdot,  style=super, nonumberlist]{glossaries} 

\newglossaryentry{latex}
{
    name=latex,
    description={Is a markup language specially suited 
    for scientific documents, Is a markup language specially suited 
    for scientific documents}
}

我得到了这个结果:

截屏

我想删除右侧的空白,使描述更宽,但我不知道如何修改。我想我可以创建一个新的样式,但我希望它像“超级”样式,但更宽。

答案1

设置使用的宽度supertabular

\setlength{\glsdescwidth}{<length>}

默认 =0.6\hsize

(因此\setlength{\glsdescwidth}{\hsize}相当于

\usepackage[nopostdot, nosuper, nonumberlist]{glossaries}

使用\setlength{\glsdescwidth}{0.75\hsize}

d

这是完整的代码。编译为pdflatex++makeglossariespdflatex

\documentclass{article}

\usepackage[nopostdot,  style=super, nonumberlist]{glossaries}  

\setlength{\glsdescwidth}{0.75\hsize}% added <<<<<<<<<<

\usepackage{showframe}% only to show the margins

\makeglossaries

\newglossaryentry{shopfloor}
{
    name=shop floor,
    description={The part of a workshop or factory where production as distinct from administrative work is carried out}
}

\newglossaryentry{latex}
{
    name=latex,
    description={Is a markup language specially suited 
        for scientific documents. Is a markup language specially suited 
        for scientific documents}
}

\begin{document}
    
    \gls{shopfloor}  
    
    \gls{latex}
            
    \printglossaries        
    
\end{document}

相关内容