thesisuestc
thesisuestc copied to clipboard
缩略词表在overleaf上编译后,列宽不符合模板要求了,请问如何更改呢
编译后;
模板:

https://github.com/bdebye/thesisuestc/blob/2320c99d64b0ca6f2f47e69183a66e6dfb67eac9/thesis-uestc.cls#L548-L564
主要是下面这一行 https://github.com/bdebye/thesisuestc/blob/2320c99d64b0ca6f2f47e69183a66e6dfb67eac9/thesis-uestc.cls#L552
我修改了列宽,使得第二列略宽,为什么缩略词不能左对齐
\newglossarystyle{uestc-chinese}{
\setlength{\glsdescwidth}{.5\textwidth}
\setlength{\glspagelistwidth}{.4\textwidth}
\renewenvironment{theglossary}%
{\begin{longtable}{p{0.1\textwidth}p{\glsdescwidth}p{\glspagelistwidth}}}%
{\end{longtable}}%
\renewcommand*{\glossaryheader}{%
\heiti 缩略词 &\heiti 英文全称 &
\heiti 中文全称 \tabularnewline\endhead}%
\renewcommand*{\glsgroupheading}[1]{}%
\renewcommand{\glossentry}[2]{
\glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}} &
\glsentrylong{##1} & \glsentrydesc{##1}\tabularnewline
}
\renewcommand*{\subglossentry}[3]{
\glossentry{##2}{##3}}
}
我修改了列宽,使得第二列略宽,为什么缩略词不能左对齐
这是你的认知错误,修改列宽跟对齐没有因果关系。即使不修改,也没有做到你所说的对齐。
如果要去掉多出来的空格,需要修改 https://github.com/bdebye/thesisuestc/blob/6a86fcf7db2825adc8089d10e1d6776fba729a86/thesis-uestc.cls#L558-L561 将其改为
\renewcommand{\glossentry}[2]{%