[texhax] big-O, little-o notation

Philip G. Ratcliffe philipratcliffe at tiscali.it
Sat Jan 10 14:26:31 CET 2004


> Ross Moore's solution
>
> \providecommand{\OO}[1]{\operatorname{O}\bigl(#1\bigr)}
>
> with usage
>
> $\OO{f(n)}$
>
> is elegant, and has a number of nice features, but is less flexible
> in allowing for really big arguments in a displayed equation.

Well, you could substitute \bigl and \bigr with \left and \right:

\providecommand{\OO}[1]{\operatorname{O}\left(#1\right)}

Inserting something like \strut between a should also guarantee a slightly
larger pair always.

Cordialmente,  Philip G. Ratcliffe



More information about the texhax mailing list