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.

SOLVED

The cause of the problem was the include(s) at top of my main tex file, i changed them to input and now it works.

I've read the documentation of the glossary package and a lot of examples (g.e. this, or this), but my glossary items will be referenced, the glossary itself otherwise won't be printed. All the other indexes/toc are working. Has someone an idea?

Minimal working example:

\documentclass{scrreprt}
\usepackage[toc,acronym]{glossaries} 

\makeglossaries

\newglossaryentry{bar}{name={bar}, description={\ldots}}
\newglossaryentry{baz}{name={baz},description={\ldots}}

\newacronym{foobar}{foobar}{\ldots}

\begin{document}
\section{foo section}
Lorem ipsum \gls{bar} \gls{baz} and \gls{foobar}.

\printglossary[type=main,title={Glossary},toctitle={Glossary}]
\thispagestyle{empty}\cleardoublepage
\printglossary[type=\acronymtype,title={List of Abbreviations},toctitle={List of Abbreviations}]

\end{document}

Below the one that makes problems:

Makefile:

all:
xelatex thesis
biber thesis
makeglossaries thesis
xelatex thesis

thesis.tex

\RequirePackage[l2tabu, orthodox]{nag}
\documentclass[a4paper]{scrreprt}

\include{header/header}
\include{header/commands}
\include{header/settings}

\makeglossaries
\bibliography{bibliography/thesisbib}

\include{appendix/glossary}

\begin{document}
\input{variables/global}

\pagenumbering{roman}
\begin{titlepage}
    \input{frontpage/frontpage}
\end{titlepage}
\newpage
\input{frontpage/title_backside}
\newpage

{
    \onehalfspacing
    \input{abstract}
}
\blankpage{\thesisBlankPageText}

\tableofcontents
\blankpage{\thesisBlankPageText}

\pagenumbering{arabic}
\chapter{foo}    
\section{bar}    
\gls{computer} is a machine and \gls{mah}, \gls{aca}.
\blankpage

\appendix 
\pagenumbering{Alph}

\cleardoublepage
%\addcontentsline{toc}{subsection}{Glossar}
\glsaddall
\printglossary[type=main,title={Glossary},toctitle={Glossary}]

\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures
\addcontentsline{toc}{chapter}{\listtablename}
\listoftables
\addcontentsline{toc}{chapter}{\bibname}
\input{bibliography/bibliography}
\end{document}

glossary.tex:

\newglossaryentry{computer}
{
  name=computer,
  description={\ldots}
}
\newglossaryentry{mah}
{
  name=mah,
  description={\ldots}
}
\newacronym{aca}{aca}{a contrived acronym}
share|improve this question

closed as too localized by tohecz, egreg, Claudio Fiandrino, mafp, Torbjørn T. Jun 1 '13 at 11:18

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
You should provide a compilable example, so that one can reproduce your issue. –  karlkoeller May 31 '13 at 15:32
    
What are all those \includes doing in the preamble? If they are files containing 'personal' commands and so forth, you should name them .sty and load them as normal packages \usepackage. (Note this is not likely the source of your problem, but it is impossible to tell since we don't know what's in them. If they are not related to the problem, you should remove them from a minimal(!) example; and if they are related, then you need to elaborate on their contents.) –  jon May 31 '13 at 16:30
    
It also looks like you are calling your bibliography twice..? –  jon May 31 '13 at 16:31
1  
@jon Using \input is perfectly fine; surely \include is out of place in the preamble. –  egreg May 31 '13 at 16:40
1  
Does makeglossaries produce any error messages? Are there any errors in the glossary log files (.glg etc)? –  Nicola Talbot May 31 '13 at 17:20
show 3 more comments

Browse other questions tagged or ask your own question.
http://tex.stackexchange.com/questions/117022/couldnt-get-glossaries-to-work-solved
tex.stackexchange.com
crawl=CC-MAIN-2014-23
58638
application/http; msgtype=response
sha1:CPIAVZRYT4VC4Y7WEOXBTROTMO3IOVGA
<urn:uuid:b44e55ed-1eda-47bd-b811-9b39e05e1bd1>
2014-07-22T16:04:22Z
198.252.206.16
sha1:2O5Q7EB3Q537FXHNUTZTIGMEHTAS3SFW
<urn:uuid:c809e6a3-1e86-4811-92a2-6f49b53bf41d>
http://tex.stackexchange.com/questions/117022/couldnt-get-glossaries-to-work-solved
response
<urn:uuid:7eaca34d-3760-4782-8e71-2c8147ad2d51>
robots: classic
hostname: ip-10-33-131-23.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-23
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for July 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf