I was testing something with Overleaf, and then a weird result was output.
What's more weird is that I went to a Discord server where a TeX-rendering engine exists. This is its result:
It's a really simple piece of code:
\Huge$$\sqrt[3]{\frac{100}{300}}$$
While This one looks better, I like how the first one appears. How can I keep the look of the first cube root, but also align the 3 properly? Also, why's this happening?
UPDATE: This question is related to the original one.
I defined a new command that is a mirror of the root (\newcommand{\asqrt}[2][1]{\reflectbox{\ensuremath{{\sqrt[#1]{#2}}}}}
) in the preamble. Its size is smaller than the normal root:
Here's how I call both of them:
\Huge\[\ \sqrt[n]{\frac{100}{300}} \quad \asqrt[n]{\frac{100}{300}}\]\
Why are they different?
$$
should not be used in latex\reflectbox
will make the argument in\textstyle
instead of\displaystyle
. If you add\displaystyle
before the\sqrt
in the definition of\asqrt
, it should match.\newcommand{\asqrt}[2][1]{\reflectbox{\ensuremath{{\displaystyle\sqrt[#1]{#2}}}}}