Hi so I'm trying to export an image such as the one below:

Given by the code:
\begin{align*}
\text{Solving: } 5^{n+2}&=8:\\
\log_5\left(5^{n+2}\right)&=\log_5(8),\\
n+2&=\log_5\left(2^3\right),\\
n&=3\log_5(2)-2\approx \boxed{-0.708}.\\
\end{align*}
I got that image using the snipping tool, but I was wondering if there is a good way to just generate this image as a standalone image by latex? I'm not quite sure. I'm really new to latex so any help would be appreciated! I mainly use overleaf, so if anyone knows how to do this for overleaf that would be great!
Was told to specify OS: Windows 11.
Oh and finally, just a side, if anyone has suggestions for how to better format that solution, that would be great too. I thought my align way was pretty good, but it does shift to the right a bit and look a bit weird. Any suggestions appreciated!




standalonedocumentclass a try. Otherwise, you probably should specify which OS you're working with, as some external tools aren't available on every plateform (I'm thinking about the excellent LaTeXit, which is macOS only). – Miyase Jun 06 '22 at 02:12dvipng,pdftoppm, or theconvertcommand from ImageMagick, just to name a few options. – Willie Wong Jun 06 '22 at 02:31