I´d like to use the following environment from amsmath-package for a glossary-entry but latex fails (TexStudio with pdflatex):
\begin{Bmatrix}...\end{Bmatrix}
Here is my MWE:
\documentclass{scrbook}
\usepackage{amsmath}
\usepackage{glossaries}
%
\begin{document}
\section{in Textmode everything is fine}
$\begin{Bmatrix}W_{ij}\end{Bmatrix}$, brackets with the required height
%
\section{trying the same using glossaries}
%
the working one:\par
%
\newglossaryentry{mat:Wij}{%
name=\ensuremath{\left\{W_{ij}\right\}},
description={working entry, tensor brackets manually}
}%
%
\gls{mat:Wij}, Problem: brackets don´t have the required height\\
\\
%%
the one with the following mistake:\par
line 30: Undefined control sequence. \} \\
%
%\newglossaryentry{mat:Mij}{%
%name=\ensuremath{
%\begin{Bmatrix}
%M_{ij}
%\end{Bmatrix}},
%description={entry with mistake, tensor brackets by Bmatrix-command}
%}%
%%
%\gls{mat:Mij}, brackets with the required height
\end{document}
\parand when\\. – Nicola Talbot Sep 07 '16 at 18:17