Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

I'm successfully generating a glossary, but for whatever reason I'm getting a rogue "Glossary" element before my first glossary entry, but after my Glossary heading. Here's the relevant example code:

\documentclass[10pt,ebook,oneside,openright]{memoir}
\usepackage{graphicx}
\usepackage[scaled]{berasans}
\usepackage[T1]{fontenc}
\usepackage{setspace}
\usepackage[toc,nonumberlist]{glossaries}

\chapterstyle{madsen}
\pagestyle{ruled}
\setsecnumdepth{subsection}
\renewcommand*\familydefault{\sfdefault}

\makeglossaries
\newglossaryentry{ge1}
{
  name={Entry 1},
  description={My first glossary entry.}
}

\begin{document}
\title{My Fancy Title}
\author{John Smith}
\date{March 2013}
\maketitle
\linespread{1.2}

\frontmatter
\tableofcontents

\mainmatter
\chapter{The House}
It was a dark and stormy night...

\backmatter
\glsaddall
\printglossaries
\end{document}
share|improve this question

marked as duplicate by lockstep, Werner, cgnieder, mafp, Herbert Mar 22 '13 at 21:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

1 Answer 1

up vote 4 down vote accepted

The problem stems from an incompatibility between memoir and glossaries. The simplest fix is to move \pagestyle{ruled} before glossaries is loaded.

\documentclass[10pt,ebook,oneside,openright]{memoir}

\pagestyle{ruled}% must be before glossaries is loaded

\usepackage{graphicx}
\usepackage[scaled]{berasans}
\usepackage[T1]{fontenc}
\usepackage{setspace}
\usepackage[toc,nonumberlist]{glossaries}

\chapterstyle{madsen}
\setsecnumdepth{subsection}
\renewcommand*\familydefault{\sfdefault}

\makeglossaries
\newglossaryentry{ge1}
{
  name={Entry 1},
  description={My first glossary entry.}
}

\begin{document}
\title{My Fancy Title}
\author{John Smith}
\date{March 2013}
\maketitle
\linespread{1.2}

\frontmatter
\tableofcontents

\mainmatter
\chapter{The House}
It was a dark and stormy night...

\backmatter
\glsaddall
\printglossaries
\end{document}
share|improve this answer
    
Apologies for the dupe, my searches apparently need work. –  John S Mar 22 '13 at 23:44
add comment

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