我如何设置打印缩写列表时忽略的常用缩写的样式?glossaries-extra
或者仅在这里似乎不起作用。我的想法是,我可以稍后决定是否要通过删除选项将它们包含在列表中。此外,MWE 中的短复数定义在这里被忽略,而是附加了“s”。谢谢!short-nolong
\setabbreviationstyle[common]{short-nolong}
short
type=common
MWE(xelatex):
\documentclass{scrbook}
\usepackage[abbreviations,symbols,nonumberlist,nogroupskip,automake]{glossaries-extra}
\newignoredglossary{common}
\setabbreviationstyle[common]{short-nolong}
% Abbreviations
\newabbreviation{abb:dft}{DFT}{discrete Fourier transfom}
\newabbreviation[
type=common,
description={Piece(s)},
plural={pc.},
\glslongpluralkey={pieces},
]{abb:piece}{pc.}{piece}
\makeglossaries[abbreviations]
\begin{document}
\printglossary[type=abbreviations]
\chapter{Test}
\Gls{abb:dft} and second use \gls{abb:dft}
1 \gls{abb:piece}, second use 1 \gls{abb:piece}\\
10 \glspl{abb:piece}, second use 10 \glspl{abb:piece}
\end{document}
答案1
正如文档所述
\setabbreviationstyle[〈category〉]{〈style-name〉}
可选参数\setabbreviationstyle
采用类别,不是类型。在选项中category=common
加上“除了”可以实现您想要的功能。type=common
\newabbreviation