我正在写一本书,并尝试使用包 glossaries 在文档末尾生成词汇表。文档末尾没有打印词汇表,也没有生成索引。MWE 如下所示:
\documentclass[12pt,twoside,openright]{book}
\usepackage[T1]{fontenc}
\usepackage{newtxtext}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{imakeidx}
\makeindex[options=-s index, columns=2]
\usepackage{float}
\usepackage[top=2cm, bottom=2cm, outer=5cm, inner=2cm, headsep=4pt]{geometry}
\usepackage{setspace}
\singlespacing
\usepackage[acronym,nomain]{glossaries}
\makeglossaries
\input{glossary_FIM}
\begin{document}
\title{A \LaTeX Document}
\author{Ahmed Arif}
\maketitle
\frontmatter
\tableofcontents
\mainmatter
\chapter{Introduction}
\Gls{abs} are securities issued against assets. \index{ABS}
\printglossary[type=\acronymtype]
\printindex
\end{document}
而 gloosary_FIM.tex 包含以下条目。
\newglossaryentry{abs}{%
name={Asset-Backed Securities},%
description={These are the securities issued by a special purpose vehicle.}}