5

I wish to horizontally scale the letter Λ (Greek letter Lambda), as I am unhappy with its current width. After reading Stretching text vertically, I tried using the command \scalebox{1.2}[1]{$\Lambda$} which works really well outside of mathmode. But, because of the $'s, it doesn't compile properly whenever I use it in a math environment. Are there any tricks around this?

I would be very grateful to anyone who can provide an answer that does not include a required package, but instead can provide the command that the package implements to stretch the letter (I try to use as little packages as possible and instead pick and choose the commands I need from particular ones). Of course, if a package is required to do this, then I will be happy with that answer regardless.

1
  • the scalebox you show works the same in math mode as not, so if you got an error something else was wrong. (to make it smaller in subscripts you need mathpalette/mathchoice as egreg showed) – David Carlisle Mar 4 '17 at 20:51
4

I wouldn't do it, but it's a standard application of \mathpalette:

\documentclass{article}
\usepackage{graphicx}

\mathchardef\normalLambda=\Lambda

\renewcommand{\Lambda}{{\mathpalette\scaledLambda\relax}}
\newcommand{\scaledLambda}[2]{\scalebox{1.2}[1]{$#1\normalLambda$}}

\begin{document}

$X\normalLambda Y_{\normalLambda}$ (normal)

$X\Lambda Y_{\Lambda}$ (scaled)

\end{document}

enter image description here

2
  • This is exactly what I was after! May I ask why you wouldn't do it (and what you would do instead)? – Bill Wallis Mar 4 '17 at 20:30
  • @BillWallis I'd keep the Lambda as is. – egreg Mar 4 '17 at 20:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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