2

I want to use a symbol f in some of my equations (to denote a very important function), and I want it to stand out, so I was thinking of boosting its size. Unfortunately, I cannot find a way of enlarging particular parts within an equation, as opposed to enlarging an equation as a whole (with, for instance, \scaleboxfrom graphicx package) or shrinking a particular part (with, for instance, \scriptsize of mathtools). Of course, I could make a separate equation for every f, but this would be quite messy in practice, and it is hard to phrase as a \newcommand (and I definitely want a \newcommand{\f} for this).

So, is there a way I can go about obtaining the enlarged f in math mode?

2 Answers2

4

You can use relsize:

\documentclass{article}
\usepackage{relsize}

\newcommand{\fso}{\mathlarger{\mathlarger{f}}}% f stand out

\begin{document}

Standard $f$ and larger $\mathlarger{f}$,
with even larger $\mathlarger{\mathlarger{f}}$

$\fso(x)\ne f(x)$

\end{document}

enter image description here

egreg
  • 1,121,712
3

You can use something like this:

\newcommand{\bigf}{\text{\Large $f$}}

and then use

\bigf
sporc
  • 643