Math & ScienceList of symbols

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Juan___
Posts: 1
Joined: Sun Jun 25, 2023 3:34 pm

List of symbols

Post by Juan___ »

I am writing my thesis in overleaf. I have already written more than 60 pages and I have a lot of symbols. To unify the notation I would like to do a symbols list on the go, that is, whenever I write the first symbol, this will be hyperlinked to the symbols list, and in the symbols list it will appear the symbol and a description of it. How can I do this?

I have written the following code, but it does not show the list of symbols. Why?

\documentclass[10pt]{article}

\usepackage[OT1]{fontenc}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}

\usepackage[left=3cm,right=3cm,top=3cm]{geometry}
\usepackage[parfill]{parskip}

\usepackage{natbib}
\usepackage{nomencl}

\setlength{\parskip}{1.5\baselineskip}
\linespread{1.5}

\usepackage{amsmath, amsthm, amssymb, amsfonts, mathrsfs, mathtools}

\usepackage{titlesec}

\newcommand{\ptitlel}[1]{\noindent\textbf{#1}\par}

\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\theoremstyle{plain}
\newtheorem{theorem}[definition]{Theorem}
\newtheorem{corollary}[definition]{Corollary}
\newtheorem{proposition}[definition]{Proposition}
\newtheorem{lemma}[definition]{Lemma}

\theoremstyle{remark}
\newtheorem*{example}{Example}
\newtheorem*{remark}{Remark}

\renewcommand\qedsymbol{$\blacksquare$}

\usepackage{enumitem}

\usepackage{graphicx}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{subcaption}
\usepackage{float}
\usepackage[colorlinks=true, allcolors=black]{hyperref}

%%%%% List of symbols %%%%%
\usepackage{glossaries}
\newglossaryentry{symbol}{name=symbol, description={This is a description of the symbol}}

\usepackage{tikz}

\title{Deep Learning Theory: Bridging the Gap between Practice and Theory via the Neural Tangent Kernel}
\author{Juan Da Silva}
\date{\today}

\begin{document}

\maketitle
\hrule
\vspace{4em}
\tableofcontents
\newpage

\input{main/Introduction}
\input{main/Neural tangent kernel: theoretical results}
\input{main/Experiments}

\newpage
\bibliographystyle{plain}
\bibliography{references}

\newpage
\gls{symbol}

\newpage
\printglossaries

\newpage
\appendix
\input{main/Appendix}

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

List of symbols

Post by Bartman »

Please create a complete Infominimal working example and mark its code.

I miss the \makeglossaries command. Read the package manuals where you should insert it.
Post Reply