16

I want to show 100 MBps (one hundred mega byte per second) in my article. How to make use of siunitx package to produce the rate correctly?

The following outputs are not what I want to get.

enter image description here

  • Why? You should not use p as a divisor symbol. Better use /. / is better because we already us it for numeric divisions and it is language independent. The correct unit symbol is MB/s not MBps nor MBPs. And there are units which start with a P. – 12431234123412341234123 Jul 06 '21 at 16:01

2 Answers2

20

You could do something like

\documentclass{article}
\usepackage{siunitx}
\sisetup{per-mode=symbol,per-symbol = p}
\begin{document}
\SI{100}{\mega\byte\per\second}
\end{document}
Joseph Wright
  • 259,911
  • 34
  • 706
  • 1,036
  • 7
    I would not like to encourage this, as it mixing up separate units (here bytes and seconds). I'd also point out that the correct prefix for binary units would be mebi not mega! – Joseph Wright May 15 '12 at 05:48
  • I will think of it later for my other projects even though your suggestion is absolutely correct. – kiss my armpit May 15 '12 at 05:55
  • In my experience, rate is often used with decimal units whereas capacity is often used with binary units. And I agree with not using the ps abbreviation for "per second", but the user gets to choose (alas). – Jean-Christophe Dubacq May 15 '12 at 06:16
  • 1
    Is \SI{100}{MBps} exactly identical to \SI[per-mode=symbol,per-symbol = p]{100}{\mega\byte\per\second}? I am afraid I will lose some useful features provided by the latter if I use the former. – kiss my armpit May 15 '12 at 06:49
  • 2
    The output is identical, but you loose the possibility for any automated reformatting. For example, if you decided (or perhaps a editor decided) to use Mb\,s^{-1} rather than Mbps, with the unit macros all you have to do is change an option. – Joseph Wright May 15 '12 at 06:53
  • 2
    About binary vs. decimal units the following link should be helpful: http://en.wikipedia.org/wiki/Binary_prefix#Specific_units_of_IEC_60027-2_A.2_and_ISO.2FIEC_80000 – Martin Scharrer May 15 '12 at 10:24
  • Not as automated, but: sed -e 's/{MBps}/{something else}/' – qubyte May 15 '12 at 11:00
9

It is not a kosher SI unit, but since you and other people in your field use it anyway, just say \SI{100}{MBps}.

Boris
  • 38,129