影响 KOMA-Script 中 Acro 包的标签环境中的垂直空间

影响 KOMA-Script 中 Acro 包的标签环境中的垂直空间

我正在使用该类scrreprt,并已定义我的首字母缩略词的呈现方式:

\usepackage{acro}
\newenvironment{acronyms}
  {\labeling[~\dots]{longestword}}
  {\endlabeling}

\acsetup{list-type=acronyms,only-used=false}

这会...在首字母缩略词和其定义之间添加一个。我知道该\printacronym函数使用labeling环境。我想为打印的首字母缩略词定义的标签环境指定标签之间的垂直分隔(使其与所有后续标签环境相同)。

我该如何整合命令来实现这一点?请找平均能量损失

\documentclass{scrreprt}
\usepackage{acro}

% class `abbrev': abbreviations:
\DeclareAcronym{ny}{
  short = NY ,
  long  = New York ,
  class = abbrev
}
\DeclareAcronym{la}{
  short = LA ,
  long  = Los Angeles ,
  class = abbrev
}
\DeclareAcronym{un}{
  short = UN ,
  long  = United Nations ,
  class = abbrev
}

% class `nomencl': nomenclature
\DeclareAcronym{angelsperarea}{
  short = \ensuremath{a} ,
  long  = The number of angels per unit area ,
  sort  = a ,
  class = nomencl
}
\DeclareAcronym{numofangels}{
  short = \ensuremath{N} ,
  long  = The number of angels per needle point ,
  sort  = N ,
  class = nomencl
}
\DeclareAcronym{areaofneedle}{
  short = \ensuremath{A} ,
  long  = The area of the needle point ,
  sort  = A ,
  class = nomencl
}

\newenvironment{acronyms}
  {\labeling[--]{thelongestword}}
  {\endlabeling}
\acsetup{list-type=acronyms}

\begin{document}

\ac{ny}, \ac{la} \ac{ny} and \ac{un} are abbreviations whereas
\ac{angelsperarea}, \ac{numofangels} and \ac{areaofneedle} are part of the
nomenclature

\printacronyms[exclude-classes=nomencl]

\printacronyms[include-classes=nomencl,name=Nomenclature]

\end{document}

答案1

您可以在 -环境中更改项目之间的分离 ( itemsep) acronyms。更改被困在里面,无法逃脱。

fitzbanKomaAcroLabeling

\documentclass{scrreprt}
\usepackage{acro}

% class `abbrev': abbreviations:
\DeclareAcronym{ny}{
    short = NY ,
    long  = New York ,
    class = abbrev
}
\DeclareAcronym{la}{
    short = LA ,
    long  = Los Angeles ,
    class = abbrev
}
\DeclareAcronym{un}{
    short = UN ,
    long  = United Nations ,
    class = abbrev
}

          % class `nomencl': nomenclature
\DeclareAcronym{angelsperarea}{
    short = \ensuremath{a} ,
    long  = The number of angels per unit area ,
    sort  = a ,
    class = nomencl
}
\DeclareAcronym{numofangels}{
    short = \ensuremath{N} ,
    long  = The number of angels per needle point ,
    sort  = N ,
    class = nomencl
}
\DeclareAcronym{areaofneedle}{
    short = \ensuremath{A} ,
    long  = The area of the needle point ,
    sort  = A ,
    class = nomencl
}

\newenvironment{acronyms}
{\labeling[--]{thelongestword}\setlength{\itemsep}{20pt}}
{\endlabeling}
\acsetup{list-type=acronyms}

\begin{document}

\ac{ny}, \ac{la} \ac{ny} and \ac{un} are abbreviations whereas
\ac{angelsperarea}, \ac{numofangels} and \ac{areaofneedle} are part of the
nomenclature

\printacronyms[exclude-classes=nomencl]

\printacronyms[include-classes=nomencl,name=Nomenclature]

\begin{labeling}{lalalalalal}
\item [wombat] walzing
\item [duck] dixie
\item [snake] salsa
\end{labeling}

\end{document}

相关内容