I've been having a bit of trouble typesetting (n-th power) Legendre symbols. I've set up the command
\newcommand{\Leg}[3][]{\left(\frac{#2}{#3}\right)_{#1}}
But, when I type e.g.
$$\Leg[3]{\pi}{\theta} = \Leg[3]{\theta}{\pi}$$
the symbol on the left is smaller than the one on the right:

I'd be very grateful if someone could suggest a way to make the symbols the same size. (Either a way to set up the \Leg command so it always outputs symbols of the same size, or an ad hoc way of adjusting the size each time I use \Leg would be great.)




\leftand\rightin favor of manual size specifications, because you do not want auto-sizing, but manual size (so that both have equal height). – TeXnician May 28 '18 at 17:38\Bigl(..\Bigr)and also don't use$$in LaTeX. – David Carlisle May 28 '18 at 17:44