2018-09-14 21:04:15 +02:00
%!TEX TS-program = pdflatexmk
2019-07-21 19:28:30 +02:00
% Copyright 2019 Martin Scheidt (ISC license)
2018-09-14 21:04:15 +02:00
% 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.
\documentclass [tikz,border=2] { standalone}
\usepackage { lmodern}
2018-12-19 15:23:27 +01:00
\usepackage [prefix=] { xcolor-solarized}
2018-09-14 21:04:15 +02:00
2018-12-19 15:23:27 +01:00
\def \rootTrackschematic { ../../tikz-trackschematic}
2019-07-21 19:28:30 +02:00
\def \srcTrackschematic { \rootTrackschematic /src/tikzlibrarytrackschematic}
\input { \srcTrackschematic .topology.code.tex}
\input { \srcTrackschematic .vehicles.code.tex}
\input { \srcTrackschematic .constructions.code.tex}
\input { \srcTrackschematic .trafficcontrol.code.tex} % Order 1
\input { \rootTrackschematic /src/layoutSymbols_ DE.tikz} % Order 2 (important)
2018-09-14 21:04:15 +02:00
\begin { document}
\begin { tikzpicture} [font=\sffamily ]
{ % stations
\tikzset { every node/.style={ base00} } ;
\node [right,align=left] at ( 2,1.3) { to and from\\ Arnau} ;
\node at (21,3.3) { { \LARGE Bf Berg} } ;
\node [left,align=right] at (38,1.3) { to and from\\ Chamstadt} ;
}
{ % tracks
2019-02-26 14:46:51 +01:00
\draw [MainTrack] ( 1.5, 0) -- ++(37,0);
\draw [MainTrack] (15 , 0) -- ++( 1,1) -- ++(10,0) -- ++(1,-1);
2019-08-30 15:29:30 +02:00
\draw [SecondaryTrack] (11 ,-1) -- ++( 2,0) -- ++( 1,1);
\draw [SecondaryTrack] ( 9 , 1) -- ++( 7,0);
\draw [SecondaryTrack] (14 , 1) -- ++( 1,1) -- ++(10,0);
2018-09-14 21:04:15 +02:00
% track numbers
2019-04-04 11:28:45 +02:00
\node [fill=background] at (11.7, 1) { 12} ;
\node [fill=background] at (11.7,-1) { 10} ;
\node [fill=background] at (21.0, 2) { 3} ;
\node [fill=background] at (21.0, 1) { 2} ;
\node [fill=background] at (21.0, 0) { 1} ;
2018-09-14 21:04:15 +02:00
% bufferstops
\pic at ( 9, 1) { bufferstop_ backward} ;
\pic at (11,-1) { bufferstop_ backward} ;
\pic at (25, 2) { bufferstop_ forward} ;
% turnouts
2018-12-19 15:23:27 +01:00
\pic at (12.8,-1) { derailer_ right_ forward} ;
2018-09-14 21:04:15 +02:00
\node at (12.7,-1.4) { \footnotesize Gs7} ;
2018-12-19 15:23:27 +01:00
\pic at (14,0) { turnout_ left_ backward} ;
\pic at (14,0) { fouling_ point_ left_ backward} ;
2018-09-14 21:04:15 +02:00
\node at (14,0.2) { \footnotesize W1} ;
2018-12-19 15:23:27 +01:00
\pic at (14,1) { turnout_ left_ forward} ;
\pic at (14,1) { fouling_ point_ left_ forward} ;
2018-09-14 21:04:15 +02:00
\node at (14,0.8) { \footnotesize W4} ;
2018-12-19 15:23:27 +01:00
\pic at (15,0) { turnout_ left_ forward} ;
\pic at (15,0) { fouling_ point_ left_ forward} ;
2018-09-14 21:04:15 +02:00
\node at (15,-0.2) { \footnotesize W2} ;
2018-12-19 15:23:27 +01:00
\pic at (16,1) { turnout_ left_ backward} ;
\pic at (16,1) { fouling_ point_ left_ backward} ;
2018-09-14 21:04:15 +02:00
\node at (16,1.2) { \footnotesize W3} ;
2018-12-19 15:23:27 +01:00
\pic at (27,0) { turnout_ right_ backward} ;
\pic at (27,0) { fouling_ point_ right_ backward} ;
2018-09-14 21:04:15 +02:00
\node at (27,-0.2) { \footnotesize W6} ;
% platforms
\pic at (19,0) { platform_ left} ;
\pic at (19,1) { platform_ right} ;
}
{ % signals
2018-12-19 15:23:27 +01:00
\pic at ( 7, 0 ) { distant_ signal_ forward} ;
\node [left] at ( 7,-0.4) { Va} ;
\pic at (10, 0 ) { route_ signal_ forward} ;
\pic at (10, 0 ) { distant_ signal_ forward} ;
\node [left] at (10,-0.4) { A} ;
\pic at (18, 1 ) { route_ signal_ backward} ;
\node [right] at (18, 1.4) { P2} ;
\pic at (18, 0 ) { route_ signal_ backward} ;
\node [right] at (18, 0.4) { P1} ;
\pic at (24, 1 ) { route_ signal_ forward} ;
\node [left] at (24, 0.6) { N2} ;
\pic at (24, 0 ) { route_ signal_ forward} ;
\node [left] at (24,-0.4) { N1} ;
\pic at (30, 0 ) { route_ signal_ backward} ;
\pic at (30, 0 ) { distant_ signal_ backward} ;
\node [right] at (30, 0.4) { F} ;
\pic at (33, 0 ) { distant_ signal_ backward} ;
\node [right] at (33, 0.4) { Vf} ;
2018-09-14 21:04:15 +02:00
% routes
\pic at (20,0) { route_ backward} ;
\pic at (22,0) { route_ forward} ;
\pic at (20,1) { route_ backward} ;
\pic at (22,1) { route_ forward} ;
}
{ % axle counters
\pic at (10 , 0) { axle_ counter_ right} ;
\pic at (12.3,-1) { axle_ counter_ right} ;
\pic at (12.8, 0) { axle_ counter_ right} ;
\pic at (13.4, 1) { axle_ counter_ right} ;
\pic at (14.9, 1) { axle_ counter_ right} ;
\pic [rotate=45] at (14.5, 2 ) { axle_ counter_ right} ;
\pic [rotate=45] at (15.9, 0.4) { axle_ counter_ left} ;
\pic at (16 , 0) { axle_ counter_ right} ;
\pic at (18 , 1) { axle_ counter_ right} ;
\pic at (18 , 0) { axle_ counter_ right} ;
\pic at (24 , 1) { axle_ counter_ right} ;
\pic at (24 , 0) { axle_ counter_ right} ;
\pic at (26 , 0) { axle_ counter_ right} ;
\pic at (27.5, 0) { axle_ counter_ right} ;
\pic [rotate=315] at (26.2, 0.8) { axle_ counter_ left} ;
\pic at (30 , 0) { axle_ counter_ right} ;
}
{ % vehicles
2018-12-19 15:23:27 +01:00
\pic at ( 6 ,0) { train_ moving_ forward} ;
\node at ( 4 ,0) { \emph { RB} } ;
\pic at (21.5,2) { train=3} ;
\node at (23 ,2) { \emph { WG} } ;
\pic at (10.2,1) { train=1} ;
2018-09-14 21:04:15 +02:00
\node at (10.7,1) { \emph { Tfz} } ;
2018-12-19 15:23:27 +01:00
\pic at (34 ,0) { train_ moving_ backward} ;
\node at (36 ,0) { \emph { IC} } ;
2018-09-14 21:04:15 +02:00
}
{ % hectometer posts
\tikzset { every node/.style={ left,base00,rotate=-90} ,every path/.style={ base00,dashed} } ;
\node at (07.0,-2.75) { 7.200} ;
\draw (07.0,-1.55) -- ++(0,0.7);
\node at (10.0,-2.75) { 8.200} ;
\draw (10.0,-1.55) -- ++(0,0.7);
\node at (12.8,-2.75) { 8.400} ;
\draw (12.8,-1.70) -- ++(0,0.1);
\draw (12.8,-0.70) -- ++(0,0.3);
\node at (16.0,-2.75) { 8.600} ;
\draw (16.0,-1.55) -- ++(0,1.1);
\node at (18.0,-2.75) { 8.700} ;
\draw (18.0,-1.55) -- ++(0,1.1);
\node at (19.0,-2.75) { 8.750} ;
\draw (19.0,-1.55) -- ++(0,1.3);
\node at (23.0,-2.75) { 9.000} ;
\draw (23.0,-1.55) -- ++(0,1.3);
\node at (24.0,-2.75) { 9.100} ;
\draw (24.0,-1.55) -- ++(0,0.7);
\node at (26.0,-2.75) { 9.200} ;
\draw (26.0,-1.55) -- ++(0,1.1);
\node at (27.5,-2.75) { 9.300} ;
\draw (27.5,-1.55) -- ++(0,1.1);
\node at (30.0,-2.75) { 9.500} ;
\draw (30.0,-1.55) -- ++(0,1.1);
\node at (33.0,-2.75) { 10.500} ;
\draw (33.0,-1.55) -- ++(0,1.3);
}
\end { tikzpicture}
\end { document}