19

Could anyone explain how I write units properly in LaTeX? In the form kg.s^-1. They come out all slanted and squished together when i use math mode and \frac.

pluton
  • 16,421

1 Answers1

27

The siunitx package will interpret the units correctly

enter image description here

\documentclass{article}
\usepackage{siunitx}
\begin{document}
\noindent%
\si{kg.s^{-1}}\\
\si{\kilogram\per\second} \\
\si[per-mode=symbol]
{\kilogram\per\second}
\end{document}
David Carlisle
  • 757,742
azetina
  • 28,884