Jump to content

Draft:Siunitx

From Wikipedia, the free encyclopedia
siunitx
Developer(s)Joseph Wright
Written inTeX
Operating systemCross-platform
PlatformLaTeX
TypeTypesetting
LicenseLaTeX Project Public License

Siunitx is a LaTeX extension add-on designed to provide a consistent and comprehensive interface for typesetting SI units and numbers for computational physics. It ensures proper formatting according to the International System of Units (SI) and is widely used in academic and scientific publications.[1]

Overview

[edit]

The siunitx package simplifies the process of writing physical quantities and units in LaTeX documents. It interprets input in a standardized way and automatically applies appropriate spacing, fonts, and styles. For example, it distinguishes between numerical values and their units, formats them correctly, and supports localization features such as decimal markers.

Features

[edit]
  • Consistent typesetting of units, including support for prefixes like kilo (k), mega (M), and milli (m)
  • Automatic spacing between numbers and units
  • Support for scientific notation
  • Localization of decimal markers (e.g., comma or period)
  • Table alignment using numerical data
  • Customizable appearance for numbers and units

Usage

[edit]

In a LaTeX document, users load the package with:

\usepackage{siunitx}

To write a quantity, they can use:

\SI{9.81}{\metre\per\second\squared}
This produces:
9.81 m/s²


\unit{\Hz\tothe{0.5}} \\
\unit[power-half-as-sqrt]{\Hz\tothe{0.5}}
This produces:

See also

[edit]

References

[edit]
[edit]