Math & Sciencesiunitx | Atoms as Units

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

siunitx | Atoms as Units

Post by niles »

Hi

I wish to write the units of a quantity as atoms/s, in other words something as

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage[per-mode=symbol, exponent-product = \cdot]{siunitx}

\begin{document}
\[
\SI{1e12}{\atoms\per\second}
\]
\end{document}
Is there any way to achieve this with SIunitx? Thanks for any help.

Best,
Niles.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

siunitx | Atoms as Units

Post by localghost »

Simply declare a new unit as described in Section 4.5 of the siunitx manual.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{siunitx}

\sisetup{
  per-mode=symbol,
  exponent-product = \cdot
}

\DeclareSIUnit{\atom}{at}

\begin{document}
  \[
    \SI{1e12}{\atom\per\second}
  \]
\end{document}

Thorsten
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

Re: siunitx | Atoms as Units

Post by niles »

Thanks.

Best,
Niles.
Post Reply