Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

up vote 14 down vote accepted

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}
share|improve this answer
6  
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 5:48
    
I will think of it later for my other projects even though your suggestion is absolutely correct. –  cyanide-based food May 15 '12 at 5:55
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. –  cyanide-based food May 15 '12 at 6: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 6:53
2  
About binary vs. decimal units the following link should be helpful: en.wikipedia.org/wiki/… –  Martin Scharrer May 15 '12 at 10:24

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

share|improve this answer
    
Actually I have tried this approach but I am not sure whether it is exactly equal to \SI[per-mode=symbol,per-symbol = p]{100}{\mega\byte\per\second}. –  cyanide-based food May 15 '12 at 6:10
    
@Forgiver: It appears to be identical. In what way is it different? I may be missing a slight difference in spacing or something. –  qubyte May 15 '12 at 6:42
1  
@MarkS.Everitt: I will ask the author for this doubt. –  cyanide-based food May 15 '12 at 6:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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