未出现命名法

未出现命名法

我正在努力使我的命名法发挥作用。有趣的是,当我将整个序言放在另一个文档中时,我可以显示我的命名法,但当我在我的项目中使用它时,什么都没有出现。这是我的序言:

\documentclass[a4paper,12pt]{report}

\usepackage[utf8]{inputenc}
\usepackage{nomencl}
\makenomenclature

\usepackage[square,numbers]{natbib}
\bibliographystyle{unsrtnat}
\usepackage{amsmath,amsfonts}
\usepackage{amssymb} 
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{gensymb}
\usepackage[a4paper, total={16cm, 25cm}]{geometry}
\usepackage{color}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage{titlesec}
\usepackage{framed}
\usepackage{multicol}
\usepackage{float}
\usepackage{fancyhdr}
\usepackage{lastpage}

\pagenumbering{arabic}
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[C,CO]{\leftmark}
\lfoot{\thepage\ of \pageref{LastPage}}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{1pt}

\usepackage{etoolbox}
\patchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{fancy}}{}{}

\usepackage{siunitx}
\usepackage[nottoc]{tocbibind}

\LARGE{\title{P2 HV DC }}
\author{\textsc{Asger Nickelsen}} 


\begin{document}
\maketitle

\input{dddd/LatexAbstract.tex}
\tableofcontents
\clearpage

\mbox{}
\nomenclature{$V_{AB}$}{eletrical potential between two points}
\nomenclature{$\Delta$}{A diffrence between two reference points}
\nomenclature{$E$}{Symble for an electrical field}
\nomenclature{$r$}{distance between point A and B}
\nomenclature{$q$}{a charge}
\nomenclature{$\vec{}$}{vector arrow}
\printnomenclature

\input{ccc/acdchistory.tex}
\chapter{Theory}
\input{ll/KirchhoffLaws.tex}
\input{aa/diodes.tex}
\input{pp/Rectifier.tex}
\input{uu/ACDC.tex}
\input{Asger/capacitor.tex}
\input{qq/jk.tex}
\input{ttt/DiodeDiagrammer.tex}
\bibliography{Bib/kilder.bib}
\end{document}

这是我尝试过的:

放在%所有输入文件前面。仍然没有命名法。

%所有 usepackage 放在前面,除了:

\usepackage[utf8]{inputenc} 
\usepackage{nomencl} 
\makenomenclature 
\LARGE{\title{P2 HV DC }} 
\date{The 1st of February to the 19th of May 2017} 
\author{\textsc{Asger Nickelsen}} 

\begin{document} 
\maketitle \mbox{} 
\nomenclature{$V_{AB}$}{eletrical potential between two points} 
\nomenclature{$\Delta$}{A diffrence between two reference points} 
\nomenclature{$E$}{Symble for an electrical field} 
\nomenclature{$r$}{distance between point A and B} 
\nomenclature{$q$}{a charge} 
\nomenclature{$\vec{}$}{vector arrow} 
\printnomenclature 

尽管如此,我的命名法仍然不会出现,这是怎么回事?奇怪的是,如果我使用完全相同的序言创建一个新项目,但在开始文档中我只有以下内容:

\begin{document} 
\maketitle 
\mbox{} 

\nomenclature{$V_{AB}$}{eletrical potential between two points} 
\nomenclature{$\Delta$}{A diffrence between two reference points} 
\nomenclature{$E$}{Symble for an electrical field} 
\nomenclature{$r$}{distance between point A and B} 
\nomenclature{$q$}{a charge} 
\nomenclature{$\vec{}$}{vector arrow} 
\printnomenclature \end{document} 

然后就出现了命名表。希望你们能帮助我。

相关内容