0

I am trying to generate a glossary for my PhD thesis. I am using TeXmaker on Windows 7. I put my glossary entries in a separate .tex file and call it in the main file. When I compile with pdflatex, the output message does not contain any error, but the Glossary does not appear in the PDF.

My minimum working example (with glossary file) is attached.

How do I solve this?

Main file:

\documentclass[12pt, twoside]{report}
\setcounter{secnumdepth}{5} 
\setcounter{tocdepth}{5}
\usepackage[utf8]{inputenc}
\usepackage{times}
\usepackage{amsmath}
\usepackage{mathtools} 
\usepackage{physics}
\usepackage{amssymb} 
\usepackage[font=footnotesize,labelfont=bf]{caption}
\usepackage{url}
\usepackage{subcaption}
\usepackage[rightcaption]{sidecap} 
\usepackage{hyperref} 
\hypersetup{colorlinks=true, linkcolor=blue, %black 
citecolor=blue}
\usepackage{tabularx}
\usepackage[a4paper,width=150mm,top=25mm,bottom=50mm,bindingoffset=6mm]{geometry}
\usepackage[toc]{glossaries}
\makeglossaries
\loadglsentries{mygloss}
\usepackage[backend=biber, style=numeric-comp, sorting=none,url=false, doi=false, eprint=false,date=year]{biblatex}
\renewbibmacro{in:}{} 
\bibliography{reference}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[CO, CE]{\thepage}
\usepackage{afterpage}
\newcommand\blankpage{%
    \null
    \thispagestyle{empty}%
    \addtocounter{page}{-1}
    \newpage}
\title{Thesis of VK}
\author{V K Kavata}
\begin{document}
\maketitle
\newpage
\tableofcontents
\chapter{XXXX}
\input{chapter01.tex}
\afterpage{\blankpage}
\chapter*{}
\addcontentsline{toc}{chapter}{List of Publications}
\input{pub.tex}
\afterpage{\blankpage}
\printbibliography
\printglossaries
\end{document}

Glossary file:

\newglossaryentry{Bx}
{
  name={B_x},
  description={mag-field},
  sort=B
}

\newglossaryentry{gamma_e}
{
  name={\gamma_e},
  description={gyromagnetic ratio},
  sort=gamma
}

\newglossaryentry{omega}
{
  name={\omega},
  description={Resonance frequency},
  sort=omega
}
  • 1
    Did you remember to run makeglossaries? – daleif Jun 19 at 15:07
  • I am not using command prompt-based compiling. I compile the file in the editor (Texmaker) itself. Sorry, I did not mention it in the original question. By the way, is there a way to run 'makeglossaries' in the Texmaker ? – vkavata Jun 19 at 15:28
  • At least my TeXMaker (I only have it for testing) can run latexmk which can be configured to run makeglossaries when needed. Note that latexmk may not be usable out of the box on MikTeX (it will on TeXLive). So either you'll need to add a custom run command to texmaker, or run makeglossaries by hand in the prompt. – daleif Jun 19 at 15:51
  • Thanks a lot! I have tried your suggestions from the last sentence: (1) I ran a user defined command in the Texmaker, and (2) ran 'makeglossaries' in the prompt. Of course, in both the cases, I use proper sequence of commands- pdflatex, followed by makeglossaries, and finally pdflatex. Still the PDF does not print Glossaries ! Thanks again. – vkavata Jun 19 at 18:28
  • 1
    Yes, you are right!! I was not using them in the text. Sorry for that. It works now. Thanks a lot. – vkavata Jun 19 at 19:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.