-
-
Notifications
You must be signed in to change notification settings - Fork 140
Adding more Glossaries or Lists of Something
João M. Lourenço edited this page Jan 11, 2022
·
1 revision
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
.
Thanks for using this template and for contributing with your suggestions. We really appreciate it. If you may, please don't send us emails directly. Post your question in the GitHub Discussions page or the Facebook Group and you will get your answer there — perhaps even faster.