词汇表中多余空格

词汇表中多余空格

我目前正在写论文,我使用了词汇表包来列出我的首字母缩略词列表,但我没有得到我想要的结果,每个首字母缩略词之间都有空格,这是我不想要的,我是这个包的新手,对它了解有限,你能帮我减少空格吗?这是我使用的乳胶代码:

\documentclass{report}

\usepackage{graphicx}
\usepackage[colorlinks]{hyperref}
 \usepackage[savewrites,nopostdot,toc,acronym,symbols]{glossaries}
\usepackage{glossary-mcols}
\usepackage{glossary-longragged}


\newacronym{CICS}{CICS}{Customer Information Control System}
\newacronym{EHDM}{EHDM}{Enhanced Hierarchical Development Methodology}
\newacronym{ASF}{ASF}{Algebraic Specification Formalism}
\newacronym{ProCos}{ProCos}{Provably Correct Systems}
\newacronym{HOL}{HOL}{Higher Order Logic}
\newacronym{LOTOS}{LOTOS}{Language Of Temporal Ordering Specification}
\newacronym{CCS}{CCS}{Calculus of Communicating Systems}
\newacronym{CSP}{CSP}{Communicating Sequential Processes}
\newacronym{RAISE}{RAISE}{Rigorous Approach to Industrial Software Engineering}
\newacronym{VDM}{VDM}{Vienna Development Method }
\makeglossaries
\begin{document}
\tableofcontents
\chapter{Sample}
This is a sample document that uses the dummy glossary entries
 supplied with the glossaries bundle for testing.
\gls{ASF} \gls{CICS}
 Here are all the entries (including acronyms):

\gls{ASF} \gls{CICS} \gls{CSP} \gls{ProCos}
\gls{VDM} \gls{RAISE} \gls{CCS} \gls{ASF}
\gls{HOL} \gls{EHDM}
 \printglossary[type=acronym,style=super]

 \end{document} 

和我的输出结果

在此处输入图片描述

请你帮助我好吗 ?

答案1

正如@Piet van Oostrum 评论的那样,解决方案是使用nogroupskip中的选项\usepackage{glossaries}

这是我的 MWE

\documentclass{report}

\usepackage{graphicx}
\usepackage[colorlinks]{hyperref}
\usepackage[savewrites,nopostdot,toc,acronym,symbols,nogroupskip]{glossaries}
%\usepackage{glossary-mcols}
%\usepackage{glossary-longragged}  These are redundant
\makeglossaries % it's better practice to have this before the acronyms and gls definitions

\newacronym{CICS}{CICS}{Customer Information Control System}
\newacronym{EHDM}{EHDM}{Enhanced Hierarchical Development Methodology}
\newacronym{ASF}{ASF}{Algebraic Specification Formalism}
\newacronym{ProCos}{ProCos}{Provably Correct Systems}
\newacronym{HOL}{HOL}{Higher Order Logic}
\newacronym{LOTOS}{LOTOS}{Language Of Temporal Ordering Specification}
\newacronym{CCS}{CCS}{Calculus of Communicating Systems}
\newacronym{CSP}{CSP}{Communicating Sequential Processes}
\newacronym{RAISE}{RAISE}{Rigorous Approach to Industrial Software Engineering}
\newacronym{VDM}{VDM}{Vienna Development Method }

\begin{document}
    \tableofcontents
    \chapter{Sample}
    This is a sample document that uses the dummy glossary entries
    supplied with the glossaries bundle for testing.
    \gls{ASF} \gls{CICS}
    Here are all the entries (including acronyms):

    \gls{ASF} \gls{CICS} \gls{CSP} \gls{ProCos}
    \gls{VDM} \gls{RAISE} \gls{CCS} \gls{ASF}
    \gls{HOL} \gls{EHDM}
    \printglossary[type=acronym,style=super]

\end{document} 

注意我注释掉了\usepackage{glossary-mcols}\usepackage{glossary-longragged}。此外,我移到\makeglossaries了 首字母缩略词(和词汇表)定义之前

相关内容