%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
용어집의 대체 목록 스타일이 정말 마음에 들었지만 여러 줄 이름을 처리할 수 있는 방법을 찾지 못해 대안을 찾다가 여러 줄 이름을 허용하는 인덱스 스타일을 생각해 냈습니다. 이름은 있지만 나에게는 추악해 보입니다. 기본적으로 이름은 들여쓰기가 아닌 설명과 이름과 설명 사이에 약간의 공백(예: altlist 스타일)을 원합니다.
"\glstreepredesc"를 사용하면 이 작업을 쉽게 수행할 수 있지만 그렇게 할 수는 없습니다. 누군가가 도울 수 있다면 그것은 완벽할 것입니다. (아니면 대체 목록 스타일로 여러 줄 이름을 가질 수 있는 솔루션이 있을까요?)
여기 MWE가 있습니다
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
\documentclass[fontsize=10pt]{scrbook}
\usepackage{geometry}
\geometry{
paperheight=213mm,
paperwidth=140mm,
left=16mm,
right=16mm,
top=21mm,
bottom=16mm,
heightrounded,
}
\usepackage[
nopostdot]{glossaries}
\makeglossaries
\newglossaryentry{long-long-long-argument}
{
name={The Name for the Very Long and the Most Important Argument in the Text},
text={The Name for the Very Long and the Most Important Argument in the Text},
description={The Very Long Description of the Very Long and the Most Important Argument in the Text. The Very Long Description of the Very Long and the Most Important Argument in the Text.}
}
\newglossaryentry{short-argument}
{
name={Very Short argument.},
text={Very Short argument.},
description={Description of a very short argument. Description of a very short argument.},
}
\renewcommand{\glstreepredesc}{%
\glstreeitem\parindent\hangindent}
\begin{document}
\gls{long-long-long-argument} \gls{short-argument}
\printglossary[style=index,nonumberlist]
\end{document}
답변1
list
(따라서 altlist
) description
목록을 사용하여 용어집을 조판하므로 해당 동작을 조정하는 데 사용할 수 있습니다 enumitem
. 이 패키지를 로드하고 를 사용한 후 altlist
다음과 같이 말하면 이름이 깨질 수 있습니다.
\setlist[description]{style=unboxed}
이름의 모든 줄을 왼쪽 정렬로 만들기 위해(좋은 생각인지는 모르겠습니다) 사용자 정의 정렬을 정의할 수 있습니다.
\SetLabelAlign{horstfuchs}{\parbox[b]{\textwidth}{#1}}
\setlist[description]{style=unboxed, align=horstfuchs, labelsep=0pt}
정의가 변경되지 않도록모두 description
문서에 목록이 있으면 설정을 전체적으로 변경하는 대신 적절한 용어집 스타일을 만들어야 합니다.
\SetLabelAlign{horstfuchs}{\parbox[b]{\textwidth}{#1}}%
\newglossarystyle{horstfuchs}{%
\setglossarystyle{altlist}%
\renewenvironment{theglossary}%
{\glslistinit\begin{description}[style=unboxed, align=horstfuchs, labelsep=0pt]}%
{\end{description}}%
}