4

I'm using the mathastext package in order to get a sans math font throughout the document.

Unfortunately then the \ell command is undefined. Is there any way, to get this back, e.g. with unicode usage, but how?

MWE:

\documentclass{scrartcl}

\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amssymb}

\renewcommand\familydefault\sfdefault
\usepackage[symbolgreek,defaultmathsizes]{mathastext}
\renewcommand\familydefault\rmdefault

\begin{document}
$\ell$
\end{document}
  • 1
    this bug is fixed in mathastext 1.3h. – user4686 Nov 2 '15 at 20:00
6

This restores an \ell whether it fits well with your font choice I leave for you to judge:-)

\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[T1]{fontenc}

\usepackage{amsmath}
\usepackage{amssymb}

\renewcommand\familydefault\sfdefault
\let\xell\ell
\usepackage[symbolgreek,defaultmathsizes]{mathastext}
\let\ell\xell
\renewcommand\familydefault\rmdefault

\begin{document}
$\ell$
\end{document}
  • Well, simple and just what I needed. Thanks a lot. – Rafael Wörner Jun 9 '15 at 15:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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