12

I want to represent dBm in LaTeX. I have included the siunits package. But only dB is included. What is the best way to represent other units?

  • 8
    (1) Might be an idea to explain what dBm is, (2) It is explained in the manual how to define your own units or shortcuts to common unit combinations. – daleif Feb 15 '17 at 15:44
  • 3
    Is switching the package an option? Its easy to define your own units in the siunitx package ctan.org/pkg/siunitx?lang=en – samcarter_is_at_topanswers.xyz Feb 15 '17 at 16:08
22

With SIunits:

\documentclass{article}
\usepackage{SIunits}
\addunit\decibelm{dBm}
\begin{document}

\decibelm

\end{document}

I would (not surprisingly) use siunitx. This looks like a separate unit for which I might use

\documentclass{article}
\usepackage{siunitx}
\DeclareSIUnit{\belmilliwatt}{Bm}
\DeclareSIUnit{\dBm}{\deci\belmilliwatt}
\begin{document}

\si{\deci\belmilliwatt}
\si{\dBm}

\end{document}

On the other hand, if it's a qualifier then

\documentclass{article}
\usepackage{siunitx}
\sisetup{qualifier-mode = text}
\begin{document}

\si{\deci\bel\of{m}}

\end{document}
| improve this answer | |
  • thx Joseph! - one question: what do I need the \si for? I have tried, it works with $\dBm$ as well. – user123551 Feb 15 '17 at 17:58
  • @Luk In siunitx with the standard settings the unit macros are not globally defined, they are only available inside the arguments to \si and \SI. You can alter this if you wish. – Joseph Wright Feb 15 '17 at 18:08

Your Answer

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