blob: 83ef3d283353ca6139b30e8008cad6007fc74ded (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
\documentclass[border=5mm]{standalone}
\usepackage{luamplib}
\begin{document}
\mplibtextextlabel{enable}
\begin{mplibcode}
beginfig(1);
draw (left--right) scaled 2in withcolor 2/3 red;
for i=-4 upto 4:
dotlabel.top("$" & decimal i & "$", (32i, 0));
endfor
endfig;
\end{mplibcode}
\end{document}
|