
考慮以下 MWE
\RequirePackage{filecontents}
\begin{filecontents}{\jobname-acro.tex}
%%% Type: institute
\newacronym{abc}{ABC}{Awesome Best College}
%%% Type: journal
\newacronym{ijk}{IJK}{International Journal of Karaoke}
%%% Type: conference
\newacronym{cde}{CDE}{Conference on Dual Eternity}
\end{filecontents}
\documentclass[a4paper]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[acronym,toc,smallcaps]{glossaries}
\loadglsentries[\acronymtype]{\jobname-acro}
\makenoidxglossaries
\begin{document}
\tableofcontents{}
\printnoidxglossary[type=acronym,]
\section{Some examples}
Some Text \gls{abc} and \gls{cde} also \gls{ijk}
\end{document}
縮寫字印在一起:
我想要的是,首字母縮寫詞將分為三類,例如:
在這方面的任何幫助將不勝感激。
答案1
該glossaries
包確實支援分層樣式。這些可以跨越多個級別,但是,對於您的情況,2 就足夠了(級別 0 和 1)。您可能想看看手動的,它給出了樣式功能的清單(2017-06-29:第 15 章,第 199 頁)。
如果您選擇了自己喜歡的樣式,我建議定義一個用於新增條目的新命令,如下所示。我用它來區分符號(羅馬、希臘、數學…),但最終它並不重要。重要的部分是parent=roman
選擇,以及對您而言的type=acronym
選擇。
您可能不需要的是symbol
和unit
東西,這只是我的詞彙表的擴展。
\newglossaryentry{roman}{name={Roman Symbols}, description={\glspar}, type=symbols, sort=10}
\newcommand{\newromansymbol}[5][]{
% create the glossary entry in the greek category
\newglossaryentry{symb:#2}{
name={#2},
symbol={\ensuremath{#3}},
description={#4},
unit={#5},
type=symbols,
parent=roman,
#1
}
}
\newromansymbol[sort=S2]{source-term}{S}{Source or sink term (in general, $S$, or for a defined property \gls{symb:phi} as $S_\phi$)}{\si{\au}}
\newromansymbol[sort=D]{diffusion}{D}{Diffusion coefficient}{\si{\square\metre\per\second}}
\newromansymbol[sort=u1]{velocity}{\vect{u}}{Velocity}{\si{\metre\per\second}}
\newromansymbol[sort=v]{fluid-velocity}{v}{Fluid velocity}{\si{\metre\per\second}}
如果現有樣式沒有達到您想要的效果,您可以輕鬆修改一種樣式。比較問題詞彙表:如何使用附加單位列自訂符號清單?舉一個一般的例子。