Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加缩略词导致缩写前空格消失 #154

Closed
yanghaoxie opened this issue Mar 24, 2021 · 3 comments
Closed

添加缩略词导致缩写前空格消失 #154

yanghaoxie opened this issue Mar 24, 2021 · 3 comments

Comments

@yanghaoxie
Copy link

使用\makeglossaries及\thesisglossarylist添加缩略词表之后,发现缩写之前与中文的空格消失,如下图第三行所以。如果不添加别两个命令的话,前面的空格不消失。
space-between-acronyms

WME如下:

\documentclass[doctor]{thesis-uestc}


\makeglossaries
\newacronym[description=随机优化]{so}{SO}{Stochastic Optimization}

\begin{document}

\thesisglossarylist


 我喜欢\gls{so}方法

 我喜欢\gls{so}方法

 我喜欢SO方法
 
\end{document}
@sikouhjw
Copy link
Contributor

老 bug 了,CTeX-org/ctex-kit#392

结论是:手动添加空格

@yanghaoxie
Copy link
Author

老 bug 了,CTeX-org/ctex-kit#392

结论是:手动添加空格

非常感谢你的如此高时效的回复。:smile:

@yanghaoxie
Copy link
Author

yanghaoxie commented Mar 24, 2021

想到了一个workaround,不知你觉得这样好吗?
我发现只有使用了宏\makeglossaries才会出现这种现象,于是可以用模板中介绍的不使用\makeglossaries来生成缩略词表,即

若想在缩略词表中列出所有定义过的条目,无论在正文中是否引用,可以在\thesisglossarylist之前使用\glsaddall命令。

WME如下,

\documentclass[doctor]{thesis-uestc}


% \makeglossaries
\newacronym[description=随机优化]{so}{SO}{Stochastic Optimization}

\begin{document}

\glsaddall
\thesisglossarylist


\thesischapterexordium

 我喜欢\gls{so}方法

 我喜欢\gls{so}方法
 
\end{document}

UPDATE:

前面一个WME似乎有点问题。具体发现如下

  1. 似乎,使用\makeglossaries会生成一些,生成缩略词表必须的文件,例如*.gls* *.glo*等文件,所以,如果在没有这些文件无法生成缩略词表。
  2. workaround:先编译有\makeglossaries命令的文件,生成所需的*.gls* *.glo*等文件,然后注释掉\makeglossaries,再次编译,发现 既有缩略词表,正文缩略词前后空格都保留了
  3. 并不需要使用\glsaddall,前面的WME是错误的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants