blob: bd542a3005a1097a91e159bcc86b647c39631d62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
\documentclass{standalone} % LaTeX
\usepackage{tikz-trackschematic} % loading the library
\begin{document}
\begin{tikzpicture}
% TikZ command: specify coordinates
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (T) at (5,0);
% draw a track
\maintrack (A) -- (B);
% place a train on the track
\train[forward] at (T) label ();
\end{tikzpicture}
\end{document}
|