Testing a runlatex-cm6 JavaScript
Parameterised as requested by Stefan for his forum sites.
This drops the Overleaf link, just posting to TeXLive.net and supports
adding a guessed default preamble to fragments that have no \documentclass
or % !TEX ... ??tex
comment.
\documentclass{article}\usepackage{graphicx}\begin{document}something \includegraphics[height=1cm]{example-image}\end{document}
something \includegraphics[height=1cm]{example-image}
something \includegraphics[height=1cm]{example-image}something\begin{align}x+y&=1\\y&=2\end{align}
\tikz \draw[thick,rounded corners=8pt](0,0) -- (0,2) -- (1,3.25) -- (2,2) -- (2,0) -- (0,2) -- (2,2) -- (0,0) -- (2,0);
\DeclareMathOperator*{\Lim}{Lim}\begin{document}$\Lim f$
\qty[mode = text]{1.23}{J.mol^{-1}.K^{-1}}
An example from texwelt.de.
\documentclass[a4paper]{scrartcl}\usepackage{pstricks}\usepackage{pstricks-add}\usepackage[scale=1]{geometry}\begin{document}\begin{pspicture}[linecolor=red,linewidth=5pt](0,5)(0,0)\pscurve[showpoints=false](4.6,5.1)(3.9,3)(2.8,1.5)(1,0.3)(-0.05,-0.1)\end{pspicture}\begin{pspicture}[linecolor=blue,linewidth=5pt](0,-1)(0,0)\pscurve[showpoints=false](3.7,5.05)(3.2,3)(2.4,1.3)(1,-0.4)(0,-1.2)\end{pspicture}\end{document}
An example from learn LaTeX.
\documentclass{article}\begin{document}$ 2\pi \approx \directlua{ tex.print(2 * math.pi) } $\end{document}
# !TEX none# Editable bash scriptexport TEXINPUTS=zzzzexport PATH=somewhere
/* !TEX noedit */ void noneEditC(int x);