I am using \usepackage{nomencl}
to define a list of symbols…
For example
\nomenclature[B]{$\varepsilon$}{Permittivity \nomunit{$Farads/cm$}}
\nomenclature[B]{$a$}{Lattice constant\nomunit{$\AA$}}
Now I want to add new symbols, but I do not understand why my pre-existing list is not getting updated in the output file..
Can you please help?
I already tried deleting auxillary file, but it does not help
Here is a working example: (please note the package adsphd can be downloaded here: https://people.cs.kuleuven.be/~wannes.meert/adsphd/)
\documentclass[showinstructions,faculty=firw,department=mtk,phddegree=mtk]{adsphd}
\title{\textsc{Title of the thesis}}
\author{Author}{Name}
\supervisor{Prof. XX}{}
\president{Prof. XX}
\jury{Dr XX }
\externaljurymember{Prof. XX}{far away place}
\researchgroup{XXXXX}
\website{} % Leave empty to hide
\email{} % Leave empty to hide
\address{xx}
\date{Nov 2017}
\copyyear{2017}
\setlength{\adsphdspinewidth}{9mm}
\usepackage{etoolbox}
\usepackage{nomencl} % For nomenclature
\renewcommand{\nomname}{List of Symbols}
\setlength{\nomlabelwidth}{3cm}
\newcommand{\myprintnomenclature}{%
\cleardoublepage%
\printnomenclature%
\chaptermark{\nomname}
\addcontentsline{toc}{chapter}{\nomname} %% comment to exclude from TOC
}
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
\renewcommand\nomgroup[1]{%
\item[\bfseries
\ifstrequal{#1}{A}{Physics Constants}{%
\ifstrequal{#1}{B}{Other Symbols}{}}%
]}
\makenomenclature%
\usepackage{glossaries} % For list of abbreviations
\newcommand{\glossname}{List of Abbreviations}
\newcommand{\myprintglossary}{%
\renewcommand{\glossaryname}{\glossname}
\renewcommand*{\glossaryentrynumbers}[1]{}
\cleardoublepage%
\printglossary[title=\glossname]
\chaptermark{\glossname}
\addcontentsline{toc}{chapter}{\glossname} %% comment to exclude from TOC
}
\makeglossaries%
\usepackage[utf8]{inputenc} %Uncommented for BibLatex
\usepackage{csquotes} %Uncommented for BibLatex
\usepackage[
hyperref=auto,
mincrossrefs=999,
backend=bibtex,
sorting = none, % to have references appear as they are cited
style=numeric-comp,
firstinits=true, %added new
clearlang=true, %added new
refsegment=chapter,
defernumbers=true
]{biblatex} %Uncommented for BibLatex
\addbibresource{allpapers.bib} %Uncommented for BibLatex
\renewcommand*{\labelalphaothers}{}
\usepackage{float}
\usepackage{textcomp} % nice greek alphabet
\usepackage{pifont} % Dingbats
\usepackage{booktabs}
\usepackage{amssymb,amsthm}
\usepackage{amsmath}
\usepackage{mathtools} % for short intertext; somya
\usepackage[font=small,labelfont=bf]{caption}
\usepackage[labelformat=parens,labelfont=md, font=small]{subcaption}
\usepackage{arydshln}
\usepackage[normalem]{ulem}
\usepackage{chemformula}
\usepackage{siunitx}
\usepackage{gensymb} % for degree symbol
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
citecolor=blue,
filecolor=magenta,
urlcolor=blue,
}
\usepackage[hang]{footmisc}
\setlength\footnotemargin{0.2em}
\usepackage{cancel}
\usepackage{enumitem}
\usepackage{color,soul} % for text highlight
\setcounter{secnumdepth}{5}
\setlength{\belowcaptionskip}{-5pt} %to remove space below caption
%\usepackage[showframe]{geometry}
\usepackage{array, makecell, booktabs}
%\usepackage{siunitx}
\DeclareSIUnit \uF { \micro \farad }
%\usepackage{chemformula}
\renewcommand{\cellalign}{tc}
\usepackage{siunitx}
\newcommand*{\citen}[1]{%
\begingroup
\romannumeral-`\x % remove space at the beginning of \setcitestyle
\setcitestyle{numbers}%
\cite{#1}%
\endgroup
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newglossaryentry{md}{name={MD},description={molecular dynamics}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeindex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\maketitle
%\frontmatter % to get \pagenumbering{roman}
\glsaddall
\myprintglossary
\makenomenclature
\myprintnomenclature
\tableofcontents
\mainmatter % to get \pagenumbering{arabic}
\cleardoublepage
\nomenclature[A]{$k$}{Boltzmann Constant \nomunit{$8.617\times10^5 \, eV.K^{-1}$}}
An example text can be typed here !
%\makebackcoverXII
\end{document}
Best Answer
I finally find the solution.
I am using TeXstudio.
Go to
Option--> Configure Texstudio --> Commands
In the field ofMakeindex
write the following:I have no clue what it means. But it works!