0

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}

1 Answers1

1

There is no need to (and you shouldn't) use \makebox{\textwidth}{...} with standalone:

\documentclass[preview]{standalone}
\usepackage{msc}

\begin{document}

\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}

example output of code

imnothere
  • 14,215
  • what if the drawn figure is quite wide ? the figure i want to draw is quite large and if i use your suggested code, it keeps going out of bounds .. – Muhammad Yasir Dec 09 '22 at 20:22