0

I'm running the following sample code from How to effectively use List of Symbols for a thesis?

\documentclass{report}
\usepackage{amsthm,xparse}
\ExplSyntaxOn
\usepackage[colorlinks]{hyperref}
\usepackage[symbols,nogroupskip,nonumberlist,sort=use]{glossaries-extra}
\usepackage{mfirstuc}
\usepackage{xkeyval}
\makenoidxglossaries

\glsxtrnewsymbol[description={position}]{x}{\ensuremath{x}}
\glsxtrnewsymbol[description={velocity}]{v}{\ensuremath{v}}
\glsxtrnewsymbol[description={acceleration}]{a}{\ensuremath{a}}
\glsxtrnewsymbol[description={time}]{t}{\ensuremath{t}}
\glsxtrnewsymbol[description={force}]{F}{\ensuremath{F}}

\begin{document}
    \tableofcontents
    \printnoidxglossary[type=symbols,style=long,title={List of Symbols}]
    
    \chapter{Sample}
    Reference symbols: $\gls{F}$, $\gls{t}$, $\gls{x}$, $\gls{v}$, $\gls{a}$.
    
\end{document}

And I receive the error "mfirstuc.sty Undefined control sequence. \MFUexcl{\ensuremath}"

I've tried installing all the packages I could see where missing but I'm just not getting it to compile. Please help

4
  • 1
    I get no error with texlive 2022. Probably unrelated but delete \ExplSyntaxOn Dec 5, 2022 at 21:34
  • 1
    also show the full error message from the log in a code block. the fragment of message you show is not the format tex uses, and does not show which command is undefined Dec 5, 2022 at 21:51
  • \MFUexcl is in version 2.08 of mfirstuc and not in previous versions. You may want to update your TeX system and retry.
    – egreg
    Dec 6, 2022 at 0:28
  • Thanks for that. The update of Tex worked
    – Vivan
    Dec 6, 2022 at 17:57

0

You must log in to answer this question.

Browse other questions tagged .