
다음 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}}
기존 스타일이 원하는 대로 작동하지 않으면 매우 쉽게 수정할 수 있습니다. 질문을 비교하세요용어집: 단위에 대한 추가 열을 사용하여 기호 목록을 사용자 정의하는 방법은 무엇입니까?일반적인 예를 들어.