Debian Codegraph @

texmf-dist/doc/latex/tikz-trackschematic/tikz-trackschematic-examples/minimal_working_example.tex

raw
1 \documentclass{standalone}
2
3 % loading the library
4 \usepackage{tikz-trackschematic}
5
6 \begin{document} % LaTeX
7 \begin{tikzpicture} % TikZ
8
9 % draw a track with (x,y) coordinates
10 \maintrack (0,0) -- (6,0);
11
12 % place a train on the track
13 \train[forward] at (5,0) label ();
14
15 \end{tikzpicture}
16 \end{document}