I'm trying to add a glossary at the end of my thesis following the guide here:
So I've used:
\documentclass[12pt, a4paper, oneside, openright]{report}
\usepackage[T1]{fontenc}
\usepackage[ansinew,utf8,latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{mathtools}
\usepackage{float}
\usepackage{graphicx}
\usepackage{pdfpages}
\usepackage{afterpage}
\usepackage{enumerate}
\usepackage{hyperref}
\usepackage[acronym]{glossaries}
\makeglossaries
\newglossaryentry{latex}
{
name=latex,
description={blablabla}
}
\newacronym{gcd}{FIRST}{blablabla}
begin{document}
....
\printglossary[type=\acronymtype]
\printglossary[title= Acronyms and Glossary of Terms]
end{document}
without results.
Moreover I'd like to have "Acronyms and Glossary of Terms as a numbered line in table of contents but if I add the option [toc] to
\usepackage[acronym][toc]{glossaries}
I obtain an error "missing \begin{document}".
\gls{latex}inside your document. – Bobyandbob Nov 19 '17 at 20:34\usepackage[acronym]{glossaries-extra}instead of\usepackage[acronym]{glossaries}. It works for me with\tableofcontents. – Bobyandbob Nov 19 '17 at 20:53inputenc. What could be the point? It tells it the input encoding of your document. Pick whatever that is. – cfr Nov 20 '17 at 01:42begin{document}. You need\begin{document}. Similarly in the lineend{document}. – cfr Nov 20 '17 at 01:43