약어 섹션이 표시되지 않습니다.

약어 섹션이 표시되지 않습니다.

아래에 제공된 코드를 사용하면 약어 섹션이 나타나지 않습니다. 저는 Textstudio를 편집자로 사용하고 있습니다.
누군가 문제가 무엇인지 말해 줄 수 있습니까?

\documentclass[a4paper,12pt]{book}

\usepackage{hyperref}
\usepackage[toc, shortcuts]{glossaries}

\makeglossaries
\newacronym{CBD}{CBD}{Convention on Biological Diversity}
\newacronym{CCC}{CCC}{UN Framework Convention on Climate Change}
\newacronym{CMS}{CMS}{Convention on the Conservation of Migratory Species of Wild Animals}
\newacronym{FAO}{FAO}{Food and Agriculture Organization of the United Nations}

\begin{document}

\phantomsection
\printglossary[type=\acronymtype, style=long, toctitle={Acronyms}, title={Acronyms}]
\cleardoublepage

\chapter{chapter1}
\ac{CBD}
\ac{CCC}
\ac{CMS}
\ac{FAO}

\end{document}

답변1

패키지 문서 에서 glossaries:

1) 문서에서 LaTeX를 실행하면 확장자가 .glo 및 .ist인 파일이 있어야 합니다.

2) 다음 명령을 실행합니다 makeindex(Windows의 경우 명령 프롬프트 또는 Unix 계열 사용자의 경우 bash 콘솔 사용). myDoc을 기본 문서 이름으로 바꿉니다.

makeindex -s myDoc.ist -o myDoc.gls myDoc.glo

그러면 확장명이 .gls인 출력 파일이 생성됩니다.

3) 그런 다음 문서에서 LaTeX를 다시 실행하면 약어 페이지를 볼 수 있습니다.

여기에 이미지 설명을 입력하세요

관련 정보