tikz-trackschematic/test/clearingpoints.tikz

48 lines
2.0 KiB
Plaintext
Raw Normal View History

%!TEX TS-program = pdflatexmk
%!TEX root = test.tex
% Copyright (c) 2018 - 2021, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\node[blue] at (4,0) {\large test clearing points symbols};
\foreach \i in {1,2,...,5}{% base coordinate
\coordinate (A\i) at ($(0,0) + 2*(0,-\i)$);% base coordinate
\coordinate (B\i) at ($(8,0) + 2*(0,-\i)$);% base coordinate
}
\foreach \i in {1,2,...,5}{% draw main tracks on base coordinate
\maintrack (A\i) -- (B\i);
}
\foreach \i in {1,2,...,5}{% coordinates for testing symbols
\coordinate (X\i-1) at ($(1,0) + 2*(0,-\i)$);
\coordinate (X\i-2) at ($(3,0) + 2*(0,-\i)$);
\coordinate (X\i-3) at ($(5,0) + 2*(0,-\i)$);
\coordinate (X\i-4) at ($(7,0) + 2*(0,-\i)$);
}
\clearingpoint[] at (X1-1) label (X1-1);
\clearingpoint[backward] at (X1-2) label (X1-2);
\clearingpoint[forward ,position=left] at (X1-3) label (X1-3);
\clearingpoint[backward,position=left] at (X1-4) label (X1-4);
\blockclearing[] at (X2-1) label (X2-1);
\blockclearing[backward] at (X2-2) label (X2-2);
\blockclearing[forward ,position=left] at (X2-3) label (X2-3);
\blockclearing[backward,position=left] at (X2-4) label (X2-4);
\routeclearing[] at (X3-1) label (X3-1);
\routeclearing[backward] at (X3-2) label (X3-2);
\routeclearing[forward ,position=left] at (X3-3) label (X3-3);
\routeclearing[backward,position=left] at (X3-4) label (X3-4);
\clearingpoint[standard,route,block,forward ] at (X4-1) label (X4-1);
\clearingpoint[standard,route,block,backward] at (X4-2) label (X4-2);
\clearingpoint[standard,route,block,forward ,position=left] at (X4-3) label (X4-3);
\clearingpoint[standard,route,block,backward,position=left] at (X4-4) label (X4-4);
\dangerpoint[forward] at (X5-1) label (X5-1);
\dangerpoint[backward] at (X5-2) label (X5-2);
\dangerpoint[forward ,position=left] at (X5-3) label (X5-3);
\dangerpoint[backward,position=left] at (X5-4) label (X5-4);