Siunitx
| Developer(s) | Joseph Wright |
|---|---|
| Written in | TeX |
| Engine | |
| Operating system | Cross-platform |
| Platform | LaTeX |
| Type | Typesetting |
| License | LaTeX Project Public License |
Search Siunitx on Amazon.
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
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
- 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
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
References
External links
This article "Siunitx" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Siunitx. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.
