4

I want to write that a quantity is of the order of say, 10 m/s. I have currently used the syntax below, but is there a way to write it completely into siunitx, or is the one considered below a reasonable way to do it?

$\mathcal{O}(\SI{10}{\meter\per\second})$
7

How about a mathtools-based solution? You get to decide whether to change \mathcal{O} to just the plain O without search/replace within your whole document. :)

\documentclass{article}
\usepackage{mathtools}
\usepackage{siunitx}
\setlength\parskip{\smallskipamount}

\DeclarePairedDelimiterXPP\BigOSI[2]%
  {\mathcal{O}}{(}{)}{}%
  {\SI{#1}{#2}}

\begin{document}

$\BigOSI{10}{\meter\per\second}$\par
$\BigOSI[\big]{10}{\meter\per\second}$

\end{document}

Big O

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.