edugame-railway-operation/figures/composition.tikz

46 lines
2.5 KiB
Plaintext

%!TEX TS-program = pdflatexmk
%!TEX root = composition.tex
% 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}[>=latex]
\coordinate (base) at (0,0);
\draw [dashed] ([shift={(base)}] 0,0) rectangle ++(1,0.5);
\draw [dashed] ([shift={(base)}] 15,0) rectangle ++(1,0.5);
\foreach \x in {1,...,14}
\draw ([shift={(base)}] \x,0) rectangle ++(1,0.5);
\draw [<->] ([shift={(base)}] 10.5,0.9) -- ++ (4,0) node [fill=white,midway] {
\IfLanguage{english}{train movement}
\IfLanguage{ngerman}{Zugbewegung}
};
\draw ([shift={(base)}] 5,1.1) -- ++(0,-0.4) -- ++ (3,0) -- ++(0,0.4);
\draw ([shift={(base)}] 5,0.8) -- ++ (3,0) node [above,midway] {
\IfLanguage{english}{platform}
\IfLanguage{ngerman}{Bahnsteig}
};
% distant signal
\draw [dashed] ([shift={(base)}] 2,-0.1) -- ++(0,-0.2) -- ++(1,0) -- ++(0,0.2);
\path[draw, line width=1pt] ([shift={(base)}] 2,-0.3) -- ++(0,-0.2) -- ++(0.3,0);
\path[draw, line width=1pt] ([shift={(base)}] 2.3,-0.5) -- ++(0.2,0.15) -- ++(0,-0.3) -- cycle;
\draw [->] ([shift={(base)}] 5.0,-0.5) -- ([shift={(base)}] 2.9,-0.5) node [near start,align=right,fill=white] {
\IfLanguage{english}{distant signal}
\IfLanguage{ngerman}{Vorsignal}
};
% block signal
\draw [dashed] ([shift={(base)}] 9,-0.1) -- ++(0,-0.2) -- ++(1,0) -- ++(0,0.2);
\path[draw, line width=1pt] ([shift={(base)}] 9,-0.3) -- ++(0,-0.2) -- ++(0.5,0);
\path[draw, line width=1pt] ([shift={(base)}] 9.5,-0.65) rectangle ++(0.3,0.3);
\draw [->] ([shift={(base)}] 6.5,-1.2) -- ([shift={(base)}] 8.9,-0.6) node [near start,align=right,fill=white] {
\IfLanguage{english}{block signal}
\IfLanguage{ngerman}{Blocksignal}
};
% clearing point
\path[draw, line width=1pt] ([shift={(base)}] 10,-0.3) -- ++(0,-0.1);
\path[draw, line width=1pt] ([shift={(base)}] 9.95,-0.4) rectangle ++(0.1,-0.1);
\draw [->] ([shift={(base)}] 13.5,-0.8) -- ([shift={(base)}] 10.2,-0.45) node [near start,align=right,fill=white] {
\IfLanguage{english}{block clearing point}
\IfLanguage{ngerman}{Signalzugschlussstelle}
};
\end{scope}