# Rescaling a math symbol?

I am trying to rescale a math symbol while using the amsbook package. At first I was using the relsize package, but it creates clashes with the AMS packages: Amsart with algorithm2e introduces extraneous text into pdf file with Texlive 2011.

Then, I read here Change font size relative to current font size that the amsbook has a similar option. I looked it up, and there is the \larger command. But it doesn't work. I used:

  \newcommand{\Alpha}{\larger{\alpha}}


and the \alpha does not change in size.

Any ideas how to rescale the \alpha so that it is relatively larger (I used to use mathlarger from relsize which worked fine, but created clashes with AMS packages, as I said)?

-
Do you need the symbol also in subscripts/superscripts? –  egreg May 5 '13 at 12:33
@egreg, not really, no. it would be nice to have the option, but I can go without it. –  kloop May 5 '13 at 12:36

The AMS classes have a \larger command that works out of the box:

\documentclass{amsart}
\newcommand{\Alpha}{\mbox{\larger$\alpha$}}

\begin{document}
$\alpha\Alpha$

\Large
$\alpha\Alpha$

\end{document}


This won't work in subscripts/superscripts, though. Unfortunately \text doesn't update \@currsizeindex, so using \text instead of \mbox, which would be the obvious attempt, doesn't give the desired result.

A possible way out is to update the sizes manually:

\documentclass{amsart}
%\newcommand{\Alpha}{\mbox{\larger$\alpha$}}

\newcommand{\Alpha}{\mathchoice
{\mbox{\larger$\alpha$}}
{\mbox{\larger$\alpha$}}
{\mbox{\larger[-2]$\alpha$}}
{\mbox{\larger[-4]$\alpha$}}
}

\begin{document}
$\alpha\Alpha_{\alpha\Alpha_{\alpha\Alpha}}$

\Large
$\alpha\Alpha_{\alpha\Alpha_{\alpha\Alpha}}$

\end{document}


-
thanks! it works. –  kloop May 5 '13 at 12:46

You can achieve arbitrary scaling with the scalerel package. I demonstrate here with \Alpha as 1.5 times the original. (Note: in this case, \scaleobj is functionally equivalent to a \scalebox that defaults to math mode)

\documentclass{article}
\usepackage{scalerel}
\newcommand\scaleobj[2]{\hstretch{#1}{\vstretch{#1}{#2}}}
\newcommand\Alpha{\scaleobj{1.5}{\alpha}}
\begin{document}
$$\alpha\Alpha$$
\end{document}

-