siunitx-pixel.tex 638 B

12345678910111213141516
  1. \documentclass[a4paper,9pt]{scrartcl}
  2. \usepackage{amssymb, amsmath} % needed for math
  3. \usepackage[utf8]{inputenc} % this is needed for umlauts
  4. \usepackage[ngerman]{babel} % this is needed for umlauts
  5. \usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
  6. \usepackage[margin=2.5cm]{geometry} %layout
  7. \usepackage{hyperref} % links im text
  8. \usepackage[binary-units = true]{siunitx} % this package is for units!
  9. \DeclareSIUnit\px{px}
  10. \begin{document}
  11. My display has a resolution of $\SI{1366}{\px} \times \si{768}{\px}$.
  12. The speed of a modem is $\SI[per-mode=symbol]{57.6}{\kilo\bit\per\second}$
  13. \end{document}