edugame-railway-operation/figures/movement_example2.tikz

12 lines
908 B
Plaintext

%!TEX TS-program = pdflatexmk
% Copyright 2020 Martin Scheidt (Attribution 4.0 International, CC-BY 4.0)
% You are free to copy and redistribute the material in any medium or format. You are free to remix, transform, and build upon the material for any purpose, even commercially. You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits. No warranties are given.
\begin{scope}
\coordinate (base) at (0,0);
\draw [dashed] ([shift={(base)}] 10,0) rectangle ++(1,0.5);
\foreach \x in {-2,...,9}
\draw ([shift={(base)}] \x,0) rectangle ++(1,0.5) node [above=5pt,left,align=right] {\tiny \x};
\path[draw, line width=1pt, fill=white] (1.9,0.25) -- ++(-0.2,-0.2) -- ++(-2.6,0) -- ++(0,0.4) -- ++(2.6,0) -- cycle; % train
\end{scope}