0

If I use umlauts in the glossary label, LaTeX does throw a lot of exceptions, one of them:

Missing \endcsname inserted. ...lgröße}{name={},plural={},description={}}

MWE:

\documentclass[pdftex]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[]{glossaries}

\newglossaryentry{Zielgröße}{name={},plural={},description={}}

EDIT: How can I get the glossary to work with umlauts?

Marvin
  • 147
Spenhouet
  • 952

2 Answers2

3

don't use Umlauts in the key:

\documentclass[pdftex]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[]{glossaries}

\newglossaryentry{Zielgroesse}{name={sample},plural={},description={}}

here is my \gls{Zielgroesse} exemplar

produces 'here is my sample exemplar'.

  • I know that this is working. That was not the question. The question was how i get it to work. I just found out the answer by my self. I will post it in a minute. – Spenhouet May 13 '16 at 13:44
  • 2
    but your code shows you were using pdfTeX which does not recognise Umlauts as linguistic Umlauts. Hence, I provided you with a solution based upon the Information you gave. If by 'how I get it to work' meant how could one can actually use Umlauts in the glossary key then you have found a way. – Steve Hodgkinson May 13 '16 at 14:13
  • Yes, that was what i tried to say. Sorry for the misunderstanding through my bad english. – Spenhouet May 13 '16 at 14:21
0

I found out how i can use umlauts in the glossarentry key.

First i learned that Latexmk, with witch i build the latex documents, just can't read something else than ASCI (no utf-8). The comand \usepackage[utf8]{inputenc} just changes the umlauts into macros and that is where the error comes from in the glossaries package.

As solution i could use XeTeX or LuaTeX.

Source (german)

I decided for LuaLaTeX but got some new errors and also had to change the following:

  • delete \usepackage[utf8]{inputenc}
  • change \usepackage[T1]{fontenc} to \usepackage{fontspec}
  • change \usepackage{lmodern} to \usepackage{mathpazo}
  • delete \usepackage{pdfpages}
  • change Bibtex to Biber

Source for the need of fontspec and a new font

Now, everything works great!

Spenhouet
  • 952