词汇表的问题

词汇表的问题

问题是我的词汇表显示为空白。编译器没有告诉我错误。我有很多包,也许其中一些有冲突?下面我展示了我如何实现词汇表。

%% document class
\documentclass[a4paper]{book}
\usepackage[table,xcdraw]{xcolor}
\usepackage[T1]{fontenc}
\usepackage[spanish,es-tabla,es-nodecimaldot]{babel}
\usepackage[titletoc]{appendix}
\usepackage{ragged2e}
\usepackage[numbers]{natbib}
\usepackage{amssymb}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{enumerate} % needed for some options in enumerate
\usepackage{makeidx} % needed for creating an index
\makeindex 
\usepackage{blindtext} 
\usepackage{amsmath}
\usepackage{bigstrut}
\usepackage{upgreek}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{array}
\usepackage{tikz}
\usepackage[nottoc]{tocbibind}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{pdfpages}
\usepackage{pdflscape}
\usepackage{titletoc}
\usepackage{tcolorbox}
\usepackage[top=2cm, bottom=1.8cm,left=2.5cm,right=2.5cm]{geometry} % needed for page border settings
\usepackage[pdfencoding=auto,colorlinks=true,citecolor=black,linkcolor=black,urlcolor=black]{hyperref}
\usepackage{longtable}
\usepackage{bookmark}
\usepackage{xpatch}
\usepackage{siunitx,booktabs}
\usepackage[acronym,nopostdot,nogroupskip,style=super,nonumberlist,automake,toc]{glossaries} %Load glossaries package
\makeglossaries
\tcbuselibrary{skins}
\makeatletter
\usepackage[intoc, spanish]{nomencl}
\makenomenclature
\xapptocmd{\appendices}{%
  \def\Hy@chapapp{appendixchapters}%
}{}{}
\makeatother

\newglossaryentry{Dc}{name={DC},description={Direct Current}}
\newglossaryentry{Pmdc}{name={PMDC},description={Permanent Magnet Direct Current}}
\newglossaryentry{Igbt}{name={IGBT},description={Insulated Gate Bipolar Transistor}}
\newglossaryentry{Pwm}{name={PWM},description={Pulse-Width Modulation}}

\begin{document}

\tableofcontents
\listoffigures
\listoftables
\printnomenclature
\printglossary[title={Lista de Abreviaturas}] 
\chapter {Example}
This a glossary example \gls{Dc}.

\end{document}

相关内容