Adding more Glossaries or Lists of Something - joaomlourenco/novathesis GitHub Wiki
These instructions are valid for version 6.9.1 or later
Create a new file in the Chapters
folder, lets call it chemical_symbols.tex
, following this example (please adapt):
% Define a new gloassary.
% \newglossary[XXg]{type_name}{XXs}{XXo}{Name to be printed}
\newglossary[chg]{chemical}{chs}{cho}{Chemical Symbols}
% If you use “latexmk” also edit file "latexmkrc" and add the following
% rule at the top of the file.
% add_cus_dep('XXo', 'XXs', 0, 'makeglo2gls');
\newglossaryentry{chem:potassio}% label
{%
type=chemical,% glossary type
name={$K^+$},%
description={Ião positivo de Potássio},%
sort={K}%
}
\newglossaryentry{chem:sodio}% label
{%
type=chemical,% glossary type
name={$Na^+$},%
description={Ião positivo de Sódio},%
sort={Na}%
}
Then edit Config/4_files.tex
and add this line below the others (similar)
\ntaddfile{glossaries}[symbols]{chemical_symbols}
If you are using latexmk
, also edit the file latexmkrc
and add the following rule at the top of the file.
add_cus_dep('XXo', 'XXs', 0, 'makeglo2gls');
where XX is replaced by the letters used in the \newglossary
command. In the example XX
=ch
.