public static MathSource FromLaTeX(string latex) { var(mathList, errorMessage) = LaTeXBuilder.TryMathListFromLaTeX(latex); return(new MathSource(mathList) { ErrorMessage = errorMessage, _latex = latex }); }