GeneralIndex and Abbreviations print ... not the Glossary.

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
cyanidebaby
Posts: 11
Joined: Tue Feb 07, 2017 1:56 pm

Index and Abbreviations print ... not the Glossary.

Post by cyanidebaby »

Hello,

The Acronyms/Abbreviations print.
The Index prints.
The Glossary doesn't print.

I can't figure out what I'm missing.

Code: Select all

% PREAMBLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[a4paper,oneside,centered]{book}
\special{papersize=210mm,297mm}
\usepackage[top=3cm, bottom=3.2cm, left=2.5cm, right=2.5cm]{geometry}

\usepackage[english]{babel}
\usepackage{newpxtext} % Font for document instead of obsolete Palatino
\usepackage{tocloft} % Customization of TOC LOF LOT
\usepackage[table,xcdraw]{xcolor} % For shading in tables
\usepackage{pdfcolmk}
\usepackage{multirow}
\usepackage{textcomp}
\usepackage{ltablex}
\usepackage{nicefrac} % to write fractions
\usepackage{attrib} % For source of quotations
\usepackage{lettrine} % For NewThought formatting
\usepackage{array} % To define width of columns in long table
\usepackage{booktabs} % Nicer spacing in columns
\usepackage{siunitx} % To write Celsius, etc.
\usepackage{enumitem} % To create item lists
\usepackage{caption} % To change way captions are labelled
\usepackage{scrextend}
\usepackage{threeparttable} % For table notes + To allow footnote material to stay with the tabular environment
\usepackage{etoolbox} % To make table footnote font smaller
\usepackage{threeparttablex}
\appto\TPTnoteSettings{\footnotesize}

% Creating Index
\usepackage{imakeidx}
\makeindex

\usepackage{blindtext}
%\usepackage{showframe}

\usepackage{hyperref} % Hyperlinks

\usepackage[toc,acronym,automake]{glossaries}
\makeglossaries

%%%%%TEST_ZONE%%%%%%

\newacronym{as}{A.S.}{All Salt}
\newacronym{oal}{OAL}{Omni Apple Legend}
\newacronym{ept}{EPT}{Emile Pot Trauma}

%%%%%TEST_ZONE%%%%%%

%Table of Content depth
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{5}
\setlength{\parindent}{15pt}

%Hyperlinks for TOC
\makeatletter
\hypersetup{
	colorlinks,
	citecolor=blue,
	filecolor=blue,
	linkcolor=blue,
	urlcolor=blue
}

\begin{document}

\frontmatter

\mainmatter
	
\chapter{The Story}
	
\section{Data}
	
\gls{as} and \gls{oal} are terms used in the \gls{ept}.

Plants.\index{Plants}
Star.\index{star}
Mu.\index{Mu}
Sinis.\index{Sinis}
Ball.\index{Ball}
	
\chapter{Languages}
	
\section{Pronunciation}
	
\section{Scripts}

\backmatter

\printglossary[type=\acronymtype,title=Abbreviations]
\printindex

\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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Index and Abbreviations print ... not the Glossary.

Post by nlct »

This is a bit of a late reply, and you may have fixed it by now, but have you checked that the shell escape hasn't been disabled? Check the log file for the line:
restricted \write18 enabled.
and also for the line:
runsystem(makeindex -s doc.ist -t doc.glg -o doc.gls doc.glo)
(where the file is called "doc.tex"). It should be followed by "executed safely (allowed)" in restricted mode or just "executed" in unrestricted mode. If it's followed by "disabled", then the shell escape has been disabled and you'll have to run makeindex (or makeglossaries or makeglossaries-lite) between LaTeX calls.

Regards
Nicola Talbot
Post Reply