2

I am trying to produce a list of symbols for my thesis by using the latex code provided in this link

I made the exactly copy but the part "List of Symbols" never shows up... Can someday help me to fix this?

Below you may find a minimum working example, and also a screenshot for the pdf file

\documentclass[english, reqno, 9pt]{amsart}
\usepackage{geometry}            % See geometry.pdf to learn the layout options. There are lots.
\usepackage{amssymb,amsmath,amsthm,amsfonts,color}
\usepackage{mathrsfs,dsfont, comment,mathscinet}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{mathtools}
\usepackage{babel}






%----------------------------------------------------------------------------------------%

\usepackage{glossaries}
\makeglossaries

\newglossaryentry{lengthtree}%
{%
  name={$L_t$},
  text={L_t},
  description={description here},
  sort={L}
}

\title{Test}


\setlength{\parindent}{0cm}
\begin{document}

In line: $\gls{lengthtree}$. In math mode: 
\[
  \gls{lengthtree}
\]

\printglossary[title={List of Symbols}]

\end{document}

enter image description here

So as you can see, there is no "List of symbols" section... Please advise!

closed as off-topic by TeXnician, Stefan Pinnow, Zarko, egreg, Paul Stanley Apr 14 '17 at 21:05

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    have you run the makeglossaries script? Read the documentation for the glossaries package, around page 19. You can access that by typing in your terminal texdoc glossaries – Moriambar Apr 14 '17 at 16:48
  • @Moriambar ops... I certainly did not... Sorry, how may I run makeglossaries script? It is not like the 'bib' file I have for my references... – Covepe Apr 14 '17 at 16:51
  • 1
    @Panda I answered. you simply type it in your command prompt. I also recommend you read the package documentation. everything is there – Moriambar Apr 14 '17 at 16:53
  • @Moriambar I know how to do it now! It worked! Please, re-state your answer so I can accept it! – Covepe Apr 14 '17 at 16:59
  • 4
    I'm voting to close this question as off-topic because the OP just forgot to run makeglossaries and the problem was solved by suggestion in the comments. – TeXnician Apr 14 '17 at 17:24
1

Welcome to TeX.SE!

In order for the glossaries to appear you have to:

  1. Build the normal document using, e.g. LaTeX
  2. Run the makeglossaries script on your file, by running makeglossaries yourfilename You have to type this in your terminal/command prompt window, in the same folder as your compiled file
  3. Run again LaTeX

This way LaTeX will be able to produce the requested glossary, e.g.

enter image description here

For any further details please read the glossaries package documentation, especially the introductory section around page 19. (texdoc glossaries from command line should produce that)

  • Sorry. I am a bit new to latex. By terminal you mean the terminal for my laptop OS or the console (yellow box) for latex? I am using TeXShop. – Covepe Apr 14 '17 at 16:55
  • Your os terminal. In mac is just called terminal – Moriambar Apr 14 '17 at 16:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.