here is my code and I just try from a ShareLaTeX example:
\documentclass[oneside,a4paper]{book}
\usepackage{glossaries}
\makeglossaries
\newglossaryentry{latex}
{
name=latex,
description={Is a mark up language specially suited
for scientific documents}
}
\newglossaryentry{maths}
{
name=mathematics,
description={Mathematics is what mathematicians do}
}
\title{How to create a glossary}
\author{ }
\date{ }
\begin{document}
\maketitle
The \Gls{latex} typesetting markup language is specially suitable
for documents that include \gls{maths}.
\clearpage
\printglossaries
\end{document}
I use miktex with Texmaker, build doesn't show any error or warining message. May I know why I can't get \printglossaries
work?
I got three pages:
- title page, page1, works fine
- Content page,page2, work fine
- An empty page, page3, suppose to be glossaries
Steps:
- run latex build option in texmaker twice
- run MakeIndex build option in texmaker
- run latex build option in texmaker again
in 2nd step it shows:
Process started
This is makeindex, version 2.15 [MiKTeX 2.9.6500 64-bit] (kpathsea + Thai support). Scanning input file test_gls.idx...done (0 entries accepted, 0 rejected). Nothing written in test_gls.ind. Transcript written in test_gls.ilg.
Process exited normally
Best Answer
find some clue:
Windows with Texmaker (need glossaries version 4.08 or later):
add
automake
option for packageglossaries
, then it works for texmakerLinux:
pdflatex <yourfile>
makeindex -s <yourfile>.ist -o <yourfile>.acr <yourfile>.acn
pdflatex <yourfile>
pdflatex <yourfile>