Math & ScienceSIunitx support

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 support

Post by niles »

HI

Please take a look at my MWE:

Code: Select all

\documentclass[a4paper]{article}
\usepackage{amsmath} 
\usepackage{siunitx} 
\usepackage[sc]{mathpazo}

\begin{document}
$\delta_0=-2\pi \cdot \SI{60}{\mega\hertz}$ 
\end{document}
What I am unsure of is whether or not I am using SIunitx correctly. Somehow I would like to think that 2*pi can go inside the SI-call, i.e. something like:

Code: Select all

$\SI[output-product = \cdot]{2\pi x 60}{\mega\hertz}$ 
However this produces (2*pi MHz) * (60 MHz). Is there a more correct way to get 2*pi*60 MHz other than my first suggestion?

Best,
Niles.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

SIunitx support

Post by cgnieder »

This should work

Code: Select all

$\SI[parse-numbers=false]{2\pi\cdot 60}{\mega\hertz}$
but I think your first example is both easier to write and semantically more correct

Code: Select all

$2\pi\cdot\SI{60}{\mega\hertz}$
Regards
site moderator & package author
Post Reply