I understand that this answer : https://tex.stackexchange.com/a/11880, is quite comprehensive and brilliant in its own right
but i want to export a .tex file as an image from Overleaf
is there any possibility to achieve that ? preferable with the standalone LaTeX bundle
Here's the MWE i want to extract;
\documentclass[journal]{article}
\usepackage{msc}
% \usepackage{showframe}
\begin{document}
\makebox{\textwidth}
{
\setlength{\instdist}{2.25cm}
\setlength{\envinstdist}{1.07\envinstdist}
\begin{msc}{lul}
\declinst{d1}{L}{L\textsubscript{d1}}
\declinst{pi}{lul}{pi}\declinst{d2}{LL}{LL\textsubscript{d2}}
\mess{1. lol $\rightarrow \textbf{LUL} $}{d1}{pi}
\nextlevel[2]\mess{2. lul $\rightarrow \textbf{lol} $}{pi}{d2}
\end{msc}
}
\end{document}

\makebox{\textwidth}{...}withstandalone. – imnothere Dec 09 '22 at 01:44