| 1 |
%!TEX TS-program = pdflatexmk |
| 2 |
|
| 3 |
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license) |
| 4 |
% 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. |
| 5 |
|
| 6 |
\documentclass[tikz,border=2]{standalone} |
| 7 |
\usepackage{tikz-trackschematic} % loading the library |
| 8 |
|
| 9 |
\begin{document} |
| 10 |
\begin{tikzpicture}[font=\sffamily] |
| 11 |
{ % station names |
| 12 |
\tikzset{every node/.style={foreground!50!background}}; |
| 13 |
\node[right,align=left] at ( 5,1.3) {to and from\\ Berg}; |
| 14 |
\node at (21,3.9) {{\LARGE Bf Chamstadt}}; |
| 15 |
\node[left,align=right] at (37.5,1.3) {to and from\\ Dornroda}; |
| 16 |
\node[left,align=right] at (36.5,4.0) {to and from\\ Ehrenstein}; |
| 17 |
} |
| 18 |
% coordinates |
| 19 |
\coordinate (A) at ( 1.5, 0); |
| 20 |
\coordinate (B) at (37.5, 0); |
| 21 |
\coordinate (C) at (34 , 5); |
| 22 |
|
| 23 |
\coordinate (E1) at ( 9 , 1); |
| 24 |
|
| 25 |
\coordinate (Y1) at (14 , 0); |
| 26 |
\coordinate (Y2) at (15 , 0); |
| 27 |
\coordinate (Y3) at (16 , 1); |
| 28 |
\coordinate (Y4) at (14.8, 1); |
| 29 |
\coordinate (Y5) at (26.5, 0); |
| 30 |
\coordinate (Y6) at (27 , 1); |
| 31 |
\coordinate (Y7) at (28 , 0); |
| 32 |
\coordinate (Y8) at (29 , 0); |
| 33 |
\coordinate (Y9) at (30 , 1); |
| 34 |
|
| 35 |
\coordinate (S01) at ( 7.5, 0); |
| 36 |
\coordinate (S02) at (10 , 0); |
| 37 |
\coordinate (S03) at (16 ,-1); |
| 38 |
\coordinate (S04) at (18 , 0); |
| 39 |
\coordinate (S05) at (18 , 1); |
| 40 |
\coordinate (S06) at (24 , 0); |
| 41 |
\coordinate (S07) at (24 , 1); |
| 42 |
\coordinate (S08) at (25 ,-1); |
| 43 |
\coordinate (S09) at (33 , 0); |
| 44 |
\coordinate (S10) at (32 , 3); |
| 45 |
\coordinate (S11) at (35.5, 0); |
| 46 |
\coordinate (S12) at (33.5, 4.5); |
| 47 |
|
| 48 |
\coordinate (T1) at ( 6 , 0); |
| 49 |
\coordinate (T2) at (10.2, 1); |
| 50 |
\coordinate (T3) at (16.5,-1); |
| 51 |
|
| 52 |
\coordinate (P1) at (21 , 0); |
| 53 |
\coordinate (P2) at (21 , 1); |
| 54 |
|
| 55 |
\coordinate (HM1) at (0,-1.85); |
| 56 |
\coordinate (HM2) at (0, 2.15); |
| 57 |
|
| 58 |
{ %% topology |
| 59 |
% tracks |
| 60 |
\maintrack (A) -- (B); |
| 61 |
\maintrack (Y1) -- ++( 1,-1) -- ++(10.5,0) -- (Y5); |
| 62 |
\maintrack (Y2) -- ++( 1, 1) -- (Y9); |
| 63 |
\maintrack (Y6) -- ++( 1,-1); |
| 64 |
\maintrack (Y8) -- (Y9) -- (C); |
| 65 |
\secondarytrack (E1) -- (Y3); |
| 66 |
|
| 67 |
% track numbers |
| 68 |
\tracklabel at (12.5, 1) label (11); |
| 69 |
\tracklabel at (21 ,-1) label (3); |
| 70 |
\tracklabel at (P1) label (1); |
| 71 |
\tracklabel at (P2) label (2); |
| 72 |
|
| 73 |
% bufferstops |
| 74 |
\bufferstop[backward] at (E1); |
| 75 |
|
| 76 |
% turnouts |
| 77 |
\tikzset{every node/.style={fouling point}}; |
| 78 |
\turnout[forward ,branch=right] at (Y1) label (W1); |
| 79 |
\turnout[forward ,branch=left ] at (Y2) label (W2); |
| 80 |
\turnout[backward,branch=right] at (Y3) label (W3); |
| 81 |
\derailer[forward,branch=left ] at (Y4) label (Gs4); |
| 82 |
\turnout[backward,branch=right] at (Y5) label (W5); |
| 83 |
\turnout[forward ,branch=right] at (Y6) label (W6); |
| 84 |
\turnout[backward,branch=left ] at (Y7) label (W7); |
| 85 |
\turnout[forward ,branch=left ] at (Y8) label (W8); |
| 86 |
\turnout[backward,branch=right,shift label={(0.2,-0.5)}] at (Y9) label (W9); |
| 87 |
} |
| 88 |
{ %% traffic control |
| 89 |
% signals |
| 90 |
\distantsignal[forward] at (S01) label (Va); |
| 91 |
|
| 92 |
\signal[distant,route,forward] at (S02) label (A); |
| 93 |
|
| 94 |
\routesignal[backward] at (S03) label (P3); |
| 95 |
\routesignal[backward] at (S04) label (P1); |
| 96 |
\routesignal[backward] at (S05) label (P2); |
| 97 |
|
| 98 |
\routesignal[forward] at (S06) label (N1); |
| 99 |
\routesignal[forward] at (S07) label (N2); |
| 100 |
\routesignal[forward] at (S08) label (N3); |
| 101 |
|
| 102 |
\signal[distant,route,backward] at (S09) label (F); |
| 103 |
\signal[distant,route,backward,rotate=45,shift label={(0.1,0.1)}] at (S10) label (G); |
| 104 |
|
| 105 |
\distantsignal[backward] at (S11) label (Vf); |
| 106 |
\distantsignal[backward,rotate=45,shift label={(0.1,0.1)}] at (S12) label (Vg); |
| 107 |
|
| 108 |
% routes |
| 109 |
\route[backward] at (20,-1); |
| 110 |
\route[forward] at (22,-1); |
| 111 |
\route[backward] at (20, 0); |
| 112 |
\route[forward] at (22, 0); |
| 113 |
\route[backward] at (20, 1); |
| 114 |
\route[forward] at (22, 1); |
| 115 |
|
| 116 |
% clearing points |
| 117 |
\tikzset{every node/.style={backward}}; |
| 118 |
\clearingpoint[] at (10 , 0) label (); |
| 119 |
\clearingpoint[] at (13 , 0) label (); |
| 120 |
\clearingpoint[] at (14 , 1) label (); |
| 121 |
\clearingpoint[] at (16 , 0) label (); |
| 122 |
\clearingpoint[] at (16 ,-1) label (); |
| 123 |
\clearingpoint[rotate= 45] at (15.5, 0.5) label (); |
| 124 |
\clearingpoint[] at (18 , 1) label (); |
| 125 |
\clearingpoint[] at (18 , 0) label (); |
| 126 |
\clearingpoint[] at (24 , 1) label (); |
| 127 |
\clearingpoint[] at (24 , 0) label (); |
| 128 |
\clearingpoint[] at (26 , 1) label (); |
| 129 |
\clearingpoint[] at (25 ,-1) label (); |
| 130 |
\clearingpoint[] at (27 , 0) label (); |
| 131 |
\clearingpoint[rotate=-45] at (27.5, 0.5) label (); |
| 132 |
\clearingpoint[rotate= 45] at (29.5, 0.5) label (); |
| 133 |
\clearingpoint[] at (30.2, 0) label (); |
| 134 |
\clearingpoint[] at (33 , 0) label (); |
| 135 |
\clearingpoint[rotate= 45] at (30.5, 1.5) label (); |
| 136 |
\clearingpoint[rotate= 45] at (32 , 3 ) label (); |
| 137 |
} |
| 138 |
{ %% vehicles |
| 139 |
\train[run=normal,forward] at (T1) label (RB); |
| 140 |
\parkedvehicles[length=1cm] at (T2) label (Tfz); |
| 141 |
\train[backward] at (T3) label (GZ); |
| 142 |
} |
| 143 |
{ %% constructions |
| 144 |
% platforms |
| 145 |
\platform[side=right] at (P2); |
| 146 |
\platform[side=left ] at (P1); |
| 147 |
} |
| 148 |
{ %% measures |
| 149 |
% hectometer posts |
| 150 |
\tikzset{hectometer base={(HM1)},orientation=right}; |
| 151 |
\hectometer[] at (S01) label ( 7.200); |
| 152 |
\hectometer[] at (S02) label ( 8.200); |
| 153 |
\hectometer[] at (13 ,0) label ( 8.400); |
| 154 |
\hectometer[] at (S03) label ( 8.600); |
| 155 |
|
| 156 |
\hectometer[] at (S08) label ( 9.150); |
| 157 |
\hectometer[] at (27 ,0) label ( 9.250); |
| 158 |
\hectometer[] at (27.5,0) label ( 9.300); |
| 159 |
\hectometer[] at (29.5,0) label ( 9.450); |
| 160 |
\hectometer[] at (30.2,0) label ( 9.500); |
| 161 |
\hectometer[] at (S09) label ( 9.900); |
| 162 |
\hectometer[] at (S11) label (10.900); |
| 163 |
|
| 164 |
\measureline (S09) -- ++(0,1.7) -- (S10); |
| 165 |
\measureline (S11) -- ++(0,2.2) -- (S12); |
| 166 |
|
| 167 |
\tikzset{hectometer base={(HM2)},orientation=left}; |
| 168 |
\hectometer[] at (14 ,1) label ( 8.500); |
| 169 |
\hectometer[] at (15.5,1) label ( 8.550); |
| 170 |
\hectometer[] at (S05) label ( 8.700); |
| 171 |
\hectometer[] at (19 ,1) label ( 8.750); |
| 172 |
\hectometer[] at (23 ,1) label ( 9.000); |
| 173 |
\hectometer[] at (S07) label ( 9.100); |
| 174 |
\hectometer[] at (26 ,1) label ( 9.200); |
| 175 |
} |
| 176 |
\end{tikzpicture} |
| 177 |
\end{document} |