我理解这个答案:https://tex.stackexchange.com/a/11880,本身就相当全面和精彩
但我想从 Overleaf 将 .tex 文件导出为图像
有没有可能实现这一点?最好使用独立LaTeX 包
这是我想要提取的 MWE;
\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
没有必要(也不应该)使用\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}