![尽管索引、首字母缩略词和缩写部分可以工作,但词汇表不起作用。](https://linux22.com/image/351126/%E5%B0%BD%E7%AE%A1%E7%B4%A2%E5%BC%95%E3%80%81%E9%A6%96%E5%AD%97%E6%AF%8D%E7%BC%A9%E7%95%A5%E8%AF%8D%E5%92%8C%E7%BC%A9%E5%86%99%E9%83%A8%E5%88%86%E5%8F%AF%E4%BB%A5%E5%B7%A5%E4%BD%9C%EF%BC%8C%E4%BD%86%E8%AF%8D%E6%B1%87%E8%A1%A8%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8%E3%80%82.png)
首字母缩略词和缩写词列表出现在以下文档的末尾。索引也出现在末尾。到目前为止一切顺利……直到词汇表没有弹出。
我不明白为什么它仍然是隐形的。
欢迎任何帮助。谢谢。
% PREAMBLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper,oneside,centered]{book}
\special{papersize=210mm,297mm}
\usepackage[top=3cm, bottom=3.2cm, left=2.5cm, right=2.5cm]{geometry}
\usepackage[english]{babel}
\usepackage{newpxtext} % Font for document instead of obsolete Palatino
\usepackage{tocloft} % Customization of TOC LOF LOT
\usepackage[table,xcdraw]{xcolor} % For shading in tables
\usepackage{pdfcolmk}
\usepackage{multirow}
\usepackage{textcomp}
\usepackage{ltablex}
\usepackage{nicefrac} % to write fractions
\usepackage{attrib} % For source of quotations
\usepackage{lettrine} % For NewThought formatting
\usepackage{array} % To define width of columns in long table
\usepackage{booktabs} % Nicer spacing in columns
\usepackage{siunitx} % To write Celsius, etc.
\usepackage{enumitem} % To create item lists
\usepackage{caption} % To change way captions are labelled
\usepackage{scrextend}
\usepackage{threeparttable} % For table notes + To allow footnote material to stay with the tabular environment
\usepackage{etoolbox} % To make table footnote font smaller
\usepackage{threeparttablex}
\appto\TPTnoteSettings{\footnotesize}
% Creating Index
\usepackage{imakeidx}
\makeindex
\usepackage{blindtext}
%\usepackage{showframe}
\usepackage{hyperref} % Hyperlinks
\usepackage[toc,acronym,automake]{glossaries}
\makeglossaries
%%%%%TEST_ZONE%%%%%%
\newacronym{as}{A.S.}{All Salt}
\newacronym{oal}{OAL}{Omni Apple Legend}
\newacronym{ept}{EPT}{Emile Pot Trauma}
%%%%%TEST_ZONE%%%%%%
%Table of Content depth
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{5}
\setlength{\parindent}{15pt}
%Hyperlinks for TOC
\makeatletter
\hypersetup{
colorlinks,
citecolor=blue,
filecolor=blue,
linkcolor=blue,
urlcolor=blue
}
\begin{document}
\frontmatter
\mainmatter
\chapter{The Story}
\section{Data}
\gls{as} and \gls{oal} are terms used in the \gls{ept}.
Plants.\index{Plants}
Star.\index{star}
Mu.\index{Mu}
Sinis.\index{Sinis}
Ball.\index{Ball}
\chapter{Languages}
\section{Pronunciation}
\section{Scripts}
\backmatter
\printglossary[type=\acronymtype,title=Abbreviations]
\printindex
\end{document}