Until now I used the numprint package to display the units correctly. But since the solution given by @egreg to this question: package eurosym: how to change the decimal separator?, I try to code everything with a single package: siunitx.
The problem is that I can't get the same display as with numprint.
For example, the abbreviation for liter is "l" (lowercase "ell"). Under beamer, it is without serif, which poses reading problems to young students who begin learning units of measurement, because one can confuse it with a stylized number "1".
\documentclass[a4paper, 11pt]{beamer} % Présentation générale et mise en page
\usepackage[french]{babel}
\usepackage[np]{numprint}
\usepackage{siunitx}
\sisetup{locale=FR}
\begin{document}
Avec numprint: Le bol contient \numprint[l]{0.3} de thé vert.
Avec siunitx: La bouteille contient \SI{0.75}{\litre} de vin.
\end{document}
Output:
Edit: The global detect-all option does not solve this problem. Specifically, the dectect-all option doesn't affect the font used for the units; see the following code and screenshot.
\documentclass[a4paper, 11pt]{beamer} % Présentation générale et mise en page
\usepackage[french]{babel}
\usepackage[np]{numprint}
\usepackage{siunitx}
\sisetup{locale=FR,detect-all}
\begin{document}
Avec numprint: Le bol contient \numprint[l]{0.3} de thé vert.
Avec siunitx: La bouteille contient \SI{0.75}{\litre} de vin.
\end{document}
How to get the same font combination as numprint when printing with siunitx?
Translated with www.DeepL.com/Translator



\sisetup{detect-all}– Henri Menke Jul 14 '18 at 06:57\numprintuses -- in abeamerdocument, at least -- sans-serif for the numbers and math-rm for the unit. A rather unusual setting, no doubt. This setting can't be replicated by specifyingdetect-allas one of thesiunitxoptions. – Mico Jul 14 '18 at 07:16L,lor\ell. however the english Wikipedia\ellin parens and points to the official (?) guide, where onlylandLare mentioned. I’d choose this on based on context: For non scientists (like on a bottle of water or in a popular text)\ellwould be fine, however in most fonts it is more like an … – Tobi Jul 15 '18 at 07:48Lis they to go when your typeface has indistinguishable forms for l=l, I=I(and maybe even 1=1) like the typeface used here. – Tobi Jul 15 '18 at 07:51l,Lor\ellshould be a new question, but on this site it would be considered off-tipoc since it has nothing to do with TeX … you could look for another StackExcahnge site (maybe Physics, Graphic Design or English Language) or you ask a question at https://typography.guru … – Tobi Jul 15 '18 at 09:11numprintor withsiunitxdoes not concern LaTeX? – AndréC Jul 15 '18 at 09:16Lwhen there’s no prefix andlotherwise) of course wasn’t answered jet. And is perfectly ok for a new question here on TeX.SX. However fo the reader a mixture ofLandlfor the same unit would be confusing … I’d stick to one symbol for all cases (indecently of having a prefix or not). – Tobi Jul 15 '18 at 19:46