2

As part of an image that I am generating I need the ability to shrink or grow part of a math expression by a numerically controlled/arbitrary amount. Can anyone think of a way to do this? For example I would like to shrink or grow the radical and everything in it, but leave the rest of the standard quadratic formula standard size.

denny
  • 21

1 Answers1

1

You might have some luck using the \scalebox command in the graphicx package. In the example below, I have defined a \grow{n}{...} command that scales the given expression by a factor n.

\documentclass{article}
\usepackage{graphicx}

\newcommand\grow[2]{\ensuremath{\scalebox{#1}{$#2$}}}
\begin{document}
\[
x = \frac{-b \pm \grow{3}{\sqrt{b^2 - 4ac}}}{2a}
\]
\end{document}

enter image description here