I'm getting this error when I use the \gls
command:
Package glossaries Error: Glossary entry `DCD' has already been defined.
These are how I my package:
\documentclass[12pt]{book}
\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
\usepackage{upgreek}
\usepackage{float}
\usepackage{siunitx}
\usepackage{amsmath}
\usepackage{a4wide}
\usepackage{tabu}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{verbatim}
\usepackage{amssymb,mathtools}
\usepackage{pdfpages}
\usepackage{array}
\usepackage{braket}
\usepackage{multirow}
\usepackage{multicol}
\usepackage[bookmarks]{hyperref}
\usepackage[acronym]{glossaries}
\usepackage[numbers,sort&compress]{natbib}
\loadglsentries{Acronyms}
\makeglossaries
\loadglsentries[type=\acronymtype]{Acronyms}
\newacronym{DCD}{DCD}{Double Crystal Diffractometer}
It seems to work but I continuosly get the error (the red one in Overleaf).