mmacells-sample

../_images/sphx_glr_mmacells-sample.svg
% mmacells https://github.com/jkuczm/mmacells
% mmacells.sty must be use the latest version on TeXLive 2021.
% See also https://newbedev.com/highlighting-mathematica-code-in-latex-document
% Do not magnify so much!

\documentclass[preview]{jlreq}
\usepackage[paperheight=20mm, paperwidth=100mm]{geometry}
\usepackage{mmacells}
\begin{document}

\begin{mmaCell}{Input}
\mmaSub{x}{1} == \mmaFrac{-\mmaUnd{\(\pmb{\beta}\)} \(\pmb{\pm}\) \mmaSqrt{\mmaSup{\mmaUnd{\(\pmb{\beta}\)}}{2} - 4 \mmaUnd{\(\pmb{\alpha}\)} \mmaUnd{\(\pmb{\gamma}\)}}}{2 \mmaUnd{\(\pmb{\alpha}\)}}
\end{mmaCell}

\end{document}