diff --git a/README.md b/README.md index 1ea09aa..89de0a9 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,37 @@ -tikz-trackschematic -====== +# installation -Version 0.3 ------- +todo + +# Usage + +```TeX +\documentclass[tikz]{standalone} +\usetikzlibrary{trackschematic} +\begin{document} + + \begin{tikzpicture} + \coordinate (A) at (0,0); + \coordinate (B) at (6,0); + + \coordinate (T) at (5,0); + + \draw[MainTrack] (A) -- (B); + \pic at (T) {train_moving_forward}; + \end{tikzpicture} + +\end{document} +``` + +------------ +# History + +## Version 0.4 + + * added document for symbology + * renamed overview to snippets + * reworked library for common tikz library layout + +## Version 0.3 * moved snippet folder to root folder * added shunting movements @@ -11,22 +40,20 @@ Version 0.3 * defined and used color foreground and background -Version 0.2 ------- +## Version 0.2 * added transmitters * reorganized src library * minor improvements -Version 0.1 ------- +## Version 0.1 Basic concept of a library with railway topology symbols and some examples. -Roadmap ------- +------------ +# Roadmap -* encapsulation of symbols in package for tex infrastructure -* provide option for internationalziation (i18n) -* write usefull documentation -* re-think syntax \ No newline at end of file + * encapsulation of symbols in package for tex infrastructure + * provide option for internationalziation (i18n) + * write usefull documentation + * re-think syntax \ No newline at end of file diff --git a/examples/network.tex b/examples/network.tex index 8a2c085..9fc0ae2 100644 --- a/examples/network.tex +++ b/examples/network.tex @@ -1,6 +1,6 @@ %!TEX TS-program = pdflatexmk -% Copyright 2018 Martin Scheidt (ISC license) +% 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[tikz,border=2]{standalone} @@ -9,10 +9,10 @@ \usepackage[prefix=]{xcolor-solarized} \def\rootTrackschematic{../../tikz-trackschematic} -\def\srcTrackschematic{\rootTrackschematic/src} -\input{\srcTrackschematic/topology.tikz} -\input{\srcTrackschematic/trafficControl.tikz} -\input{\srcTrackschematic/constructions.tikz} +\def\srcTrackschematic{\rootTrackschematic/src/tikzlibrarytrackschematic} +\input{\srcTrackschematic.topology.code.tex} +\input{\srcTrackschematic.trafficcontrol.code.tex} +\input{\srcTrackschematic.constructions.code.tex} \begin{document} \begin{tikzpicture}[font=\sffamily] diff --git a/examples/network.tikz b/examples/network.tikz index a843f35..e896caa 100644 --- a/examples/network.tikz +++ b/examples/network.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk %!TEX root = network.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \begin{scope}[shift={(-60,0)}] diff --git a/examples/station_berg.tex b/examples/station_berg.tex index 69ecb73..50795b1 100644 --- a/examples/station_berg.tex +++ b/examples/station_berg.tex @@ -1,6 +1,6 @@ %!TEX TS-program = pdflatexmk -% Copyright 2018 Martin Scheidt (ISC license) +% 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[tikz,border=2]{standalone} @@ -9,12 +9,12 @@ \usepackage[prefix=]{xcolor-solarized} \def\rootTrackschematic{../../tikz-trackschematic} -\def\srcTrackschematic{\rootTrackschematic/src} -\input{\srcTrackschematic/topology.tikz} -\input{\srcTrackschematic/constructions.tikz} -\input{\srcTrackschematic/vehicles.tikz} -\input{\srcTrackschematic/trafficControl.tikz} % Order 1 -\input{\srcTrackschematic/layoutSymbols_DE.tikz} % Order 2 (important) +\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) \begin{document} \begin{tikzpicture}[font=\sffamily] diff --git a/examples/station_chamstadt.tex b/examples/station_chamstadt.tex index b71d821..81af5cd 100644 --- a/examples/station_chamstadt.tex +++ b/examples/station_chamstadt.tex @@ -1,6 +1,6 @@ %!TEX TS-program = pdflatexmk -% Copyright 2018 Martin Scheidt (ISC license) +% 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[tikz,border=2]{standalone} @@ -9,12 +9,12 @@ \usepackage[prefix=]{xcolor-solarized} \def\rootTrackschematic{../../tikz-trackschematic} -\def\srcTrackschematic{\rootTrackschematic/src} -\input{\srcTrackschematic/topology.tikz} -\input{\srcTrackschematic/constructions.tikz} -\input{\srcTrackschematic/vehicles.tikz} -\input{\srcTrackschematic/trafficControl.tikz} % Order 1 -\input{\srcTrackschematic/layoutSymbols_DE.tikz} % Order 2 (important) +\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) \begin{document} \begin{tikzpicture}[font=\sffamily] diff --git a/examples/station_okerbach.tex b/examples/station_okerbach.tex index 9056c98..a3eb97d 100644 --- a/examples/station_okerbach.tex +++ b/examples/station_okerbach.tex @@ -1,6 +1,6 @@ %!TEX TS-program = pdflatexmk -% Copyright 2018 Martin Scheidt (ISC license) +% 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[tikz,border=2]{standalone} @@ -9,10 +9,10 @@ \usepackage[prefix=]{xcolor-solarized} \def\rootTrackschematic{../../tikz-trackschematic} -\def\srcTrackschematic{\rootTrackschematic/src} -\input{\srcTrackschematic/topology.tikz} -\input{\srcTrackschematic/trafficControl.tikz} -\input{\srcTrackschematic/constructions.tikz} +\def\srcTrackschematic{\rootTrackschematic/src/tikzlibrarytrackschematic} +\input{\srcTrackschematic.topology.code.tex} +\input{\srcTrackschematic.trafficcontrol.code.tex} +\input{\srcTrackschematic.constructions.code.tex} \begin{document} \begin{tikzpicture}[font=\sffamily] diff --git a/examples/station_okerbach.tikz b/examples/station_okerbach.tikz index f75efc3..ff6f67d 100644 --- a/examples/station_okerbach.tikz +++ b/examples/station_okerbach.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk %!TEX root = station_okerbach.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. %% coordinates diff --git a/examples/station_pockelsdorf.tex b/examples/station_pockelsdorf.tex index aa957e1..527faca 100644 --- a/examples/station_pockelsdorf.tex +++ b/examples/station_pockelsdorf.tex @@ -1,6 +1,6 @@ %!TEX TS-program = pdflatexmk -% Copyright 2018 Martin Scheidt (ISC license) +% 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[tikz,border=2]{standalone} @@ -9,10 +9,10 @@ \usepackage[prefix=]{xcolor-solarized} \def\rootTrackschematic{../../tikz-trackschematic} -\def\srcTrackschematic{\rootTrackschematic/src} -\input{\srcTrackschematic/topology.tikz} -\input{\srcTrackschematic/trafficControl.tikz} -\input{\srcTrackschematic/constructions.tikz} +\def\srcTrackschematic{\rootTrackschematic/src/tikzlibrarytrackschematic} +\input{\srcTrackschematic.topology.code.tex} +\input{\srcTrackschematic.trafficcontrol.code.tex} +\input{\srcTrackschematic.constructions.code.tex} \begin{document} \begin{tikzpicture}[font=\sffamily] diff --git a/examples/station_pockelsdorf.tikz b/examples/station_pockelsdorf.tikz index 3842f88..0fd4ae1 100644 --- a/examples/station_pockelsdorf.tikz +++ b/examples/station_pockelsdorf.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk %!TEX root = station_pockelsdorf.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. %% coordinates diff --git a/examples/station_rebenau.tex b/examples/station_rebenau.tex index 74969bc..767c9ac 100644 --- a/examples/station_rebenau.tex +++ b/examples/station_rebenau.tex @@ -1,6 +1,6 @@ %!TEX TS-program = pdflatexmk -% Copyright 2018 Martin Scheidt (ISC license) +% 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[tikz,border=2]{standalone} @@ -9,10 +9,10 @@ \usepackage[prefix=]{xcolor-solarized} \def\rootTrackschematic{../../tikz-trackschematic} -\def\srcTrackschematic{\rootTrackschematic/src} -\input{\srcTrackschematic/topology.tikz} -\input{\srcTrackschematic/trafficControl.tikz} -\input{\srcTrackschematic/constructions.tikz} +\def\srcTrackschematic{\rootTrackschematic/src/tikzlibrarytrackschematic} +\input{\srcTrackschematic.topology.code.tex} +\input{\srcTrackschematic.trafficcontrol.code.tex} +\input{\srcTrackschematic.constructions.code.tex} \begin{document} \begin{tikzpicture}[font=\sffamily] diff --git a/examples/station_rebenau.tikz b/examples/station_rebenau.tikz index fd73e5e..85c784d 100644 --- a/examples/station_rebenau.tikz +++ b/examples/station_rebenau.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk %!TEX root = station_rebenau.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. %% coordinates diff --git a/examples/station_schleinitz.tex b/examples/station_schleinitz.tex index 79ef126..ecc2686 100644 --- a/examples/station_schleinitz.tex +++ b/examples/station_schleinitz.tex @@ -1,6 +1,6 @@ %!TEX TS-program = pdflatexmk -% Copyright 2018 Martin Scheidt (ISC license) +% 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[tikz,border=2]{standalone} @@ -9,10 +9,10 @@ \usepackage[prefix=]{xcolor-solarized} \def\rootTrackschematic{../../tikz-trackschematic} -\def\srcTrackschematic{\rootTrackschematic/src} -\input{\srcTrackschematic/topology.tikz} -\input{\srcTrackschematic/trafficControl.tikz} -\input{\srcTrackschematic/constructions.tikz} +\def\srcTrackschematic{\rootTrackschematic/src/tikzlibrarytrackschematic} +\input{\srcTrackschematic.topology.code.tex} +\input{\srcTrackschematic.trafficcontrol.code.tex} +\input{\srcTrackschematic.constructions.code.tex} \begin{document} \begin{tikzpicture}[font=\sffamily] diff --git a/examples/station_schleinitz.tikz b/examples/station_schleinitz.tikz index 5d8bc0f..5a690cb 100644 --- a/examples/station_schleinitz.tikz +++ b/examples/station_schleinitz.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk %!TEX root = station_schleinitz.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. %% coordinates diff --git a/overview.pdf b/overview.pdf deleted file mode 100644 index 482ccbc..0000000 Binary files a/overview.pdf and /dev/null differ diff --git a/overview.tex b/overview.tex deleted file mode 100644 index 60aeb9f..0000000 --- a/overview.tex +++ /dev/null @@ -1,273 +0,0 @@ -%!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} -\usepackage{tikz,adjustbox} -\usepackage{listings} -\lstset{ - language=TeX, - basicstyle=\ttfamily, - columns=fullflexible, - breaklines=true -} - -\def\rootTrackschematic{../tikz-trackschematic} -\def\srcTrackschematic{\rootTrackschematic/src} - -\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}} - -\input{\srcTrackschematic/topology.tikz} -\input{\srcTrackschematic/trafficControl.tikz} -\input{\srcTrackschematic/vehicles.tikz} -\input{\srcTrackschematic/constructions.tikz} - -\begin{document} - \centering - \begin{longtable}{|r|l|c|l|c|} - \hline - No. & Name & Symbol & Code & File \\ - \endhead - \hline - \No & main track & \symbol{main_track.tikz} & \code{main_track.tikz} & \texttt{topology.tikz} \\ - \hline - \No & main line (double track) & \symbol{main_line.tikz} & \code{main_line.tikz} & \texttt{topology.tikz} \\ - \hline - \No & track distance (in \si{\metre}) & \symbol{track_distance.tikz} & \code{track_distance.tikz} & \texttt{topology.tikz} \\ - \hline - \No & side track & \symbol{side_track.tikz} & \code{side_track.tikz} & \texttt{topology.tikz} \\ - \hline - \No & track number & \symbol{track_number.tikz} & \code{track_number.tikz} & \texttt{topology.tikz} \\ - \hline - \No & turnout left (forward) & \symbol{turnout_left_forward.tikz} & \code{turnout_left_forward.tikz} & \texttt{topology.tikz} \\ - \hline - \No & turnout left (backward) & \symbol{turnout_left_backward.tikz} & \code{turnout_left_backward.tikz} & \texttt{topology.tikz} \\ - \hline - \No & turnout right (forward) & \symbol{turnout_right_forward.tikz} & \code{turnout_right_forward.tikz} & \texttt{topology.tikz} \\ - \hline - \No & turnout right (backward) & \symbol{turnout_right_backward.tikz} & \code{turnout_right_backward.tikz} & \texttt{topology.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \hline - \No & double-slip turnout left & \symbol{double-slip_turnout_left.tikz} & \code{double-slip_turnout_left.tikz} & \texttt{topology.tikz} \\ - \hline - \No & double-slip turnout right & \symbol{double-slip_turnout_right.tikz} & \code{double-slip_turnout_right.tikz} & \texttt{topology.tikz} \\ - \hline - \No & diamond crossing left & \symbol{diamond_crossing_left.tikz} & \code{diamond_crossing_left.tikz} & \texttt{topology.tikz} \\ - \hline - \No & diamond crossing right & \symbol{diamond_crossing_right.tikz} & \code{diamond_crossing_right.tikz} & \texttt{topology.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \hline - \No & derailer left (forward) & \symbol{derailer_left_forward.tikz} & \code{derailer_left_forward.tikz} & \texttt{topology.tikz} \\ - \hline - \No & derailer left (backward) & \symbol{derailer_left_backward.tikz} & \code{derailer_left_backward.tikz} & \texttt{topology.tikz} \\ - \hline - \No & derailer right (forward) & \symbol{derailer_right_forward.tikz} & \code{derailer_right_forward.tikz} & \texttt{topology.tikz} \\ - \hline - \No & derailer right (backward) & \symbol{derailer_right_backward.tikz} & \code{derailer_right_backward.tikz} & \texttt{topology.tikz} \\ - \hline - \No & bufferstop (forward) & \symbol{bufferstop_forward.tikz} & \code{bufferstop_forward.tikz} & \texttt{topology.tikz} \\ - \hline - \No & bufferstop (backward) & \symbol{bufferstop_backward.tikz} & \code{bufferstop_backward.tikz} & \texttt{topology.tikz} \\ - \hline - \No & vehicles (parked) & \symbol{vehicles.tikz} & \code{vehicles.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & vehicle (parked) & \symbol{vehicle.tikz} & \code{vehicle.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & train (direction forward) & \symbol{train_direction_forward.tikz} & \code{train_direction_forward.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & train (direction backward) & \symbol{train_direction_backward.tikz} & \code{train_direction_backward.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & ghost train (direction forward) & \symbol{ghost_train_direction_forward.tikz} & \code{ghost_train_direction_forward.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & ghost train (direction backward)& \symbol{ghost_train_direction_backward.tikz} & \code{ghost_train_direction_backward.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & train moving (forward) & \symbol{train_moving_forward.tikz} & \code{train_moving_forward.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & train moving (backward) & \symbol{train_moving_backward.tikz} & \code{train_moving_backward.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & train moving slow (forward) & \symbol{train_moving_slow_forward.tikz} & \code{train_moving_slow_forward.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & train moving slow (backward) & \symbol{train_moving_slow_backward.tikz} & \code{train_moving_slow_backward.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & train moving fast (forward) & \symbol{train_moving_fast_forward.tikz} & \code{train_moving_fast_forward.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & train moving fast (backward) & \symbol{train_moving_fast_backward.tikz} & \code{train_moving_fast_backward.tikz} & \texttt{vehicles.tikz} \\ - \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.tikz} \\ - \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.tikz} \\ - \hline - \No & train shunting (forward) & \symbol{train_shunting_forward.tikz} & \code{train_shunting_forward.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & train shunting (backward) & \symbol{train_shunting_backward.tikz} & \code{train_shunting_backward.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & \parbox[c]{4cm}{train operated automatic\\(direction forward)} - & \symbol{train_drive_automatic.tikz} & \code{train_drive_automatic.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & \parbox[c]{4cm}{train operated by human\\(direction forward)} - & \symbol{train_drive_human.tikz} & \code{train_drive_human.tikz} & \texttt{vehicles.tikz} \\ - \hline - \No & train berth sign (forward) & \symbol{train_berth_sign_forward.tikz} & \code{train_berth_sign_forward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & train berth sign (backward) & \symbol{train_berth_sign_backward.tikz} & \code{train_berth_sign_backward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & train berth shape bidirectional & \symbol{train_berth_shape_bidirectional.tikz} & \code{train_berth_shape_bidirectional.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & train berth shape & \symbol{train_berth_shape.tikz} & \code{train_berth_shape.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & train berth & \symbol{train_berth.tikz} & \code{train_berth.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & view point (forward) & \symbol{view_point_forward.tikz} & \code{view_point_forward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & view point (backward) & \symbol{view_point_backward.tikz} & \code{view_point_backward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & distant signal (forward) & \symbol{distant_signal_forward.tikz} & \code{distant_signal_forward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & \parbox[c]{4cm}{distant signal\\with speed indicator} - & \symbol{distant_speed_signal_forward.tikz} & \code{distant_speed_signal_forward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & distant signal (backward) & \symbol{distant_signal_backward.tikz} & \code{distant_signal_backward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & \parbox[c]{4cm}{distant signal\\with speed indicator} - & \symbol{distant_speed_signal_backward.tikz} & \code{distant_speed_signal_backward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & speed signal (forward) & \symbol{speed_signal_forward.tikz} & \code{speed_signal_forward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & speed signal (backward) & \symbol{speed_signal_backward.tikz} & \code{speed_signal_backward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & block signal (forward) & \symbol{block_signal_forward.tikz} & \code{block_signal_forward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & block signal (backward) & \symbol{block_signal_backward.tikz} & \code{block_signal_backward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & route signal (forward) & \symbol{route_signal_forward.tikz} & \code{route_signal_forward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & route signal (backward) & \symbol{route_signal_backward.tikz} & \code{route_signal_backward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & \parbox[c]{4cm}{combined signal\\(distant and block signal)} - & \symbol{combined_signal_forward.tikz} & \code{combined_signal_forward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & shunt signal (forward) & \symbol{shunt_signal_forward.tikz} & \code{shunt_signal_forward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & shunt signal (backward) & \symbol{shunt_signal_backward.tikz} & \code{shunt_signal_backward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & shunt signal locked (forward) & \symbol{shunt_signal_forward_locked.tikz} & \code{shunt_signal_forward_locked.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & shunt signal locked (backward) & \symbol{shunt_signal_backward_locked.tikz} & \code{shunt_signal_backward_locked.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & shunt limit (forward) & \symbol{shunt_limit_forward.tikz} & \code{shunt_limit_forward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & shunt limit (backward) & \symbol{shunt_limit_backward.tikz} & \code{shunt_limit_backward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & transmitter (below \& above) & \symbol{transmitter.tikz} & \code{transmitter.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & \parbox[c]{4.5cm}{transmitter (below)\\with signal} - & \symbol{transmitter_below_with_signal.tikz} & \code{transmitter_below_with_signal.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & \parbox[c]{4.5cm}{transmitter (below \& above)\\ effective forward} - & \symbol{transmitter_forward.tikz} & \code{transmitter_forward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & \parbox[c]{4.5cm}{transmitter (below \& above)\\ effective backward} - & \symbol{transmitter_backward.tikz} & \code{transmitter_backward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & \parbox[c]{4.5cm}{transmitter (below \& above)\\ effective bidirectional} - & \symbol{transmitter_bidirectional.tikz} & \code{transmitter_bidirectional.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & block end marker (forward) & \symbol{block_end_marker_forward.tikz} & \code{block_end_marker_forward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & block end marker (backward) & \symbol{block_end_marker_backward.tikz} & \code{block_end_marker_backward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & block clearing point (forward) & \symbol{block_clearing_point_forward.tikz} & \code{block_clearing_point_forward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & block clearing point (backward) & \symbol{block_clearing_point_backward.tikz} & \code{block_clearing_point_backward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & route clearing point (forward) & \symbol{route_clearing_point_forward.tikz} & \code{route_clearing_point_forward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & route clearing point (backward) & \symbol{route_clearing_point_backward.tikz} & \code{route_clearing_point_backward.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & clearing point & \symbol{clearing_point.tikz} & \code{clearing_point.tikz} & \texttt{trafficControl.tikz} \\ - \hline - \No & platform (left) & \symbol{platform_left.tikz} & \code{platform_left.tikz} & \texttt{constructions.tikz} \\ - \hline - \No & platform (right) & \symbol{platform_right.tikz} & \code{platform_right.tikz} & \texttt{constructions.tikz} \\ - \hline - \No & platform (middle) & \symbol{platform_middle.tikz} & \code{platform_middle.tikz} & \texttt{constructions.tikz} \\ - \hline - \No & level crossing (single track) & \symbol{level_crossing_single.tikz} & \code{level_crossing_single.tikz} & \texttt{constructions.tikz} \\ - \hline - \No & level crossing (double track) & \symbol{level_crossing_double.tikz} & \code{level_crossing_double.tikz} & \texttt{constructions.tikz} \\ - \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.tikz} \\ - \hline - \No & bridge & \symbol{bridge.tikz} & \code{bridge.tikz} & \texttt{constructions.tikz} \\ - \hline - \No & \parbox[c]{5cm}{bridge\\with track beneath} - & \symbol{bridge_track_beneath.tikz} & \code{bridge_track_beneath.tikz} & \texttt{constructions.tikz} \\ - \hline - \No & hump & \symbol{hump.tikz} & \code{hump.tikz} & \texttt{constructions.tikz} \\ - \hline - \No & interlocking & \symbol{interlocking.tikz} & \code{interlocking.tikz} & \texttt{constructions.tikz} \\ - \hline - \end{longtable} -\end{document} \ No newline at end of file diff --git a/snippets.pdf b/snippets.pdf new file mode 100644 index 0000000..2ee52ad Binary files /dev/null and b/snippets.pdf differ diff --git a/snippets.tex b/snippets.tex new file mode 100644 index 0000000..25d730d --- /dev/null +++ b/snippets.tex @@ -0,0 +1,279 @@ +%!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 + \No & side track & \symbol{side_track.tikz} & \code{side_track.tikz} & \texttt{topology} \\ + \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} \ No newline at end of file diff --git a/snippets/block_clearing_point_backward.tikz b/snippets/block_clearing_point_backward.tikz index 2a7d39a..5fb93ea 100644 --- a/snippets/block_clearing_point_backward.tikz +++ b/snippets/block_clearing_point_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/block_clearing_point_forward.tikz b/snippets/block_clearing_point_forward.tikz index afb507a..fb0305d 100644 --- a/snippets/block_clearing_point_forward.tikz +++ b/snippets/block_clearing_point_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/block_end_marker_backward.tikz b/snippets/block_end_marker_backward.tikz index f074a31..a934d2d 100644 --- a/snippets/block_end_marker_backward.tikz +++ b/snippets/block_end_marker_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/block_end_marker_forward.tikz b/snippets/block_end_marker_forward.tikz index 8baa09d..dd6d486 100644 --- a/snippets/block_end_marker_forward.tikz +++ b/snippets/block_end_marker_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/block_signal_backward.tikz b/snippets/block_signal_backward.tikz index f369b4d..d9cd71b 100644 --- a/snippets/block_signal_backward.tikz +++ b/snippets/block_signal_backward.tikz @@ -1,9 +1,9 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); -\pic at (0,0) {block_signal_backward=S}; +\pic at (0,0) {block_signal_backward={S}}; % replace the S with desired speed or remove \ No newline at end of file diff --git a/snippets/block_signal_forward.tikz b/snippets/block_signal_forward.tikz index a193700..aba6d35 100644 --- a/snippets/block_signal_forward.tikz +++ b/snippets/block_signal_forward.tikz @@ -1,9 +1,8 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); -\pic at (0,0) {block_signal_forward=S}; -% replace the S with desired speed or remove \ No newline at end of file +\pic at (0,0) {block_signal_forward}; \ No newline at end of file diff --git a/snippets/bridge.tikz b/snippets/bridge.tikz index a871762..a940f1c 100644 --- a/snippets/bridge.tikz +++ b/snippets/bridge.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/bridge_track_beneath.tikz b/snippets/bridge_track_beneath.tikz index 5b898c8..e109ce8 100644 --- a/snippets/bridge_track_beneath.tikz +++ b/snippets/bridge_track_beneath.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-1,-1) -- ++(2,2); diff --git a/snippets/bufferstop_backward.tikz b/snippets/bufferstop_backward.tikz index 831c51f..a674823 100644 --- a/snippets/bufferstop_backward.tikz +++ b/snippets/bufferstop_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[SideTrack] (0,0) -- ++(2.5,0); diff --git a/snippets/bufferstop_forward.tikz b/snippets/bufferstop_forward.tikz index 542a915..b3a3bda 100644 --- a/snippets/bufferstop_forward.tikz +++ b/snippets/bufferstop_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[SideTrack] (-2.5,0) -- ++(2.5,0); diff --git a/snippets/clearing_point.tikz b/snippets/clearing_point.tikz index b82f02c..4f90334 100644 --- a/snippets/clearing_point.tikz +++ b/snippets/clearing_point.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/combined_signal_forward.tikz b/snippets/combined_signal_forward.tikz index 0c7fca5..2e3f54d 100644 --- a/snippets/combined_signal_forward.tikz +++ b/snippets/combined_signal_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/derailer_left_backward.tikz b/snippets/derailer_left_backward.tikz index 21b2602..43a1b25 100644 --- a/snippets/derailer_left_backward.tikz +++ b/snippets/derailer_left_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[SideTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/derailer_left_forward.tikz b/snippets/derailer_left_forward.tikz index 309a916..fbb6610 100644 --- a/snippets/derailer_left_forward.tikz +++ b/snippets/derailer_left_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[SideTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/derailer_right_backward.tikz b/snippets/derailer_right_backward.tikz index 899dcb8..0bfacaf 100644 --- a/snippets/derailer_right_backward.tikz +++ b/snippets/derailer_right_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[SideTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/derailer_right_forward.tikz b/snippets/derailer_right_forward.tikz index 0075ff9..3600219 100644 --- a/snippets/derailer_right_forward.tikz +++ b/snippets/derailer_right_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[SideTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/diamond_crossing_left.tikz b/snippets/diamond_crossing_left.tikz index 7a63e31..d6b9fce 100644 --- a/snippets/diamond_crossing_left.tikz +++ b/snippets/diamond_crossing_left.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5, 0) -- ++(5,0); diff --git a/snippets/diamond_crossing_right.tikz b/snippets/diamond_crossing_right.tikz index e20f988..791fa76 100644 --- a/snippets/diamond_crossing_right.tikz +++ b/snippets/diamond_crossing_right.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5, 0); diff --git a/snippets/distant_signal_backward.tikz b/snippets/distant_signal_backward.tikz index 7034649..87d8d3b 100644 --- a/snippets/distant_signal_backward.tikz +++ b/snippets/distant_signal_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/distant_signal_forward.tikz b/snippets/distant_signal_forward.tikz index 717ac34..e4c44ca 100644 --- a/snippets/distant_signal_forward.tikz +++ b/snippets/distant_signal_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/distant_speed_signal_backward.tikz b/snippets/distant_speed_signal_backward.tikz index 9650c91..8dedf1d 100644 --- a/snippets/distant_speed_signal_backward.tikz +++ b/snippets/distant_speed_signal_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/distant_speed_signal_forward.tikz b/snippets/distant_speed_signal_forward.tikz index 6b6dc04..0983b2c 100644 --- a/snippets/distant_speed_signal_forward.tikz +++ b/snippets/distant_speed_signal_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/double-slip_turnout_left.tikz b/snippets/double-slip_turnout_left.tikz index 6f21ec4..826e82d 100644 --- a/snippets/double-slip_turnout_left.tikz +++ b/snippets/double-slip_turnout_left.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5, 0) -- ++(5,0); diff --git a/snippets/double-slip_turnout_right.tikz b/snippets/double-slip_turnout_right.tikz index 9cb4b63..8149ab0 100644 --- a/snippets/double-slip_turnout_right.tikz +++ b/snippets/double-slip_turnout_right.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5, 0); diff --git a/snippets/ghost_train_direction_backward.tikz b/snippets/ghost_train_direction_backward.tikz index 3f6f397..d7fa758 100644 --- a/snippets/ghost_train_direction_backward.tikz +++ b/snippets/ghost_train_direction_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/ghost_train_direction_forward.tikz b/snippets/ghost_train_direction_forward.tikz index 5ab7add..25775fa 100644 --- a/snippets/ghost_train_direction_forward.tikz +++ b/snippets/ghost_train_direction_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/hump.tikz b/snippets/hump.tikz index 84adf0d..b2a508a 100755 --- a/snippets/hump.tikz +++ b/snippets/hump.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[SideTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/interlocking.tikz b/snippets/interlocking.tikz index e52880e..21b1da3 100755 --- a/snippets/interlocking.tikz +++ b/snippets/interlocking.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \pic at (0,0) {interlocking}; \ No newline at end of file diff --git a/snippets/level_crossing_double.tikz b/snippets/level_crossing_double.tikz index fa7dcc0..fe3001f 100644 --- a/snippets/level_crossing_double.tikz +++ b/snippets/level_crossing_double.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,-0.5) -- ++(5,0); diff --git a/snippets/level_crossing_double_full_closure.tikz b/snippets/level_crossing_double_full_closure.tikz index d45e7d6..ad60a79 100644 --- a/snippets/level_crossing_double_full_closure.tikz +++ b/snippets/level_crossing_double_full_closure.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,-0.5) -- ++(5,0); diff --git a/snippets/level_crossing_single.tikz b/snippets/level_crossing_single.tikz index 952e5c5..3724306 100644 --- a/snippets/level_crossing_single.tikz +++ b/snippets/level_crossing_single.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/main_line.tikz b/snippets/main_line.tikz index 6a9d738..2d40121 100644 --- a/snippets/main_line.tikz +++ b/snippets/main_line.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5, 0.5) -- ++(5,0); diff --git a/snippets/main_track.tikz b/snippets/main_track.tikz index 19cf9a0..610ad71 100644 --- a/snippets/main_track.tikz +++ b/snippets/main_track.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); \ No newline at end of file diff --git a/snippets/platform_left.tikz b/snippets/platform_left.tikz index 78bbdf7..8566cb0 100644 --- a/snippets/platform_left.tikz +++ b/snippets/platform_left.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/platform_middle.tikz b/snippets/platform_middle.tikz index 192e752..80416dc 100644 --- a/snippets/platform_middle.tikz +++ b/snippets/platform_middle.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5, 0.5) -- ++(5,0); diff --git a/snippets/platform_right.tikz b/snippets/platform_right.tikz index 08c1041..66015d2 100644 --- a/snippets/platform_right.tikz +++ b/snippets/platform_right.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/route_clearing_point_backward.tikz b/snippets/route_clearing_point_backward.tikz index 06b0df7..3fa8723 100644 --- a/snippets/route_clearing_point_backward.tikz +++ b/snippets/route_clearing_point_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/route_clearing_point_forward.tikz b/snippets/route_clearing_point_forward.tikz index 29804af..7473e62 100644 --- a/snippets/route_clearing_point_forward.tikz +++ b/snippets/route_clearing_point_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/route_signal_backward.tikz b/snippets/route_signal_backward.tikz index 1a96ab3..54e6524 100644 --- a/snippets/route_signal_backward.tikz +++ b/snippets/route_signal_backward.tikz @@ -1,9 +1,9 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); -\pic at (0,0) {route_signal_backward=S}; +\pic at (0,0) {route_signal_backward={S}}; % replace the S with desired speed or remove \ No newline at end of file diff --git a/snippets/route_signal_forward.tikz b/snippets/route_signal_forward.tikz index 0c6d2e4..40f81ad 100644 --- a/snippets/route_signal_forward.tikz +++ b/snippets/route_signal_forward.tikz @@ -1,9 +1,8 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); -\pic at (0,0) {route_signal_forward=S}; -% replace the S with desired speed or remove \ No newline at end of file +\pic at (0,0) {route_signal_forward}; \ No newline at end of file diff --git a/snippets/shunt_limit_backward.tikz b/snippets/shunt_limit_backward.tikz index 5a3d375..804b4a5 100644 --- a/snippets/shunt_limit_backward.tikz +++ b/snippets/shunt_limit_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/shunt_limit_forward.tikz b/snippets/shunt_limit_forward.tikz index 9172289..2111ba0 100644 --- a/snippets/shunt_limit_forward.tikz +++ b/snippets/shunt_limit_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/shunt_signal_backward.tikz b/snippets/shunt_signal_backward.tikz index 75cfa58..6b3037f 100644 --- a/snippets/shunt_signal_backward.tikz +++ b/snippets/shunt_signal_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/shunt_signal_backward_locked.tikz b/snippets/shunt_signal_backward_locked.tikz index a03fc35..cf967a1 100644 --- a/snippets/shunt_signal_backward_locked.tikz +++ b/snippets/shunt_signal_backward_locked.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/shunt_signal_forward.tikz b/snippets/shunt_signal_forward.tikz index 3bd749f..89e14e3 100644 --- a/snippets/shunt_signal_forward.tikz +++ b/snippets/shunt_signal_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/shunt_signal_forward_locked.tikz b/snippets/shunt_signal_forward_locked.tikz index 4ca94de..7e07034 100644 --- a/snippets/shunt_signal_forward_locked.tikz +++ b/snippets/shunt_signal_forward_locked.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/side_track.tikz b/snippets/side_track.tikz index 582e7b9..679a49c 100644 --- a/snippets/side_track.tikz +++ b/snippets/side_track.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[SideTrack] (-2.5,0) -- ++(5,0); \ No newline at end of file diff --git a/snippets/speed_signal_backward.tikz b/snippets/speed_signal_backward.tikz index b890063..40e32c7 100644 --- a/snippets/speed_signal_backward.tikz +++ b/snippets/speed_signal_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/speed_signal_forward.tikz b/snippets/speed_signal_forward.tikz index 0c4df15..0711071 100644 --- a/snippets/speed_signal_forward.tikz +++ b/snippets/speed_signal_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/track_distance.tikz b/snippets/track_distance.tikz index 1f0ae48..68b1322 100755 --- a/snippets/track_distance.tikz +++ b/snippets/track_distance.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5, 0.5) -- ++(5,0); diff --git a/snippets/track_number.tikz b/snippets/track_number.tikz index 4f1b8a9..9d8211d 100755 --- a/snippets/track_number.tikz +++ b/snippets/track_number.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_berth.tikz b/snippets/train_berth.tikz index 3cf1cdc..6268632 100644 --- a/snippets/train_berth.tikz +++ b/snippets/train_berth.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_berth_shape.tikz b/snippets/train_berth_shape.tikz index 69bea76..8a9ac2d 100644 --- a/snippets/train_berth_shape.tikz +++ b/snippets/train_berth_shape.tikz @@ -1,9 +1,8 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); -\pic at (-2,0) {train_berth_shape_forward=4}; -\pic at (-1,0) {train_berth_shape_backward=3}; \ No newline at end of file +\pic at (-2,0) {train_berth_shape_forward={4}}; \ No newline at end of file diff --git a/snippets/train_berth_shape_bidirectional.tikz b/snippets/train_berth_shape_bidirectional.tikz index d62a977..e5e3905 100644 --- a/snippets/train_berth_shape_bidirectional.tikz +++ b/snippets/train_berth_shape_bidirectional.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_berth_shape_different.tikz b/snippets/train_berth_shape_different.tikz new file mode 100644 index 0000000..304d817 --- /dev/null +++ b/snippets/train_berth_shape_different.tikz @@ -0,0 +1,9 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../snippets.tex + +% 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. + +\draw[MainTrack] (-2.5,0) -- ++(5,0); +\pic at (-2,0) {train_berth_shape_forward={4}}; +\pic at (-1,0) {train_berth_shape_backward={3}}; \ No newline at end of file diff --git a/snippets/train_berth_sign_backward.tikz b/snippets/train_berth_sign_backward.tikz index ad7592c..08240a8 100644 --- a/snippets/train_berth_sign_backward.tikz +++ b/snippets/train_berth_sign_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_berth_sign_forward.tikz b/snippets/train_berth_sign_forward.tikz index 7968688..5b50672 100644 --- a/snippets/train_berth_sign_forward.tikz +++ b/snippets/train_berth_sign_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_direction_backward.tikz b/snippets/train_direction_backward.tikz index f1af0b0..9cdd7e0 100644 --- a/snippets/train_direction_backward.tikz +++ b/snippets/train_direction_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_direction_forward.tikz b/snippets/train_direction_forward.tikz index 976e225..0757397 100644 --- a/snippets/train_direction_forward.tikz +++ b/snippets/train_direction_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_drive_automatic.tikz b/snippets/train_drive_automatic.tikz index 5c62e4e..2f1ec73 100644 --- a/snippets/train_drive_automatic.tikz +++ b/snippets/train_drive_automatic.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_drive_human.tikz b/snippets/train_drive_human.tikz index 7bb9de1..2c0687e 100644 --- a/snippets/train_drive_human.tikz +++ b/snippets/train_drive_human.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_moving_backward.tikz b/snippets/train_moving_backward.tikz index 484d182..87b661f 100644 --- a/snippets/train_moving_backward.tikz +++ b/snippets/train_moving_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_moving_fast_backward.tikz b/snippets/train_moving_fast_backward.tikz index c0b43a9..8df3a20 100644 --- a/snippets/train_moving_fast_backward.tikz +++ b/snippets/train_moving_fast_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_moving_fast_forward.tikz b/snippets/train_moving_fast_forward.tikz index c8a8af0..48526a7 100644 --- a/snippets/train_moving_fast_forward.tikz +++ b/snippets/train_moving_fast_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_moving_forward.tikz b/snippets/train_moving_forward.tikz index b34144e..a6858a9 100644 --- a/snippets/train_moving_forward.tikz +++ b/snippets/train_moving_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_moving_slow_backward.tikz b/snippets/train_moving_slow_backward.tikz index b92d2b1..d09b251 100644 --- a/snippets/train_moving_slow_backward.tikz +++ b/snippets/train_moving_slow_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_moving_slow_forward.tikz b/snippets/train_moving_slow_forward.tikz index 0116ea9..9951ed0 100644 --- a/snippets/train_moving_slow_forward.tikz +++ b/snippets/train_moving_slow_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_shunt_mode_backward.tikz b/snippets/train_shunt_mode_backward.tikz index 7d77936..a658df9 100644 --- a/snippets/train_shunt_mode_backward.tikz +++ b/snippets/train_shunt_mode_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_shunt_mode_forward.tikz b/snippets/train_shunt_mode_forward.tikz index 70a9695..7764f87 100644 --- a/snippets/train_shunt_mode_forward.tikz +++ b/snippets/train_shunt_mode_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_shunting_backward.tikz b/snippets/train_shunting_backward.tikz index 35f2318..526bb73 100644 --- a/snippets/train_shunting_backward.tikz +++ b/snippets/train_shunting_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/train_shunting_forward.tikz b/snippets/train_shunting_forward.tikz index bc3cb8b..938f16a 100644 --- a/snippets/train_shunting_forward.tikz +++ b/snippets/train_shunting_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/transmitter.tikz b/snippets/transmitter.tikz index 2cfe287..83f7f14 100644 --- a/snippets/transmitter.tikz +++ b/snippets/transmitter.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/transmitter_backward.tikz b/snippets/transmitter_backward.tikz index d247680..5b1b320 100644 --- a/snippets/transmitter_backward.tikz +++ b/snippets/transmitter_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/transmitter_below.tikz b/snippets/transmitter_below.tikz new file mode 100644 index 0000000..5ece3af --- /dev/null +++ b/snippets/transmitter_below.tikz @@ -0,0 +1,8 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../snippets.tex + +% 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. + +\draw[MainTrack] (-2.5,0) -- ++(5,0); +\pic at (0,0) {transmitter_below}; \ No newline at end of file diff --git a/snippets/transmitter_below_bidirectional.tikz b/snippets/transmitter_below_bidirectional.tikz new file mode 100644 index 0000000..2b8b465 --- /dev/null +++ b/snippets/transmitter_below_bidirectional.tikz @@ -0,0 +1,8 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../snippets.tex + +% 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. + +\draw[MainTrack] (-2.5,0) -- ++(5,0); +\pic at (0,0) {transmitter_below_bidirectional}; \ No newline at end of file diff --git a/snippets/transmitter_below_forward.tikz b/snippets/transmitter_below_forward.tikz new file mode 100644 index 0000000..16772f6 --- /dev/null +++ b/snippets/transmitter_below_forward.tikz @@ -0,0 +1,8 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../snippets.tex + +% 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. + +\draw[MainTrack] (-2.5,0) -- ++(5,0); +\pic at (0,0) {transmitter_below_forward}; \ No newline at end of file diff --git a/snippets/transmitter_below_with_signal.tikz b/snippets/transmitter_below_with_signal.tikz index 6da406d..aeb2589 100644 --- a/snippets/transmitter_below_with_signal.tikz +++ b/snippets/transmitter_below_with_signal.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/transmitter_bidirectional.tikz b/snippets/transmitter_bidirectional.tikz index 88bb10d..3083d54 100644 --- a/snippets/transmitter_bidirectional.tikz +++ b/snippets/transmitter_bidirectional.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/transmitter_forward.tikz b/snippets/transmitter_forward.tikz index c557c3d..19f9933 100644 --- a/snippets/transmitter_forward.tikz +++ b/snippets/transmitter_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/turnout_left_backward.tikz b/snippets/turnout_left_backward.tikz index ac559d5..ebfb3ea 100644 --- a/snippets/turnout_left_backward.tikz +++ b/snippets/turnout_left_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++( 5, 0); diff --git a/snippets/turnout_left_backward_left_position.tikz b/snippets/turnout_left_backward_left_position.tikz index ccf4810..2254651 100644 --- a/snippets/turnout_left_backward_left_position.tikz +++ b/snippets/turnout_left_backward_left_position.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++( 5, 0); diff --git a/snippets/turnout_left_backward_moving_points.tikz b/snippets/turnout_left_backward_moving_points.tikz index f6ab4f7..473ad6a 100644 --- a/snippets/turnout_left_backward_moving_points.tikz +++ b/snippets/turnout_left_backward_moving_points.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++( 5, 0); diff --git a/snippets/turnout_left_backward_right_position.tikz b/snippets/turnout_left_backward_right_position.tikz index 27ca36f..7aa14b3 100644 --- a/snippets/turnout_left_backward_right_position.tikz +++ b/snippets/turnout_left_backward_right_position.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++( 5, 0); diff --git a/snippets/turnout_left_forward.tikz b/snippets/turnout_left_forward.tikz index 91786ad..4f240c0 100644 --- a/snippets/turnout_left_forward.tikz +++ b/snippets/turnout_left_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/turnout_left_forward_left_position.tikz b/snippets/turnout_left_forward_left_position.tikz index 6e9fbc3..7f27609 100644 --- a/snippets/turnout_left_forward_left_position.tikz +++ b/snippets/turnout_left_forward_left_position.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/turnout_left_forward_moving_points.tikz b/snippets/turnout_left_forward_moving_points.tikz index 6fad9d4..6333869 100644 --- a/snippets/turnout_left_forward_moving_points.tikz +++ b/snippets/turnout_left_forward_moving_points.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/turnout_left_forward_right_position.tikz b/snippets/turnout_left_forward_right_position.tikz index b8988fe..b69a286 100644 --- a/snippets/turnout_left_forward_right_position.tikz +++ b/snippets/turnout_left_forward_right_position.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/turnout_right_backward.tikz b/snippets/turnout_right_backward.tikz index 1890da3..b7c2143 100644 --- a/snippets/turnout_right_backward.tikz +++ b/snippets/turnout_right_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++( 5,0); diff --git a/snippets/turnout_right_backward_left_position.tikz b/snippets/turnout_right_backward_left_position.tikz index a495eb3..4b54ddb 100644 --- a/snippets/turnout_right_backward_left_position.tikz +++ b/snippets/turnout_right_backward_left_position.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++( 5,0); diff --git a/snippets/turnout_right_backward_moving_points.tikz b/snippets/turnout_right_backward_moving_points.tikz index 7a3e53c..dbbb887 100644 --- a/snippets/turnout_right_backward_moving_points.tikz +++ b/snippets/turnout_right_backward_moving_points.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++( 5,0); diff --git a/snippets/turnout_right_backward_right_position.tikz b/snippets/turnout_right_backward_right_position.tikz index 6056a84..fe48d8b 100644 --- a/snippets/turnout_right_backward_right_position.tikz +++ b/snippets/turnout_right_backward_right_position.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++( 5,0); diff --git a/snippets/turnout_right_forward.tikz b/snippets/turnout_right_forward.tikz index 449d587..dd0c6d0 100644 --- a/snippets/turnout_right_forward.tikz +++ b/snippets/turnout_right_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5, 0); diff --git a/snippets/turnout_right_forward_left_position.tikz b/snippets/turnout_right_forward_left_position.tikz index 9ae47b3..c2f62a5 100644 --- a/snippets/turnout_right_forward_left_position.tikz +++ b/snippets/turnout_right_forward_left_position.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5, 0); diff --git a/snippets/turnout_right_forward_moving_points.tikz b/snippets/turnout_right_forward_moving_points.tikz index ee35057..568067f 100644 --- a/snippets/turnout_right_forward_moving_points.tikz +++ b/snippets/turnout_right_forward_moving_points.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5, 0); diff --git a/snippets/turnout_right_forward_right_position.tikz b/snippets/turnout_right_forward_right_position.tikz index b3ea6fe..ce7c3a2 100644 --- a/snippets/turnout_right_forward_right_position.tikz +++ b/snippets/turnout_right_forward_right_position.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5, 0); diff --git a/snippets/turnout_with_fouling_left_backward.tikz b/snippets/turnout_with_fouling_left_backward.tikz index 3836f99..e290320 100644 --- a/snippets/turnout_with_fouling_left_backward.tikz +++ b/snippets/turnout_with_fouling_left_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++( 5, 0); diff --git a/snippets/turnout_with_fouling_left_forward.tikz b/snippets/turnout_with_fouling_left_forward.tikz index cdf17ab..a998a75 100644 --- a/snippets/turnout_with_fouling_left_forward.tikz +++ b/snippets/turnout_with_fouling_left_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/turnout_with_fouling_right_backward.tikz b/snippets/turnout_with_fouling_right_backward.tikz index 408c657..61e38a2 100644 --- a/snippets/turnout_with_fouling_right_backward.tikz +++ b/snippets/turnout_with_fouling_right_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++( 5,0); diff --git a/snippets/turnout_with_fouling_right_forward.tikz b/snippets/turnout_with_fouling_right_forward.tikz index 4fd177b..9726738 100644 --- a/snippets/turnout_with_fouling_right_forward.tikz +++ b/snippets/turnout_with_fouling_right_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5, 0); diff --git a/snippets/vehicle.tikz b/snippets/vehicle.tikz index 3a79660..fae0bf7 100644 --- a/snippets/vehicle.tikz +++ b/snippets/vehicle.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[SideTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/vehicles.tikz b/snippets/vehicles.tikz index 8aa5f4b..7ba2d94 100644 --- a/snippets/vehicles.tikz +++ b/snippets/vehicles.tikz @@ -1,9 +1,8 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[SideTrack] (-2.5,0) -- ++(5,0); -\pic at (-2,0) {vehicles}; -\node[font=\sffamily] at (0,0) {label}; \ No newline at end of file +\pic at (-2,0) {vehicles}; \ No newline at end of file diff --git a/snippets/vehicles_with_label.tikz b/snippets/vehicles_with_label.tikz new file mode 100644 index 0000000..2c57998 --- /dev/null +++ b/snippets/vehicles_with_label.tikz @@ -0,0 +1,9 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../snippets.tex + +% 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. + +\draw[SideTrack] (-2.5,0) -- ++(5,0); +\pic at (-2,0) {vehicles}; +\node[font=\sffamily] at (0,0) {label}; \ No newline at end of file diff --git a/snippets/view_point_backward.tikz b/snippets/view_point_backward.tikz index 58b3de7..0e9f2fd 100644 --- a/snippets/view_point_backward.tikz +++ b/snippets/view_point_backward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/snippets/view_point_forward.tikz b/snippets/view_point_forward.tikz index 310a673..1a6f6c0 100644 --- a/snippets/view_point_forward.tikz +++ b/snippets/view_point_forward.tikz @@ -1,7 +1,7 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../overview.tex +%!TEX root = ../snippets.tex -% Copyright 2018 Martin Scheidt (ISC license) +% 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. \draw[MainTrack] (-2.5,0) -- ++(5,0); diff --git a/src/tikzlibrarytrackschematic.code.tex b/src/tikzlibrarytrackschematic.code.tex index 8c7db3d..fb61928 100644 --- a/src/tikzlibrarytrackschematic.code.tex +++ b/src/tikzlibrarytrackschematic.code.tex @@ -1,4 +1,7 @@ -% Copyright 2018 Martin Scheidt (ISC license) +%% symbol library for TikZ track schematics +% +% 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. \ProvidesFileRCS{tikzlibrarytrackschematic.code.tex} @@ -7,6 +10,5 @@ \usetikzlibrary{trackschematic.trafficcontrol}% \usetikzlibrary{trackschematic.vehicles}% \usetikzlibrary{trackschematic.construction}% -% \usetikzlibrary{trackschematic.misc}% \endinput diff --git a/src/tikzlibrarytrackschematic.constructions.code.tex b/src/tikzlibrarytrackschematic.constructions.code.tex index f99122d..8d420ff 100644 --- a/src/tikzlibrarytrackschematic.constructions.code.tex +++ b/src/tikzlibrarytrackschematic.constructions.code.tex @@ -1,27 +1,34 @@ %% symbol library for TikZ track schematics % -% Copyright 2018 Martin Scheidt (ISC license) - +% 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. +\ProvidesFileRCS{tikzlibrarytrackschematic.construction.code.tex} + +\colorlet{background}{white} +\colorlet{foreground}{black} + \tikzset{ + pics/platform_left/.default=4, pics/platform_left/.style n args={1}{ code={ \path[draw, line width=0.75pt,foreground] (0,0.5) -- ++(0,-0.3) -- ++(#1,0) -- ++(0,0.3); \path[draw, line width=0.75pt,foreground] (0,0.3) -- ++(#1,0); } }, - pics/platform_left/.default=4, } + \tikzset{ + pics/platform_right/.default=4, pics/platform_right/.style n args={1}{ code={ \path[draw, line width=0.75pt,foreground] (0,-0.5) -- ++(0,0.3) -- ++(#1,0) -- ++(0,-0.3); \path[draw, line width=0.75pt,foreground] (0,-0.3) -- ++(#1,0); } }, - pics/platform_right/.default=4, } + \tikzset{ level_crossing_barrier_left/.pic={ { % road @@ -34,6 +41,7 @@ } }; } + \tikzset{ level_crossing_barrier_right/.pic={ { % road @@ -46,6 +54,7 @@ } }; } + \tikzset{ level_crossing/.pic={ { % road @@ -54,6 +63,7 @@ } }; } + \tikzset{ pics/bridge_left/.style n args={1}{ code={ @@ -62,14 +72,16 @@ }, pics/bridge_left/.default=3, } + \tikzset{ + pics/bridge_right/.default=3, pics/bridge_right/.style n args={1}{ code={ \path[draw, line width=0.75pt,foreground] (-0.1,-0.48) -- ++(0.08,0.08) -- ++(#1,0) -- ++(0.08,-0.08); } }, - pics/bridge_right/.default=3, } + \tikzset{ interlocking/.pic={ { @@ -79,6 +91,7 @@ } }; } + \tikzset{ hump/.pic={ { % upper side @@ -101,3 +114,4 @@ }; } +\endinput diff --git a/src/tikzlibrarytrackschematic.topology.code.tex b/src/tikzlibrarytrackschematic.topology.code.tex index 9eed9c1..95601d6 100644 --- a/src/tikzlibrarytrackschematic.topology.code.tex +++ b/src/tikzlibrarytrackschematic.topology.code.tex @@ -1,24 +1,28 @@ %% symbol library for TikZ track schematics % % 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. +\ProvidesFileRCS{tikzlibrarytrackschematic.topology.code.tex} + \colorlet{background}{white} \colorlet{foreground}{black} -\tikzset{MainTrack/.style={line width=2pt,foreground}} -\tikzset{SideTrack/.style={line width=0.7pt,foreground}} +\tikzset{MainTrack/.style={line width=2pt,foreground}}% +\tikzset{SideTrack/.style={line width=0.7pt,foreground}}% \tikzset{ - pics/track_number/.style args={#1}{ - code={ + pics/track_number/.default=, + pics/track_number/.style args={#1}{% + code={% \node[fill=background,font=\sffamily,text=foreground] at (0,0) {#1}; % speed indicator } }, - pics/track_number/.default=, -} +}% + \tikzset{ + pics/track_distance/.default=, pics/track_distance/.style args={#1}{ code={ \fill[foreground] (0,0.96) -- ++(-0.1,-0.15) -- ++(0.2,0) -- cycle; % upper triangle @@ -26,75 +30,86 @@ \fill[foreground] (0,0.04) -- ++(-0.1,0.15) -- ++(0.2,0) -- cycle; % lower triangle } }, - pics/track_distance/.default=, } + \tikzset{ + pics/turnout_left_forward/.default=foreground, pics/turnout_left_forward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt,fill=#1] (0,0) -- ++(0.4,0.4) -- ++(0,-0.4); % turnout marker } }, - pics/turnout_left_forward/.default=foreground, } + \tikzset{ + pics/turnout_left_backward/.default=foreground, pics/turnout_left_backward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt,fill=#1] (0,0) -- ++(-0.4,-0.4) -- ++(0,0.4); % turnout marker } }, - pics/turnout_left_backward/.default=foreground, } + \tikzset{ + pics/turnout_right_forward/.default=foreground, pics/turnout_right_forward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt,fill=#1] (0,0) -- ++(0.4,-0.4) -- ++(0,0.4); % turnout marker } }, - pics/turnout_right_forward/.default=foreground, } + \tikzset{ + pics/turnout_right_backward/.default=foreground, pics/turnout_right_backward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt,fill=#1] (0,0) -- ++(-0.4,0.4) -- ++(0,-0.4); % turnout marker } }, - pics/turnout_right_backward/.default=foreground, } + \tikzset{ fouling_point_right_backward/.pic={ \path[draw=foreground,line width=0.75pt] (-0.7,0) -- ++(0,0.7); % fouling point indicator }; } + \tikzset{ fouling_point_left_backward/.pic={ \path[draw=foreground,line width=0.75pt] (-0.7,0) -- ++(0,-0.7); % fouling point indicator }; } + \tikzset{ fouling_point_right_forward/.pic={ \path[draw=foreground,line width=0.75pt] (0.7,0) -- ++(0,-0.7); % fouling point indicator }; } + \tikzset{ fouling_point_left_forward/.pic={ \path[draw=foreground,line width=0.75pt] (0.7,0) -- ++(0,0.7); % fouling point indicator }; } + \tikzset{ slip_left_forward/.pic={ \path[draw=foreground,line width=0.75pt] (-0.4,0.1) -- (0.3,0.4); % fouling point indicator }; } + \tikzset{ slip_left_backward/.pic={ \path[draw=foreground,line width=0.75pt] (-0.3,-0.4) -- (0.4,-0.1); % fouling point indicator }; } + \tikzset{ slip_right_forward/.pic={ \path[draw=foreground,line width=0.75pt] (-0.4,-0.1) -- (0.3,-0.4); % fouling point indicator }; } + \tikzset{ slip_right_backward/.pic={ \path[draw=foreground,line width=0.75pt] (0.4,0.1) -- (-0.3,0.4); % fouling point indicator @@ -105,11 +120,13 @@ \path[draw=foreground,line width=1.5pt] (0,-0.1) -- ++(0.3,0); % points indicator }; } + \tikzset{ turnout_left_forward_points_left/.pic={ \path[draw=foreground,line width=1.5pt] (-0.035, 0.1) -- ++(0.2,0.2); % points indicator }; } + \tikzset{ turnout_left_forward_points_moving/.pic={ \fill[foreground] (0.075,-0.1) circle (0.05); % points indicator left @@ -118,16 +135,19 @@ \fill[foreground] (0.115, 0.25) circle (0.05); }; } + \tikzset{ turnout_left_backward_points_right/.pic={ \path[draw=foreground,line width=1.5pt] (0,0.1) -- ++(-0.3,0); % points indicator }; } + \tikzset{ turnout_left_backward_points_left/.pic={ \path[draw=foreground,line width=1.5pt] (0.035,-0.1) -- ++(-0.2,-0.2); % points indicator }; } + \tikzset{ turnout_left_backward_points_moving/.pic={ \fill[foreground] (-0.075,0.1) circle (0.05); % points indicator left @@ -136,16 +156,19 @@ \fill[foreground] (-0.115,-0.25) circle (0.05); }; } + \tikzset{ turnout_right_forward_points_right/.pic={ \path[draw=foreground,line width=1.5pt] (-0.035,-0.1) -- ++(0.2,-0.2); % points indicator }; } + \tikzset{ turnout_right_forward_points_left/.pic={ \path[draw=foreground,line width=1.5pt] (0,0.1) -- ++(0.3,0); % points indicator }; } + \tikzset{ turnout_right_forward_points_moving/.pic={ \fill[foreground] (0.075, 0.1) circle (0.05); % points indicator left @@ -154,16 +177,19 @@ \fill[foreground] (0.115,-0.25) circle (0.05); }; } + \tikzset{ turnout_right_backward_points_right/.pic={ \path[draw=foreground,line width=1.5pt] (0.035,0.1) -- ++(-0.2,0.2); % points indicator }; } + \tikzset{ turnout_right_backward_points_left/.pic={ \path[draw=foreground,line width=1.5pt] (0,-0.1) -- ++(-0.3,0); % points indicator }; } + \tikzset{ turnout_right_backward_points_moving/.pic={ \fill[foreground] (-0.075,-0.1) circle (0.05); % points indicator left @@ -172,37 +198,45 @@ \fill[foreground] (-0.115,0.25) circle (0.05); }; } + \tikzset{ derailer_right_forward/.pic={ \path[draw=foreground, line width=1pt] (0,0.2) -- ++(0,-0.4); % derailer marker \path[draw=foreground,->,>=latex,line width=1pt,dashed] (0,0) -- ++(0.4,-0.4); % derailer arrow }; } + \tikzset{ derailer_right_backward/.pic={ \path[draw=foreground, line width=1pt] (0,0.2) -- ++(0,-0.4); % derailer marker \path[draw=foreground,->,>=latex,line width=1pt,dashed] (0,0) -- ++(-0.4,0.4); % derailer arrow }; } + \tikzset{ derailer_left_forward/.pic={ \path[draw=foreground, line width=1pt] (0,0.2) -- ++(0,-0.4); % derailer marker \path[draw=foreground,->,>=latex,line width=1pt,dashed] (0,0) -- ++(0.4,0.4); % derailer arrow }; } + \tikzset{ derailer_left_backward/.pic={ \path[draw=foreground, line width=1pt] (0,0.2) -- ++(0,-0.4); % derailer marker \path[draw=foreground,->,>=latex,line width=1pt,dashed] (0,0) -- ++(-0.4,-0.4); % derailer arrow }; } + \tikzset{ bufferstop_forward/.pic={ \path[draw=foreground, line width=1pt] (-0.1,0.2) -- ++(0.1,0) -- ++(0,-0.4) -- ++ (-0.1,0); % bufferstop marker }; } + \tikzset{ bufferstop_backward/.pic={ \path[draw=foreground, line width=1pt] (0.1,0.2) -- ++(-0.1,0) -- ++(0,-0.4) -- ++ (0.1,0); % bufferstop marker }; } + +\endinput diff --git a/src/tikzlibrarytrackschematic.trafficcontrol.code.tex b/src/tikzlibrarytrackschematic.trafficcontrol.code.tex index 15a9e44..69b78b7 100644 --- a/src/tikzlibrarytrackschematic.trafficcontrol.code.tex +++ b/src/tikzlibrarytrackschematic.trafficcontrol.code.tex @@ -1,9 +1,14 @@ %% symbol library for TikZ track schematics % % 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. +\ProvidesFileRCS{tikzlibrarytrackschematic.trafficcontrol.code.tex} + +\colorlet{background}{white} +\colorlet{foreground}{black} + \tikzset{ train_berth_sign_forward/.pic={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.3,0); % signal pole @@ -15,6 +20,7 @@ } }; } + \tikzset{ train_berth_sign_backward/.pic={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.3,0); % signal pole @@ -26,31 +32,35 @@ } }; } + \tikzset{ + pics/train_berth_shape/.default=4, pics/train_berth_shape/.style n args={1}{ code={ \path[draw=foreground,line width=0.75pt,densely dotted] (0, 0.25) -- (0, 0.35) -- (#1, 0.35) -- ++(0,-0.1); % berth shape \path[draw=foreground,line width=0.75pt,densely dotted] (0,-0.25) -- (0,-0.35) -- (#1,-0.35) -- ++(0, 0.1); % berth shape } }, - pics/train_berth_shape/.default=4, } + \tikzset{ + pics/train_berth_shape/.default=4, pics/train_berth_shape_forward/.style n args={1}{ code={ \path[draw=foreground,line width=0.75pt,densely dotted] (0,-0.25) -- (0,-0.35) -- (#1,-0.35) -- ++(0, 0.1); % berth shape } }, - pics/train_berth_shape/.default=4, } + \tikzset{ + pics/train_berth_shape/.default=4, pics/train_berth_shape_backward/.style n args={1}{ code={ \path[draw=foreground,line width=0.75pt,densely dotted] (0, 0.25) -- (0, 0.35) -- (#1, 0.35) -- ++(0,-0.1); % berth shape } }, - pics/train_berth_shape/.default=4, } + \tikzset{ view_point_forward/.pic={ \path[draw=foreground,<-,>=latex,line width=1pt] (0,-0.1) -- ++(0,-0.3) -- ++(0.2,0); % arrow @@ -61,6 +71,7 @@ } }; } + \tikzset{ view_point_backward/.pic={ \path[draw=foreground,<-,>=latex,line width=1pt] (0,0.1) -- ++(0,0.3) -- ++(-0.2,0); % arrow @@ -71,7 +82,9 @@ } }; } + \tikzset{ + pics/distant_signal_forward/.default=, pics/distant_signal_forward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.4,0); % signal pole @@ -79,9 +92,10 @@ \node[rotate=-90,font=\sffamily,text=foreground] at (0.9,-0.4) {#1}; % speed indicator } }, - pics/distant_signal_forward/.default=, } + \tikzset{ + pics/distant_signal_backward/.default=, pics/distant_signal_backward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.4,0); % signal pole @@ -89,9 +103,10 @@ \node[rotate=90,font=\sffamily,text=foreground] at (-0.9,0.4) {#1}; % speed indicator } }, - pics/distant_signal_backward/.default=, } + \tikzset{ + pics/speed_signal_forward/.default=, pics/speed_signal_forward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.4,0); % signal pole @@ -99,9 +114,10 @@ \node[rotate=-90,font=\sffamily,text=foreground] at (1.0,-0.4) {#1}; % speed indicator } }, - pics/speed_signal_forward/.default=, } + \tikzset{ + pics/speed_signal_backward/.default=, pics/speed_signal_backward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.4,0); % signal pole @@ -109,8 +125,8 @@ \node[rotate=90,font=\sffamily,text=foreground] at (-1.0,0.4) {#1}; % speed indicator } }, - pics/speed_signal_backward/.default=, } + \tikzset{ pics/block_signal_forward/.style args={#1}{ code={ @@ -122,6 +138,7 @@ pics/block_signal_forward/.default=, } \tikzset{ + pics/block_signal_backward/.default=, pics/block_signal_backward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.7,0); % signal pole @@ -129,9 +146,10 @@ \node[rotate=90,font=\sffamily,text=foreground] at (-1.3,0.4) {#1}; % speed indicator } }, - pics/block_signal_backward/.default=, } + \tikzset{ + pics/route_signal_forward/.default=, pics/route_signal_forward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.7,0); % signal pole @@ -139,9 +157,10 @@ \node[rotate=-90,font=\sffamily,text=foreground] at (1.3,-0.4) {#1}; % speed indicator } }, - pics/route_signal_forward/.default=, } + \tikzset{ + pics/route_signal_backward/.default=, pics/route_signal_backward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.7,0); % signal pole @@ -149,14 +168,15 @@ \node[rotate=90,font=\sffamily,text=foreground] at (-1.3,0.4) {#1}; % speed indicator } }, - pics/route_signal_backward/.default=, } + \tikzset{ shunt_signal_forward/.pic={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.7,0); % signal pole \path[draw=foreground,line width=1pt] (0.6,-0.3) circle (0.1); % signal marker }; } + \tikzset{ shunt_signal_forward_locked/.pic={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.7,0); % signal pole @@ -165,12 +185,14 @@ \path[draw=foreground,line width=1pt] (0.6,-0.3) circle (0.1); % signal marker }; } + \tikzset{ shunt_signal_backward/.pic={ \path[draw=foreground, line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.7,0); % signal pole \path[draw=foreground, line width=1pt] (-0.6,0.3) circle (0.1); % signal marker }; } + \tikzset{ shunt_signal_backward_locked/.pic={ \path[draw=foreground, line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.7,0); % signal pole @@ -179,55 +201,65 @@ \path[draw=foreground, line width=1pt] (-0.6,0.3) circle (0.1); % signal marker }; } + \tikzset{ shunt_limit_forward/.pic={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.7,0); % signal pole \path[draw=foreground,line width=1pt] (0.6,-0.2) arc (270:90:-0.1) -- cycle;; % signal marker }; } + \tikzset{ shunt_limit_backward/.pic={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.7,0); % signal pole \path[draw=foreground,line width=1pt] (-0.6,0.4) arc (90:270:0.1) -- cycle;; % signal marker }; } + \tikzset{ block_end_marker_forward/.pic={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,-0.5); % marker \path[draw=foreground,line width=1pt] (-0.1,-0.7) rectangle ++(0.2,0.2); % sign }; } + \tikzset{ block_end_marker_backward/.pic={ \path[draw=foreground,line width=1pt] (0,0) -- ++(0,0.5); % marker \path[draw=foreground,line width=1pt] (0.1,0.7) rectangle ++(-0.2,-0.2); % sign }; } + \tikzset{ block_clearing_point_forward/.pic={ \path[draw=foreground,line width=1pt] (0,0.1) -- ++(0,-0.2); % marker \path[draw=foreground,line width=1pt] (0,-0.1) -- ++(-0.1,-0.1) -- ++(0.1,-0.1) -- ++(0.1,0.1) -- cycle; % sign }; } + \tikzset{ block_clearing_point_backward/.pic={ \path[draw=foreground, line width=1pt] (0,-0.1) -- ++(0,0.2); % marker \path[draw=foreground, line width=1pt] (0,0.1) -- ++(0.1,0.1) -- ++(-0.1,0.1) -- ++(-0.1,-0.1) -- cycle; % sign }; } + \tikzset{ route_clearing_point_forward/.pic={ \path[draw=foreground, line width=1pt] (0,0.1) -- ++(0,-0.2); % marker \path[draw=foreground, line width=1pt] (0,-0.2) circle (0.1); % sign }; } + \tikzset{ route_clearing_point_backward/.pic={ \path[draw=foreground, line width=1pt] (0,-0.1) -- ++(0,0.2); % marker \path[draw=foreground, line width=1pt] (0, 0.2) circle (0.1); % sign }; } + \tikzset{ + pics/clearing_point/.default=, pics/clearing_point/.style args={#1}{ code={ \path[draw=foreground, line width=1pt] (0 ,-0.1) -- ++( 0 ,0.2); % marker @@ -235,35 +267,39 @@ \node[font=\sffamily,text=foreground] at (0,0.45) {#1}; % indicator } }, - pics/clearing_point/.default=, } + \tikzset{ + pics/transmitter_below/.default=background, pics/transmitter_below/.style args={#1}{ code={ \path[draw=foreground,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,-0.25); % turnout marker } }, - pics/transmitter_below/.default=background, } + \tikzset{ + pics/transmitter_below_forward/.default=background, pics/transmitter_below_forward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,-0.25); % turnout marker \path[draw=foreground] (0.1,-0.05) -- (0.2,-0.125) -- (0.1,-0.2) -- cycle; } }, - pics/transmitter_below_forward/.default=background, } + \tikzset{ + pics/transmitter_below_backward/.default=background, pics/transmitter_below_backward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,-0.25); % turnout marker \path[draw=foreground] (-0.1,-0.05) -- (-0.2,-0.125) -- (-0.1,-0.2) -- cycle; } }, - pics/transmitter_below_backward/.default=background, } + \tikzset{ + pics/transmitter_below_bidirectional/.default=background, pics/transmitter_below_bidirectional/.style args={#1}{ code={ \path[draw=foreground,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,-0.25); % turnout marker @@ -271,35 +307,39 @@ \path[draw=foreground] (-0.1,-0.05) -- (-0.2,-0.125) -- (-0.1,-0.2) -- cycle; } }, - pics/transmitter_below_bidirectional/.default=background, } + \tikzset{ + pics/transmitter_above/.default=background, pics/transmitter_above/.style args={#1}{ code={ \path[draw=foreground,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,0.25); % turnout marker } }, - pics/transmitter_above/.default=background, } + \tikzset{ + pics/transmitter_above_forward/.default=background, pics/transmitter_above_forward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,0.25); % turnout marker \path[draw=foreground] (0.1,0.05) -- (0.2,0.125) -- (0.1,0.2) -- cycle; } }, - pics/transmitter_above_forward/.default=background, } + \tikzset{ + pics/transmitter_above_backward/.default=background, pics/transmitter_above_backward/.style args={#1}{ code={ \path[draw=foreground,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,0.25); % turnout marker \path[draw=foreground] (-0.1,0.05) -- (-0.2,0.125) -- (-0.1,0.2) -- cycle; } }, - pics/transmitter_above_backward/.default=background, } + \tikzset{ + pics/transmitter_above_bidirectional/.default=background, pics/transmitter_above_bidirectional/.style args={#1}{ code={ \path[draw=foreground,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,0.25); % turnout marker @@ -307,5 +347,6 @@ \path[draw=foreground] (-0.1,0.05) -- (-0.2,0.125) -- (-0.1,0.2) -- cycle; } }, - pics/transmitter_above_bidirectional/.default=background, -} \ No newline at end of file +} + +\endinput diff --git a/src/tikzlibrarytrackschematic.vehicles.code.tex b/src/tikzlibrarytrackschematic.vehicles.code.tex index ebbd1cf..262dfb7 100644 --- a/src/tikzlibrarytrackschematic.vehicles.code.tex +++ b/src/tikzlibrarytrackschematic.vehicles.code.tex @@ -1,22 +1,26 @@ %% symbol library for TikZ track schematics % -% Copyright 2018 Martin Scheidt (ISC license) - +% 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. +\ProvidesFileRCS{tikzlibrarytrackschematic.vehicles.code.tex} + \colorlet{background}{white} \colorlet{foreground}{black} \tikzset{ + pics/vehicles/.default=4, pics/vehicles/.style args={#1}{ code={ \path[draw=foreground, double, line width=0.3pt, fill=background] (0,-0.3) -- ++(#1,0) -- ++(0,0.6) -- ++(-#1,0) -- cycle; % train shape % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/vehicles/.default=4, } + \tikzset{ + pics/train_moving_forward/.default=4, pics/train_moving_forward/.style args={#1}{ code={ \fill[fill=background] (-0.3,0.3) -- ( 0.1,0.3) -- (0.4,0) -- ( 0.1,-0.3) -- (-0.3,-0.3) -- cycle; @@ -27,9 +31,10 @@ % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/train_moving_forward/.default=4, } + \tikzset{ + pics/train_moving_backward/.default=4, pics/train_moving_backward/.style args={#1}{ code={ \fill[fill=background] ( 0.3 ,0.3) -- (-0.1,0.3) -- (-0.4,0) -- (-0.1,-0.3) -- ( 0.3 ,-0.3) -- cycle; @@ -40,9 +45,10 @@ % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/train_moving_backward/.default=4, } + \tikzset{ + pics/train_moving_slow_forward/.default=4, pics/train_moving_slow_forward/.style args={#1}{ code={ \fill[fill=background] (-0.3 ,0.3) -- (-0.1,0.3) -- (0.2,0) -- (-0.1,-0.3) -- (-0.3 ,-0.3) -- cycle; @@ -52,9 +58,10 @@ % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/train_moving_slow_forward/.default=4, } + \tikzset{ + pics/train_moving_slow_backward/.default=4, pics/train_moving_slow_backward/.style args={#1}{ code={ \fill[fill=background] ( 0.3 ,0.3) -- ( 0.1,0.3) -- (-0.2,0) -- ( 0.1,-0.3) -- ( 0.3 ,-0.3) -- cycle; @@ -64,9 +71,10 @@ % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/train_moving_slow_backward/.default=4, } + \tikzset{ + pics/train_moving_fast_forward/.default=4, pics/train_moving_fast_forward/.style args={#1}{ code={ \fill[fill=background] (-0.3 ,0.3) -- ( 0.3,0.3) -- (0.6,0) -- ( 0.3,-0.3) -- (-0.3 ,-0.3) -- cycle; @@ -78,9 +86,10 @@ % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/train_moving_fast_forward/.default=4, } + \tikzset{ + pics/train_moving_fast_backward/.default=4, pics/train_moving_fast_backward/.style args={#1}{ code={ \fill[fill=background] ( 0.3 ,0.3) -- (-0.3,0.3) -- (-0.6,0) -- (-0.3,-0.3) -- ( 0.3 ,-0.3) -- cycle; @@ -92,63 +101,70 @@ % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/train_moving_fast_backward/.default=4, } + \tikzset{ + pics/train_direction_forward/.default=4, pics/train_direction_forward/.style args={#1}{ code={ \path[draw=foreground, line width=1pt, fill=background] (0,0) -- +(-0.3,0.3) -- +(-#1,0.3) -- +(-#1,-0.3) -- +(-0.3,-0.3) -- cycle; % train shape % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/train_direction_forward/.default=4, } + \tikzset{ + pics/train_direction_backward/.default=4, pics/train_direction_backward/.style args={#1}{ code={ \path[draw=foreground, line width=1pt, fill=background] (0,0) -- +(0.3,-0.3) -- +(#1,-0.3) -- +(#1,0.3) -- +(0.3,0.3) -- cycle; % train shape % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/train_direction_backward/.default=4, } + \tikzset{ + pics/ghost_train_direction_forward/.default=4, pics/ghost_train_direction_forward/.style args={#1}{ code={ \path[draw=foreground, line width=1pt, dashed] (0,0) -- +(-0.3,0.3) -- +(-#1,0.3) -- +(-#1,-0.3) -- +(-0.3,-0.3) -- cycle; % train shape % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/ghost_train_direction_forward/.default=4, } + \tikzset{ + pics/ghost_train_direction_backward/.default=4, pics/ghost_train_direction_backward/.style args={#1}{ code={ \path[draw=foreground, line width=1pt, dashed] (0,0) -- +(0.3,-0.3) -- +(#1,-0.3) -- +(#1,0.3) -- +(0.3,0.3) -- cycle; % train shape % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/ghost_train_direction_backward/.default=4, } + \tikzset{ + pics/train_shunt_mode_forward/.default=4, pics/train_shunt_mode_forward/.style args={#1}{ code={ \path[draw=foreground, double, line width=0.3pt, fill=background] (0,0) -- +(-0.3,0.3) -- +(-#1,0.3) -- +(-#1,-0.3) -- +(-0.3,-0.3) -- cycle; % train shape % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/train_shunt_mode_forward/.default=4, } + \tikzset{ + pics/train_shunt_mode_backward/.default=4, pics/train_shunt_mode_backward/.style args={#1}{ code={ \path[draw=foreground, double, line width=0.3pt, fill=background] (0,0) -- +(0.3,-0.3) -- +(#1,-0.3) -- +(#1,0.3) -- +(0.3,0.3) -- cycle; % train shape % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/train_shunt_mode_backward/.default=4, } + \tikzset{ + pics/train_shunting_forward/.default=4, pics/train_shunting_forward/.style args={#1}{ code={ \fill[fill=background] (-0.3 ,0.3) -- (-0.1,0.3) -- (0.2,0) -- (-0.1,-0.3) -- (-0.3 ,-0.3) -- cycle; @@ -158,9 +174,10 @@ % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/train_shunting_forward/.default=4, } + \tikzset{ + pics/train_shunting_backward/.default=4, pics/train_shunting_backward/.style args={#1}{ code={ \fill[fill=background] ( 0.3 ,0.3) -- ( 0.1,0.3) -- (-0.2,0) -- ( 0.1,-0.3) -- ( 0.3 ,-0.3) -- cycle; @@ -170,25 +187,30 @@ % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/train_shunting_backward/.default=4, } + \tikzset{ train_automatic_forward/.pic={ \path[draw=foreground, fill] (-0.15,0) -- ++(-0.15,0.15) -- ++(0,-0.3) -- cycle; % triangle }; } + \tikzset{ train_automatic_backward/.pic={ \path[draw=foreground, fill] (0.15,0) -- ++(0.15,0.15) -- ++(0,-0.3) -- cycle; % triangle }; } + \tikzset{ train_human_forward/.pic={ \path[draw=foreground, fill] (-0.4,0) circle (0.15); % dot }; } + \tikzset{ train_human_backward/.pic={ \path[draw=foreground, fill] (0.4,0) circle (0.15); % dot }; -} \ No newline at end of file +} + +\endinput diff --git a/symbology.pdf b/symbology.pdf new file mode 100644 index 0000000..bb9575a Binary files /dev/null and b/symbology.pdf differ diff --git a/symbology.tex b/symbology.tex new file mode 100644 index 0000000..c340c30 --- /dev/null +++ b/symbology.tex @@ -0,0 +1,148 @@ +%!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]{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{Symbology}\author{}\date{} + +\begin{document} + \maketitle + \centering + \begin{longtable}{|r|l|c|} + \hline + No. & Name & Symbol \\ + \endhead + \hline + \No & main track & \symbol{main_track.tikz} \\ + \hline + \No & track distance (in \si{\metre}) & \symbol{track_distance.tikz} \\ + \hline + \No & side track & \symbol{side_track.tikz} \\ + \hline + \No & track number & \symbol{track_number.tikz} \\ + \hline + \No & turnout & \symbol{turnout_left_forward.tikz} \\ + \hline + \No & \parbox[c]{5cm}{turnout\\with fouling point indicator} + & \symbol{turnout_with_fouling_left_forward.tikz} \\ + \hline + \No & double-slip turnout & \symbol{double-slip_turnout_left.tikz} \\ + \hline + \No & diamond crossing & \symbol{diamond_crossing_left.tikz} \\ + \hline + \No & \parbox[c]{5cm}{turnout\\with points in right position} + & \symbol{turnout_left_forward_right_position.tikz} \\ + \hline + \No & \parbox[c]{5cm}{turnout\\with points in left position} + & \symbol{turnout_left_forward_left_position.tikz} \\ + \hline + \No & \parbox[c]{5cm}{turnout\\with moving points} + & \symbol{turnout_left_forward_moving_points.tikz} \\ + \hline + \No & derailer & \symbol{derailer_left_forward.tikz} \\ + \hline + \No & bufferstop & \symbol{bufferstop_forward.tikz} \\ + \hline + \No & vehicles & \symbol{vehicles.tikz} \\ + \hline + \No & train & \symbol{train_direction_forward.tikz} \\ + \hline + \No & ghost train & \symbol{ghost_train_direction_forward.tikz} \\ + \hline + \No & train moving & \symbol{train_moving_forward.tikz} \\ + \hline + \No & train moving slow & \symbol{train_moving_slow_forward.tikz} \\ + \hline + \No & train moving fast & \symbol{train_moving_fast_forward.tikz} \\ + \hline + \No & train in shunting mode & \symbol{train_shunt_mode_forward.tikz} \\ + \hline + \No & train shunting & \symbol{train_shunting_forward.tikz} \\ + \hline + \No & train operated automatic & \symbol{train_drive_automatic.tikz} \\ + \hline + \No & train operated by human & \symbol{train_drive_human.tikz} \\ + \hline + \No & view point & \symbol{view_point_forward.tikz} \\ + \hline + \No & distant signal & \symbol{distant_signal_forward.tikz} \\ + \hline + \No & \parbox[c]{4cm}{distant signal\\with speed indicator} + & \symbol{distant_speed_signal_forward.tikz} \\ + \hline + \No & speed signal & \symbol{speed_signal_forward.tikz} \\ + \hline + \No & block signal & \symbol{block_signal_forward.tikz} \\ + \hline + \No & route signal & \symbol{route_signal_forward.tikz} \\ + \hline + \No & \parbox[c]{4cm}{combined signal\\(distant and block signal)} + & \symbol{combined_signal_forward.tikz} \\ + \hline + \No & shunt signal & \symbol{shunt_signal_forward.tikz} \\ + \hline + \No & shunt signal locked & \symbol{shunt_signal_forward_locked.tikz} \\ + \hline + \No & shunt limit & \symbol{shunt_limit_forward.tikz} \\ + \hline + \No & transmitter & \symbol{transmitter_below.tikz} \\ + \hline + \No & transmitter effective forward & \symbol{transmitter_below_forward.tikz} \\ + \hline + \No & transmitter bidirectional & \symbol{transmitter_below_bidirectional.tikz} \\ + \hline + \No & block end marker & \symbol{block_end_marker_forward.tikz} \\ + \hline + \No & block clearing point & \symbol{block_clearing_point_forward.tikz} \\ + \hline + \No & route clearing point & \symbol{route_clearing_point_forward.tikz} \\ + \hline + \No & clearing point & \symbol{clearing_point.tikz} \\ + \hline + \No & train berth sign & \symbol{train_berth_sign_forward.tikz} \\ + \hline + \No & train berth shape & \symbol{train_berth_shape.tikz} \\ + \hline + \No & platform & \symbol{platform_left.tikz} \\ + \hline + \No & level crossing & \symbol{level_crossing_single.tikz} \\ + \hline + \No & bridge & \symbol{bridge.tikz} \\ + \hline + \No & hump & \symbol{hump.tikz} \\ + \hline + \No & interlocking & \symbol{interlocking.tikz} \\ + \hline + \end{longtable} +\end{document} \ No newline at end of file