4

I am trying to produce a small letter version of \mathcal{O} which looks the same, just smaller - like "O" and "o". However \mathcal{o} produces a very different symbol. Has anyone an idea how to manage this?

2
  • only uppercase letters are implemented for the default \mathcal. another font will be required. there aren't any listed in the "comprehensive symbols list" (texdoc comprehensive, but i think there's a lowercase alphabet in the stix and xits fonts. search for those names in this forum; unfortunately, i haven't time to do that research now. Jul 11, 2014 at 15:27
  • oh, welcome to TeX.SX!. Jul 11, 2014 at 15:28

2 Answers 2

7
% arara: pdflatex

\documentclass{article}
\usepackage{graphicx}
\newcommand\smallO{
  \mathchoice
    {{\scriptstyle\mathcal{O}}}% \displaystyle
    {{\scriptstyle\mathcal{O}}}% \textstyle
    {{\scriptscriptstyle\mathcal{O}}}% \scriptstyle
    {\scalebox{.7}{$\scriptscriptstyle\mathcal{O}$}}%\scriptscriptstyle
  }

\begin{document}
$\mathcal{O} \smallO$
\end{document}

enter image description here

1
  • 2
    thanks a lot; I changed the factor in \scalebox from 0.7 to 0.6, so it has the perfect "smallness"^^
    – user58954
    Jul 11, 2014 at 16:53
5

\mathcal{} uses only CAPITAL LETTER ALPHABETS. To use small letter alphabets, you can use \mathscr{}, which also supports CAPITAL LETTER ALPHABETS. To use \mathscr{}, you need to include the package unicode-mathand use the font XITS Math and compile the document using xelatex or lualatex.

Here is an MWE:

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{XITS Math}
\begin{document}
$\mathcal{O}$ with \verb+\mathcal{}+ \par
$\mathscr{o}$ with \verb+\mathscr{}+ \par
$\mathscr{O}$ with \verb+\mathscr{}+
\end{document} 

enter image description here

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