7

In german the unit "liter" is usually abbreviated with the lower case "l". But no matter whether I use \qty{}{\liter} or \qty{}{\litre}, the unit is always abbreviated with the capital letter "L". Any suggestions how to fix this?

\documentclass[ngerman]{scrartcl}

\usepackage{babel}
\usepackage{siunitx}

\begin{document}

\qty{2}{\liter} oder \qty{2}{\litre}

\end{document}

1 Answer 1

10

You should declare \litre with the symbol you want

\documentclass[ngerman]{scrartcl}

\usepackage{babel}
\usepackage{siunitx}
\DeclareSIUnit{\litre}{l}
\begin{document}

\qty{2}{\liter} oder \qty{2}{\litre}

\end{document}
10
  • 2
    Could it be that in earlier versions of siunitx \litre was abbreviated with the lower case letter "l" and not "L"? Commented Jun 29, 2021 at 16:28
  • 1
    Perhaps there should be a package option for this: the symbol for the liter is either l or L: both are accepted and siunitx should not force either (maybe with l as default, because it's listed first in the brochure).
    – egreg
    Commented Jun 29, 2021 at 16:30
  • 2
    @egreg The documentation of siunitx actually clarifies that: "In contrast to metres, however, there is more likelihood of users wishing to adjust the appearance of litres: both 'l' and 'L' are commonly used. The recommended approach to adjustment is to re-declare the \litre macro, as \liter will follow automatically. \DeclareSIUnit\litre{l}" (p. 52). Commented Jun 29, 2021 at 16:35
  • 1
    @ManuelWeinkauf I find it really awkward, because I spell “liter”. Also the symbol “L” is almost never used in Italy, for instance and it's almost always ”l”.
    – egreg
    Commented Jun 29, 2021 at 16:37
  • 1
    When I used siunitx about a month ago, I seem to remember that either \liter or \litre was abbreviated with the lowercase "l". It is a pity that I have to enter an extra command to correctly display the unit in german now. Commented Jun 29, 2021 at 16:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .