2019-07-21 19:28:30 +02:00
%!TEX TS-program = pdflatexmk
% Copyright 2019 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.
\documentclass [a4paper,landscape] { article}
\usepackage [margin=0pt] { geometry}
\pagestyle { empty}
\usepackage { longtable,siunitx,tikz,adjustbox}
\usepackage { listings}
\lstset {
language=TeX,
basicstyle=\ttfamily ,
columns=fullflexible,
breaklines=true
}
\def \rootTrackschematic { ../tikz-trackschematic}
\renewcommand { \symbol } [1]{
\adjustbox { valign=c} { \begin { tikzpicture} [scale=1.0,transform shape]
\input { \rootTrackschematic /snippets/#1}
\path (-3,-1.1) rectangle (3,1.1); % background rectangle to unify every cell containing a symbol
\end { tikzpicture} }
}
\newcommand { \code } [1]{ \lstinputlisting [firstline=7] { \rootTrackschematic /snippets/#1} }
\newcounter { symbolNo}
\def \No { \stepcounter { symbolNo} \arabic { symbolNo} }
\def \srcTrackschematic { \rootTrackschematic /src/tikzlibrarytrackschematic}
\input { \srcTrackschematic .topology.code.tex}
\input { \srcTrackschematic .trafficcontrol.code.tex}
\input { \srcTrackschematic .vehicles.code.tex}
\input { \srcTrackschematic .constructions.code.tex}
\title { Snippets} \author { } \date { }
\begin { document}
\maketitle
\centering
\begin { longtable} { |r|l|c|l|c|}
\hline
No. & Name & Symbol & Code & Sub library \\
\endhead
\hline
\No & main track & \symbol { main_ track.tikz} & \code { main_ track.tikz} & \texttt { topology} \\
\hline
\No & main line (double track) & \symbol { main_ line.tikz} & \code { main_ line.tikz} & \texttt { topology} \\
\hline
\No & track distance (in \si { \metre } ) & \symbol { track_ distance.tikz} & \code { track_ distance.tikz} & \texttt { topology} \\
\hline
2019-08-30 15:29:30 +02:00
\No & secondary track & \symbol { secondary_ track.tikz} & \code { secondary_ track.tikz} & \texttt { topology} \\
2019-07-21 19:28:30 +02:00
\hline
\No & track number & \symbol { track_ number.tikz} & \code { track_ number.tikz} & \texttt { topology} \\
\hline
\No & turnout left (forward) & \symbol { turnout_ left_ forward.tikz} & \code { turnout_ left_ forward.tikz} & \texttt { topology} \\
\hline
\No & turnout left (backward) & \symbol { turnout_ left_ backward.tikz} & \code { turnout_ left_ backward.tikz} & \texttt { topology} \\
\hline
\No & turnout right (forward) & \symbol { turnout_ right_ forward.tikz} & \code { turnout_ right_ forward.tikz} & \texttt { topology} \\
\hline
\No & turnout right (backward) & \symbol { turnout_ right_ backward.tikz} & \code { turnout_ right_ backward.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout left (forward)\\ with fouling point indicator}
& \symbol { turnout_ with_ fouling_ left_ forward.tikz} & \code { turnout_ with_ fouling_ left_ forward.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout left (backward)\\ with fouling point indicator}
& \symbol { turnout_ with_ fouling_ left_ backward.tikz} & \code { turnout_ with_ fouling_ left_ backward.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout right (forward)\\ with fouling point indicator}
& \symbol { turnout_ with_ fouling_ right_ forward.tikz} & \code { turnout_ with_ fouling_ right_ forward.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout right (backward)\\ with fouling point indicator}
& \symbol { turnout_ with_ fouling_ right_ backward.tikz} & \code { turnout_ with_ fouling_ right_ backward.tikz} & \texttt { topology} \\
\hline
\No & double-slip turnout left & \symbol { double-slip_ turnout_ left.tikz} & \code { double-slip_ turnout_ left.tikz} & \texttt { topology} \\
\hline
\No & double-slip turnout right & \symbol { double-slip_ turnout_ right.tikz} & \code { double-slip_ turnout_ right.tikz} & \texttt { topology} \\
\hline
\No & diamond crossing left & \symbol { diamond_ crossing_ left.tikz} & \code { diamond_ crossing_ left.tikz} & \texttt { topology} \\
\hline
\No & diamond crossing right & \symbol { diamond_ crossing_ right.tikz} & \code { diamond_ crossing_ right.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout left (forward)\\ with points in right position}
& \symbol { turnout_ left_ forward_ right_ position.tikz} & \code { turnout_ left_ forward_ right_ position.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout left (forward)\\ with points in left position}
& \symbol { turnout_ left_ forward_ left_ position.tikz} & \code { turnout_ left_ forward_ left_ position.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout left (forward)\\ with moving points}
& \symbol { turnout_ left_ forward_ moving_ points.tikz} & \code { turnout_ left_ forward_ moving_ points.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout left (backward)\\ with points in right position}
& \symbol { turnout_ left_ backward_ right_ position.tikz} & \code { turnout_ left_ backward_ right_ position.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout left (backward)\\ with points in left position}
& \symbol { turnout_ left_ backward_ left_ position.tikz} & \code { turnout_ left_ backward_ left_ position.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout left (backward)\\ with moving points}
& \symbol { turnout_ left_ backward_ moving_ points.tikz} & \code { turnout_ left_ backward_ moving_ points.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout right (forward)\\ with points in right position}
& \symbol { turnout_ right_ forward_ right_ position.tikz} & \code { turnout_ right_ forward_ right_ position.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout right (forward)\\ with points in left position}
& \symbol { turnout_ right_ forward_ left_ position.tikz} & \code { turnout_ right_ forward_ left_ position.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout right (forward)\\ with moving points}
& \symbol { turnout_ right_ forward_ moving_ points.tikz} & \code { turnout_ right_ forward_ moving_ points.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout right (backward)\\ with points in right position}
& \symbol { turnout_ right_ backward_ right_ position.tikz} & \code { turnout_ right_ backward_ right_ position.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout right (backward)\\ with points in left position}
& \symbol { turnout_ right_ backward_ left_ position.tikz} & \code { turnout_ right_ backward_ left_ position.tikz} & \texttt { topology} \\
\hline
\No & \parbox [c] { 5cm} { turnout right (backward)\\ with moving points}
& \symbol { turnout_ right_ backward_ moving_ points.tikz} & \code { turnout_ right_ backward_ moving_ points.tikz} & \texttt { topology} \\
\hline
\No & derailer left (forward) & \symbol { derailer_ left_ forward.tikz} & \code { derailer_ left_ forward.tikz} & \texttt { topology} \\
\hline
\No & derailer left (backward) & \symbol { derailer_ left_ backward.tikz} & \code { derailer_ left_ backward.tikz} & \texttt { topology} \\
\hline
\No & derailer right (forward) & \symbol { derailer_ right_ forward.tikz} & \code { derailer_ right_ forward.tikz} & \texttt { topology} \\
\hline
\No & derailer right (backward) & \symbol { derailer_ right_ backward.tikz} & \code { derailer_ right_ backward.tikz} & \texttt { topology} \\
\hline
\No & bufferstop (forward) & \symbol { bufferstop_ forward.tikz} & \code { bufferstop_ forward.tikz} & \texttt { topology} \\
\hline
\No & bufferstop (backward) & \symbol { bufferstop_ backward.tikz} & \code { bufferstop_ backward.tikz} & \texttt { topology} \\
\hline
\No & vehicles (parked) & \symbol { vehicles.tikz} & \code { vehicles.tikz} & \texttt { vehicles} \\
\hline
\No & vehicles with label (parked) & \symbol { vehicles_ with_ label.tikz} & \code { vehicles_ with_ label.tikz} & \texttt { vehicles} \\
\hline
\No & vehicle (parked) & \symbol { vehicle.tikz} & \code { vehicle.tikz} & \texttt { vehicles} \\
\hline
\No & train (direction forward) & \symbol { train_ direction_ forward.tikz} & \code { train_ direction_ forward.tikz} & \texttt { vehicles} \\
\hline
\No & train (direction backward) & \symbol { train_ direction_ backward.tikz} & \code { train_ direction_ backward.tikz} & \texttt { vehicles} \\
\hline
\No & ghost train (direction forward) & \symbol { ghost_ train_ direction_ forward.tikz} & \code { ghost_ train_ direction_ forward.tikz} & \texttt { vehicles} \\
\hline
\No & ghost train (direction backward)& \symbol { ghost_ train_ direction_ backward.tikz} & \code { ghost_ train_ direction_ backward.tikz} & \texttt { vehicles} \\
\hline
\No & train moving (forward) & \symbol { train_ moving_ forward.tikz} & \code { train_ moving_ forward.tikz} & \texttt { vehicles} \\
\hline
\No & train moving (backward) & \symbol { train_ moving_ backward.tikz} & \code { train_ moving_ backward.tikz} & \texttt { vehicles} \\
\hline
\No & train moving slow (forward) & \symbol { train_ moving_ slow_ forward.tikz} & \code { train_ moving_ slow_ forward.tikz} & \texttt { vehicles} \\
\hline
\No & train moving slow (backward) & \symbol { train_ moving_ slow_ backward.tikz} & \code { train_ moving_ slow_ backward.tikz} & \texttt { vehicles} \\
\hline
\No & train moving fast (forward) & \symbol { train_ moving_ fast_ forward.tikz} & \code { train_ moving_ fast_ forward.tikz} & \texttt { vehicles} \\
\hline
\No & train moving fast (backward) & \symbol { train_ moving_ fast_ backward.tikz} & \code { train_ moving_ fast_ backward.tikz} & \texttt { vehicles} \\
\hline
\No & \parbox [c] { 4cm} { train in shunting mode\\ (direction forward)}
& \symbol { train_ shunt_ mode_ forward.tikz} & \code { train_ shunt_ mode_ forward.tikz} & \texttt { vehicles} \\
\hline
\No & \parbox [c] { 4cm} { train in shunting mode\\ (direction backward)}
& \symbol { train_ shunt_ mode_ backward.tikz} & \code { train_ shunt_ mode_ backward.tikz} & \texttt { vehicles} \\
\hline
\No & train shunting (forward) & \symbol { train_ shunting_ forward.tikz} & \code { train_ shunting_ forward.tikz} & \texttt { vehicles} \\
\hline
\No & train shunting (backward) & \symbol { train_ shunting_ backward.tikz} & \code { train_ shunting_ backward.tikz} & \texttt { vehicles} \\
\hline
\No & \parbox [c] { 4cm} { train operated automatic\\ (direction forward)}
& \symbol { train_ drive_ automatic.tikz} & \code { train_ drive_ automatic.tikz} & \texttt { vehicles} \\
\hline
\No & \parbox [c] { 4cm} { train operated by human\\ (direction forward)}
& \symbol { train_ drive_ human.tikz} & \code { train_ drive_ human.tikz} & \texttt { vehicles} \\
\hline
\No & view point (forward) & \symbol { view_ point_ forward.tikz} & \code { view_ point_ forward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & view point (backward) & \symbol { view_ point_ backward.tikz} & \code { view_ point_ backward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & distant signal (forward) & \symbol { distant_ signal_ forward.tikz} & \code { distant_ signal_ forward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & \parbox [c] { 4cm} { distant signal\\ with speed indicator}
& \symbol { distant_ speed_ signal_ forward.tikz} & \code { distant_ speed_ signal_ forward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & distant signal (backward) & \symbol { distant_ signal_ backward.tikz} & \code { distant_ signal_ backward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & \parbox [c] { 4cm} { distant signal\\ with speed indicator}
& \symbol { distant_ speed_ signal_ backward.tikz} & \code { distant_ speed_ signal_ backward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & speed signal (forward) & \symbol { speed_ signal_ forward.tikz} & \code { speed_ signal_ forward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & speed signal (backward) & \symbol { speed_ signal_ backward.tikz} & \code { speed_ signal_ backward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & block signal (forward) & \symbol { block_ signal_ forward.tikz} & \code { block_ signal_ forward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & block signal (backward) & \symbol { block_ signal_ backward.tikz} & \code { block_ signal_ backward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & route signal (forward) & \symbol { route_ signal_ forward.tikz} & \code { route_ signal_ forward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & route signal (backward) & \symbol { route_ signal_ backward.tikz} & \code { route_ signal_ backward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & \parbox [c] { 4cm} { combined signal\\ (distant and block signal)}
& \symbol { combined_ signal_ forward.tikz} & \code { combined_ signal_ forward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & shunt signal (forward) & \symbol { shunt_ signal_ forward.tikz} & \code { shunt_ signal_ forward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & shunt signal (backward) & \symbol { shunt_ signal_ backward.tikz} & \code { shunt_ signal_ backward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & shunt signal locked (forward) & \symbol { shunt_ signal_ forward_ locked.tikz} & \code { shunt_ signal_ forward_ locked.tikz} & \texttt { trafficcontrol} \\
\hline
\No & shunt signal locked (backward) & \symbol { shunt_ signal_ backward_ locked.tikz} & \code { shunt_ signal_ backward_ locked.tikz} & \texttt { trafficcontrol} \\
\hline
\No & shunt limit (forward) & \symbol { shunt_ limit_ forward.tikz} & \code { shunt_ limit_ forward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & shunt limit (backward) & \symbol { shunt_ limit_ backward.tikz} & \code { shunt_ limit_ backward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & transmitter (below \& above) & \symbol { transmitter.tikz} & \code { transmitter.tikz} & \texttt { trafficcontrol} \\
\hline
\No & \parbox [c] { 4.5cm} { transmitter (below)\\ with signal}
& \symbol { transmitter_ below_ with_ signal.tikz} & \code { transmitter_ below_ with_ signal.tikz} & \texttt { trafficcontrol} \\
\hline
\No & \parbox [c] { 4.5cm} { transmitter (below \& above)\\ effective forward}
& \symbol { transmitter_ forward.tikz} & \code { transmitter_ forward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & \parbox [c] { 4.5cm} { transmitter (below \& above)\\ effective backward}
& \symbol { transmitter_ backward.tikz} & \code { transmitter_ backward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & \parbox [c] { 4.5cm} { transmitter (below \& above)\\ effective bidirectional}
& \symbol { transmitter_ bidirectional.tikz} & \code { transmitter_ bidirectional.tikz} & \texttt { trafficcontrol} \\
\hline
\No & block end marker (forward) & \symbol { block_ end_ marker_ forward.tikz} & \code { block_ end_ marker_ forward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & block end marker (backward) & \symbol { block_ end_ marker_ backward.tikz} & \code { block_ end_ marker_ backward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & block clearing point (forward) & \symbol { block_ clearing_ point_ forward.tikz} & \code { block_ clearing_ point_ forward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & block clearing point (backward) & \symbol { block_ clearing_ point_ backward.tikz} & \code { block_ clearing_ point_ backward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & route clearing point (forward) & \symbol { route_ clearing_ point_ forward.tikz} & \code { route_ clearing_ point_ forward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & route clearing point (backward) & \symbol { route_ clearing_ point_ backward.tikz} & \code { route_ clearing_ point_ backward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & clearing point & \symbol { clearing_ point.tikz} & \code { clearing_ point.tikz} & \texttt { trafficcontrol} \\
\hline
\No & train berth sign (forward) & \symbol { train_ berth_ sign_ forward.tikz} & \code { train_ berth_ sign_ forward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & train berth sign (backward) & \symbol { train_ berth_ sign_ backward.tikz} & \code { train_ berth_ sign_ backward.tikz} & \texttt { trafficcontrol} \\
\hline
\No & train berth shape & \symbol { train_ berth_ shape.tikz} & \code { train_ berth_ shape.tikz} & \texttt { trafficcontrol} \\
\hline
\No & train berth shape bidirectional & \symbol { train_ berth_ shape_ bidirectional.tikz} & \code { train_ berth_ shape_ bidirectional.tikz} & \texttt { trafficcontrol} \\
\hline
\No & train berth with different shape& \symbol { train_ berth_ shape_ different.tikz} & \code { train_ berth_ shape_ different.tikz} & \texttt { trafficcontrol} \\
\hline
\No & train berth & \symbol { train_ berth.tikz} & \code { train_ berth.tikz} & \texttt { trafficcontrol} \\
\hline
\No & platform (left) & \symbol { platform_ left.tikz} & \code { platform_ left.tikz} & \texttt { constructions} \\
\hline
\No & platform (right) & \symbol { platform_ right.tikz} & \code { platform_ right.tikz} & \texttt { constructions} \\
\hline
\No & platform (middle) & \symbol { platform_ middle.tikz} & \code { platform_ middle.tikz} & \texttt { constructions} \\
\hline
\No & level crossing (single track) & \symbol { level_ crossing_ single.tikz} & \code { level_ crossing_ single.tikz} & \texttt { constructions} \\
\hline
\No & level crossing (double track) & \symbol { level_ crossing_ double.tikz} & \code { level_ crossing_ double.tikz} & \texttt { constructions} \\
\hline
\No & \parbox [c] { 5cm} { level crossing (double track)\\ with full closure}
& \symbol { level_ crossing_ double_ full_ closure.tikz} & \code { level_ crossing_ double_ full_ closure.tikz} & \texttt { constructions} \\
\hline
\No & bridge & \symbol { bridge.tikz} & \code { bridge.tikz} & \texttt { constructions} \\
\hline
\No & \parbox [c] { 5cm} { bridge\\ with track beneath}
& \symbol { bridge_ track_ beneath.tikz} & \code { bridge_ track_ beneath.tikz} & \texttt { constructions} \\
\hline
\No & hump & \symbol { hump.tikz} & \code { hump.tikz} & \texttt { constructions} \\
\hline
\No & interlocking & \symbol { interlocking.tikz} & \code { interlocking.tikz} & \texttt { constructions} \\
\hline
\end { longtable}
\end { document}