diff --git a/.gitignore b/.gitignore index 59ed3d6..3d6b98a 100644 --- a/.gitignore +++ b/.gitignore @@ -242,6 +242,7 @@ TSWLatexianTemp* # LaTeXing & Sublime Text Output +.tex ## -- macOS ignore # General diff --git a/LICENSE b/LICENSE index ae830cb..80ed141 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ ISC License -Copyright (c) 2018, Martin Scheidt \ +Copyright (c) 2019, Martin Scheidt \ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. diff --git a/README.md b/README.md index d0a577d..1ea09aa 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,16 @@ tikz-trackschematic ====== +Version 0.3 +------ + + * moved snippet folder to root folder + * added shunting movements + * added points to turnouts + * added moving trains + * defined and used color foreground and background + + Version 0.2 ------ diff --git a/overview.pdf b/overview.pdf index 69eea4e..482ccbc 100644 Binary files a/overview.pdf and b/overview.pdf differ diff --git a/overview.tex b/overview.tex index 99de305..60aeb9f 100644 --- a/overview.tex +++ b/overview.tex @@ -1,15 +1,14 @@ %!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[a4paper,landscape]{article} \usepackage[margin=0pt]{geometry} \pagestyle{empty} -\usepackage{tabu,longtable} +\usepackage{longtable,siunitx} \usepackage{tikz,adjustbox} -\usepackage{siunitx} \usepackage{listings} \lstset{ language=TeX, @@ -21,19 +20,13 @@ \def\rootTrackschematic{../tikz-trackschematic} \def\srcTrackschematic{\rootTrackschematic/src} - \renewcommand{\symbol}[1]{ \adjustbox{valign=c}{\begin{tikzpicture}[scale=1.0,transform shape] - \input{examples/snippets/#1} + \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/examples/snippets/#1}} -\newcommand{\colorsquare}[1]{ - \begin{tikzpicture}[anchor=base,baseline=-3] - \filldraw [#1] (-0.3,-0.3) rectangle (0.3,0.3); - \end{tikzpicture} -} +\newcommand{\code}[1]{\lstinputlisting[firstline=7]{\rootTrackschematic/snippets/#1}} \newcounter{symbolNo} \def\No{\stepcounter{symbolNo}\arabic{symbolNo}} @@ -44,9 +37,9 @@ \begin{document} \centering - \begin{longtabu}{|r|l|c|l|c|} + \begin{longtable}{|r|l|c|l|c|} \hline - No. & Name & Symbol & Code & File \\ + No. & Name & Symbol & Code & File \\ \endhead \hline \No & main track & \symbol{main_track.tikz} & \code{main_track.tikz} & \texttt{topology.tikz} \\ @@ -57,8 +50,7 @@ \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} \\ + \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 @@ -87,6 +79,42 @@ \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 @@ -100,9 +128,9 @@ \hline \No & bufferstop (backward) & \symbol{bufferstop_backward.tikz} & \code{bufferstop_backward.tikz} & \texttt{topology.tikz} \\ \hline - \No & train (parked) & \symbol{train.tikz} & \code{train.tikz} & \texttt{vehicles.tikz} \\ + \No & vehicles (parked) & \symbol{vehicles.tikz} & \code{vehicles.tikz} & \texttt{vehicles.tikz} \\ \hline - \No & short train (parked) & \symbol{short_train.tikz} & \code{short_train.tikz} & \texttt{vehicles.tikz} \\ + \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 @@ -116,10 +144,28 @@ \hline \No & train moving (backward) & \symbol{train_moving_backward.tikz} & \code{train_moving_backward.tikz} & \texttt{vehicles.tikz} \\ \hline - \No & \parbox[c]{4cm}{train drives automatic\\(direction forward)} + \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 drives by human\\(direction forward)} + \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} \\ @@ -164,6 +210,10 @@ \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 @@ -219,5 +269,5 @@ \hline \No & interlocking & \symbol{interlocking.tikz} & \code{interlocking.tikz} & \texttt{constructions.tikz} \\ \hline - \end{longtabu} + \end{longtable} \end{document} \ No newline at end of file diff --git a/examples/snippets/block_clearing_point_backward.tikz b/snippets/block_clearing_point_backward.tikz similarity index 80% rename from examples/snippets/block_clearing_point_backward.tikz rename to snippets/block_clearing_point_backward.tikz index 397345a..2a7d39a 100644 --- a/examples/snippets/block_clearing_point_backward.tikz +++ b/snippets/block_clearing_point_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/block_clearing_point_forward.tikz b/snippets/block_clearing_point_forward.tikz similarity index 80% rename from examples/snippets/block_clearing_point_forward.tikz rename to snippets/block_clearing_point_forward.tikz index d8c25da..afb507a 100644 --- a/examples/snippets/block_clearing_point_forward.tikz +++ b/snippets/block_clearing_point_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/block_end_marker_backward.tikz b/snippets/block_end_marker_backward.tikz similarity index 81% rename from examples/snippets/block_end_marker_backward.tikz rename to snippets/block_end_marker_backward.tikz index 41a7b67..f074a31 100644 --- a/examples/snippets/block_end_marker_backward.tikz +++ b/snippets/block_end_marker_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/block_end_marker_forward.tikz b/snippets/block_end_marker_forward.tikz similarity index 81% rename from examples/snippets/block_end_marker_forward.tikz rename to snippets/block_end_marker_forward.tikz index e9bb754..8baa09d 100644 --- a/examples/snippets/block_end_marker_forward.tikz +++ b/snippets/block_end_marker_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/block_signal_backward.tikz b/snippets/block_signal_backward.tikz similarity index 82% rename from examples/snippets/block_signal_backward.tikz rename to snippets/block_signal_backward.tikz index 31b59c8..f369b4d 100644 --- a/examples/snippets/block_signal_backward.tikz +++ b/snippets/block_signal_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/block_signal_forward.tikz b/snippets/block_signal_forward.tikz similarity index 82% rename from examples/snippets/block_signal_forward.tikz rename to snippets/block_signal_forward.tikz index 2310213..a193700 100644 --- a/examples/snippets/block_signal_forward.tikz +++ b/snippets/block_signal_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/bridge.tikz b/snippets/bridge.tikz similarity index 84% rename from examples/snippets/bridge.tikz rename to snippets/bridge.tikz index 7c5f1b9..a871762 100644 --- a/examples/snippets/bridge.tikz +++ b/snippets/bridge.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/bridge_track_beneath.tikz b/snippets/bridge_track_beneath.tikz similarity index 87% rename from examples/snippets/bridge_track_beneath.tikz rename to snippets/bridge_track_beneath.tikz index 84cb951..5b898c8 100644 --- a/examples/snippets/bridge_track_beneath.tikz +++ b/snippets/bridge_track_beneath.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/bufferstop_backward.tikz b/snippets/bufferstop_backward.tikz similarity index 82% rename from examples/snippets/bufferstop_backward.tikz rename to snippets/bufferstop_backward.tikz index 0b6f66c..831c51f 100644 --- a/examples/snippets/bufferstop_backward.tikz +++ b/snippets/bufferstop_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/bufferstop_forward.tikz b/snippets/bufferstop_forward.tikz similarity index 82% rename from examples/snippets/bufferstop_forward.tikz rename to snippets/bufferstop_forward.tikz index f42eb43..542a915 100644 --- a/examples/snippets/bufferstop_forward.tikz +++ b/snippets/bufferstop_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/clearing_point.tikz b/snippets/clearing_point.tikz similarity index 83% rename from examples/snippets/clearing_point.tikz rename to snippets/clearing_point.tikz index b1f83ec..b82f02c 100644 --- a/examples/snippets/clearing_point.tikz +++ b/snippets/clearing_point.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/combined_signal_forward.tikz b/snippets/combined_signal_forward.tikz similarity index 83% rename from examples/snippets/combined_signal_forward.tikz rename to snippets/combined_signal_forward.tikz index 2b2b240..0c7fca5 100644 --- a/examples/snippets/combined_signal_forward.tikz +++ b/snippets/combined_signal_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/derailer_left_backward.tikz b/snippets/derailer_left_backward.tikz similarity index 82% rename from examples/snippets/derailer_left_backward.tikz rename to snippets/derailer_left_backward.tikz index ddff6df..21b2602 100644 --- a/examples/snippets/derailer_left_backward.tikz +++ b/snippets/derailer_left_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/derailer_left_forward.tikz b/snippets/derailer_left_forward.tikz similarity index 82% rename from examples/snippets/derailer_left_forward.tikz rename to snippets/derailer_left_forward.tikz index a677e27..309a916 100644 --- a/examples/snippets/derailer_left_forward.tikz +++ b/snippets/derailer_left_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/derailer_right_backward.tikz b/snippets/derailer_right_backward.tikz similarity index 81% rename from examples/snippets/derailer_right_backward.tikz rename to snippets/derailer_right_backward.tikz index 2013cb6..899dcb8 100644 --- a/examples/snippets/derailer_right_backward.tikz +++ b/snippets/derailer_right_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/derailer_right_forward.tikz b/snippets/derailer_right_forward.tikz similarity index 82% rename from examples/snippets/derailer_right_forward.tikz rename to snippets/derailer_right_forward.tikz index 4f48540..0075ff9 100644 --- a/examples/snippets/derailer_right_forward.tikz +++ b/snippets/derailer_right_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/diamond_crossing_left.tikz b/snippets/diamond_crossing_left.tikz similarity index 84% rename from examples/snippets/diamond_crossing_left.tikz rename to snippets/diamond_crossing_left.tikz index 4655973..7a63e31 100644 --- a/examples/snippets/diamond_crossing_left.tikz +++ b/snippets/diamond_crossing_left.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/diamond_crossing_right.tikz b/snippets/diamond_crossing_right.tikz similarity index 84% rename from examples/snippets/diamond_crossing_right.tikz rename to snippets/diamond_crossing_right.tikz index 4bee29c..e20f988 100644 --- a/examples/snippets/diamond_crossing_right.tikz +++ b/snippets/diamond_crossing_right.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/distant_signal_backward.tikz b/snippets/distant_signal_backward.tikz similarity index 81% rename from examples/snippets/distant_signal_backward.tikz rename to snippets/distant_signal_backward.tikz index dff77aa..7034649 100644 --- a/examples/snippets/distant_signal_backward.tikz +++ b/snippets/distant_signal_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/distant_signal_forward.tikz b/snippets/distant_signal_forward.tikz similarity index 82% rename from examples/snippets/distant_signal_forward.tikz rename to snippets/distant_signal_forward.tikz index b329556..717ac34 100644 --- a/examples/snippets/distant_signal_forward.tikz +++ b/snippets/distant_signal_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/distant_speed_signal_backward.tikz b/snippets/distant_speed_signal_backward.tikz similarity index 82% rename from examples/snippets/distant_speed_signal_backward.tikz rename to snippets/distant_speed_signal_backward.tikz index 18527d0..9650c91 100644 --- a/examples/snippets/distant_speed_signal_backward.tikz +++ b/snippets/distant_speed_signal_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/distant_speed_signal_forward.tikz b/snippets/distant_speed_signal_forward.tikz similarity index 82% rename from examples/snippets/distant_speed_signal_forward.tikz rename to snippets/distant_speed_signal_forward.tikz index 18a4e4c..6b6dc04 100644 --- a/examples/snippets/distant_speed_signal_forward.tikz +++ b/snippets/distant_speed_signal_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/double-slip_turnout_left.tikz b/snippets/double-slip_turnout_left.tikz similarity index 87% rename from examples/snippets/double-slip_turnout_left.tikz rename to snippets/double-slip_turnout_left.tikz index 11317bd..6f21ec4 100644 --- a/examples/snippets/double-slip_turnout_left.tikz +++ b/snippets/double-slip_turnout_left.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/double-slip_turnout_right.tikz b/snippets/double-slip_turnout_right.tikz similarity index 87% rename from examples/snippets/double-slip_turnout_right.tikz rename to snippets/double-slip_turnout_right.tikz index 27d713c..9cb4b63 100644 --- a/examples/snippets/double-slip_turnout_right.tikz +++ b/snippets/double-slip_turnout_right.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/ghost_train_direction_backward.tikz b/snippets/ghost_train_direction_backward.tikz similarity index 80% rename from examples/snippets/ghost_train_direction_backward.tikz rename to snippets/ghost_train_direction_backward.tikz index b8f4c9a..3f6f397 100644 --- a/examples/snippets/ghost_train_direction_backward.tikz +++ b/snippets/ghost_train_direction_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/ghost_train_direction_forward.tikz b/snippets/ghost_train_direction_forward.tikz similarity index 80% rename from examples/snippets/ghost_train_direction_forward.tikz rename to snippets/ghost_train_direction_forward.tikz index 3ca275c..5ab7add 100644 --- a/examples/snippets/ghost_train_direction_forward.tikz +++ b/snippets/ghost_train_direction_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/hump.tikz b/snippets/hump.tikz old mode 100644 new mode 100755 similarity index 85% rename from examples/snippets/hump.tikz rename to snippets/hump.tikz index e749d78..84adf0d --- a/examples/snippets/hump.tikz +++ b/snippets/hump.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/interlocking.tikz b/snippets/interlocking.tikz old mode 100644 new mode 100755 similarity index 82% rename from examples/snippets/interlocking.tikz rename to snippets/interlocking.tikz index 10da08e..e52880e --- a/examples/snippets/interlocking.tikz +++ b/snippets/interlocking.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/level_crossing_double.tikz b/snippets/level_crossing_double.tikz similarity index 84% rename from examples/snippets/level_crossing_double.tikz rename to snippets/level_crossing_double.tikz index 86680a0..fa7dcc0 100644 --- a/examples/snippets/level_crossing_double.tikz +++ b/snippets/level_crossing_double.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/level_crossing_double_full_closure.tikz b/snippets/level_crossing_double_full_closure.tikz similarity index 87% rename from examples/snippets/level_crossing_double_full_closure.tikz rename to snippets/level_crossing_double_full_closure.tikz index 580b49a..d45e7d6 100644 --- a/examples/snippets/level_crossing_double_full_closure.tikz +++ b/snippets/level_crossing_double_full_closure.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/level_crossing_single.tikz b/snippets/level_crossing_single.tikz similarity index 82% rename from examples/snippets/level_crossing_single.tikz rename to snippets/level_crossing_single.tikz index 96e7090..952e5c5 100644 --- a/examples/snippets/level_crossing_single.tikz +++ b/snippets/level_crossing_single.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/main_line.tikz b/snippets/main_line.tikz similarity index 81% rename from examples/snippets/main_line.tikz rename to snippets/main_line.tikz index 2f49a34..6a9d738 100644 --- a/examples/snippets/main_line.tikz +++ b/snippets/main_line.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/main_track.tikz b/snippets/main_track.tikz similarity index 80% rename from examples/snippets/main_track.tikz rename to snippets/main_track.tikz index 8714069..19cf9a0 100644 --- a/examples/snippets/main_track.tikz +++ b/snippets/main_track.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/platform_left.tikz b/snippets/platform_left.tikz similarity index 84% rename from examples/snippets/platform_left.tikz rename to snippets/platform_left.tikz index 1946c36..78bbdf7 100644 --- a/examples/snippets/platform_left.tikz +++ b/snippets/platform_left.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/platform_middle.tikz b/snippets/platform_middle.tikz similarity index 85% rename from examples/snippets/platform_middle.tikz rename to snippets/platform_middle.tikz index 3a617ff..192e752 100644 --- a/examples/snippets/platform_middle.tikz +++ b/snippets/platform_middle.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/platform_right.tikz b/snippets/platform_right.tikz similarity index 84% rename from examples/snippets/platform_right.tikz rename to snippets/platform_right.tikz index 2fe0e53..08c1041 100644 --- a/examples/snippets/platform_right.tikz +++ b/snippets/platform_right.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/route_clearing_point_backward.tikz b/snippets/route_clearing_point_backward.tikz similarity index 80% rename from examples/snippets/route_clearing_point_backward.tikz rename to snippets/route_clearing_point_backward.tikz index 49dc122..06b0df7 100644 --- a/examples/snippets/route_clearing_point_backward.tikz +++ b/snippets/route_clearing_point_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/route_clearing_point_forward.tikz b/snippets/route_clearing_point_forward.tikz similarity index 80% rename from examples/snippets/route_clearing_point_forward.tikz rename to snippets/route_clearing_point_forward.tikz index 356b770..29804af 100644 --- a/examples/snippets/route_clearing_point_forward.tikz +++ b/snippets/route_clearing_point_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/route_signal_backward.tikz b/snippets/route_signal_backward.tikz similarity index 82% rename from examples/snippets/route_signal_backward.tikz rename to snippets/route_signal_backward.tikz index 9893645..1a96ab3 100644 --- a/examples/snippets/route_signal_backward.tikz +++ b/snippets/route_signal_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/route_signal_forward.tikz b/snippets/route_signal_forward.tikz similarity index 82% rename from examples/snippets/route_signal_forward.tikz rename to snippets/route_signal_forward.tikz index 50f2437..0c6d2e4 100644 --- a/examples/snippets/route_signal_forward.tikz +++ b/snippets/route_signal_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/shunt_limit_backward.tikz b/snippets/shunt_limit_backward.tikz similarity index 82% rename from examples/snippets/shunt_limit_backward.tikz rename to snippets/shunt_limit_backward.tikz index 8a77b7c..5a3d375 100644 --- a/examples/snippets/shunt_limit_backward.tikz +++ b/snippets/shunt_limit_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/shunt_limit_forward.tikz b/snippets/shunt_limit_forward.tikz similarity index 82% rename from examples/snippets/shunt_limit_forward.tikz rename to snippets/shunt_limit_forward.tikz index 3a838b5..9172289 100644 --- a/examples/snippets/shunt_limit_forward.tikz +++ b/snippets/shunt_limit_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/shunt_signal_backward.tikz b/snippets/shunt_signal_backward.tikz similarity index 82% rename from examples/snippets/shunt_signal_backward.tikz rename to snippets/shunt_signal_backward.tikz index f74c690..75cfa58 100644 --- a/examples/snippets/shunt_signal_backward.tikz +++ b/snippets/shunt_signal_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/short_train.tikz b/snippets/shunt_signal_backward_locked.tikz similarity index 77% rename from examples/snippets/short_train.tikz rename to snippets/shunt_signal_backward_locked.tikz index cd29b37..a03fc35 100644 --- a/examples/snippets/short_train.tikz +++ b/snippets/shunt_signal_backward_locked.tikz @@ -1,9 +1,8 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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.5,0) {train=1}; -% change the 1 to desired length \ No newline at end of file +\pic at (0,0) {shunt_signal_backward_locked}; \ No newline at end of file diff --git a/examples/snippets/shunt_signal_forward.tikz b/snippets/shunt_signal_forward.tikz similarity index 82% rename from examples/snippets/shunt_signal_forward.tikz rename to snippets/shunt_signal_forward.tikz index 3924771..3bd749f 100644 --- a/examples/snippets/shunt_signal_forward.tikz +++ b/snippets/shunt_signal_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/train.tikz b/snippets/shunt_signal_forward_locked.tikz similarity index 77% rename from examples/snippets/train.tikz rename to snippets/shunt_signal_forward_locked.tikz index 85587f6..4ca94de 100644 --- a/examples/snippets/train.tikz +++ b/snippets/shunt_signal_forward_locked.tikz @@ -1,9 +1,8 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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}; -\node[font=\sffamily] at (0,0) {label}; \ No newline at end of file +\pic at (0,0) {shunt_signal_forward_locked}; \ No newline at end of file diff --git a/examples/snippets/side_track.tikz b/snippets/side_track.tikz similarity index 80% rename from examples/snippets/side_track.tikz rename to snippets/side_track.tikz index 5bc152e..582e7b9 100644 --- a/examples/snippets/side_track.tikz +++ b/snippets/side_track.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/speed_signal_backward.tikz b/snippets/speed_signal_backward.tikz similarity index 82% rename from examples/snippets/speed_signal_backward.tikz rename to snippets/speed_signal_backward.tikz index eeb6f7d..b890063 100644 --- a/examples/snippets/speed_signal_backward.tikz +++ b/snippets/speed_signal_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/speed_signal_forward.tikz b/snippets/speed_signal_forward.tikz similarity index 82% rename from examples/snippets/speed_signal_forward.tikz rename to snippets/speed_signal_forward.tikz index 49086e9..0c4df15 100644 --- a/examples/snippets/speed_signal_forward.tikz +++ b/snippets/speed_signal_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/track_distance.tikz b/snippets/track_distance.tikz old mode 100644 new mode 100755 similarity index 83% rename from examples/snippets/track_distance.tikz rename to snippets/track_distance.tikz index 853ac04..1f0ae48 --- a/examples/snippets/track_distance.tikz +++ b/snippets/track_distance.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/track_number.tikz b/snippets/track_number.tikz old mode 100644 new mode 100755 similarity index 82% rename from examples/snippets/track_number.tikz rename to snippets/track_number.tikz index c623369..4f1b8a9 --- a/examples/snippets/track_number.tikz +++ b/snippets/track_number.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/train_berth.tikz b/snippets/train_berth.tikz similarity index 84% rename from examples/snippets/train_berth.tikz rename to snippets/train_berth.tikz index 6d480cd..3cf1cdc 100644 --- a/examples/snippets/train_berth.tikz +++ b/snippets/train_berth.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/train_berth_shape.tikz b/snippets/train_berth_shape.tikz similarity index 82% rename from examples/snippets/train_berth_shape.tikz rename to snippets/train_berth_shape.tikz index 8531fe7..69bea76 100644 --- a/examples/snippets/train_berth_shape.tikz +++ b/snippets/train_berth_shape.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/train_berth_shape_bidirectional.tikz b/snippets/train_berth_shape_bidirectional.tikz similarity index 84% rename from examples/snippets/train_berth_shape_bidirectional.tikz rename to snippets/train_berth_shape_bidirectional.tikz index 3f2b392..d62a977 100644 --- a/examples/snippets/train_berth_shape_bidirectional.tikz +++ b/snippets/train_berth_shape_bidirectional.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/train_berth_sign_backward.tikz b/snippets/train_berth_sign_backward.tikz similarity index 81% rename from examples/snippets/train_berth_sign_backward.tikz rename to snippets/train_berth_sign_backward.tikz index 3b18d12..ad7592c 100644 --- a/examples/snippets/train_berth_sign_backward.tikz +++ b/snippets/train_berth_sign_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/train_berth_sign_forward.tikz b/snippets/train_berth_sign_forward.tikz similarity index 81% rename from examples/snippets/train_berth_sign_forward.tikz rename to snippets/train_berth_sign_forward.tikz index f266e14..7968688 100644 --- a/examples/snippets/train_berth_sign_forward.tikz +++ b/snippets/train_berth_sign_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/train_direction_backward.tikz b/snippets/train_direction_backward.tikz similarity index 81% rename from examples/snippets/train_direction_backward.tikz rename to snippets/train_direction_backward.tikz index 8d03e03..f1af0b0 100644 --- a/examples/snippets/train_direction_backward.tikz +++ b/snippets/train_direction_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/train_direction_forward.tikz b/snippets/train_direction_forward.tikz similarity index 81% rename from examples/snippets/train_direction_forward.tikz rename to snippets/train_direction_forward.tikz index ccb6feb..976e225 100644 --- a/examples/snippets/train_direction_forward.tikz +++ b/snippets/train_direction_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/train_drive_automatic.tikz b/snippets/train_drive_automatic.tikz similarity index 81% rename from examples/snippets/train_drive_automatic.tikz rename to snippets/train_drive_automatic.tikz index 5b18fba..5c62e4e 100644 --- a/examples/snippets/train_drive_automatic.tikz +++ b/snippets/train_drive_automatic.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/train_drive_human.tikz b/snippets/train_drive_human.tikz similarity index 83% rename from examples/snippets/train_drive_human.tikz rename to snippets/train_drive_human.tikz index e33b884..7bb9de1 100644 --- a/examples/snippets/train_drive_human.tikz +++ b/snippets/train_drive_human.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/train_moving_backward.tikz b/snippets/train_moving_backward.tikz similarity index 82% rename from examples/snippets/train_moving_backward.tikz rename to snippets/train_moving_backward.tikz index 197b6b5..484d182 100644 --- a/examples/snippets/train_moving_backward.tikz +++ b/snippets/train_moving_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/snippets/train_moving_fast_backward.tikz b/snippets/train_moving_fast_backward.tikz new file mode 100644 index 0000000..c0b43a9 --- /dev/null +++ b/snippets/train_moving_fast_backward.tikz @@ -0,0 +1,8 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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_moving_fast_backward}; \ No newline at end of file diff --git a/snippets/train_moving_fast_forward.tikz b/snippets/train_moving_fast_forward.tikz new file mode 100644 index 0000000..c8a8af0 --- /dev/null +++ b/snippets/train_moving_fast_forward.tikz @@ -0,0 +1,8 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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_moving_fast_forward}; \ No newline at end of file diff --git a/examples/snippets/train_moving_forward.tikz b/snippets/train_moving_forward.tikz similarity index 82% rename from examples/snippets/train_moving_forward.tikz rename to snippets/train_moving_forward.tikz index f8f57c4..b34144e 100644 --- a/examples/snippets/train_moving_forward.tikz +++ b/snippets/train_moving_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/snippets/train_moving_slow_backward.tikz b/snippets/train_moving_slow_backward.tikz new file mode 100644 index 0000000..b92d2b1 --- /dev/null +++ b/snippets/train_moving_slow_backward.tikz @@ -0,0 +1,8 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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_moving_slow_backward}; \ No newline at end of file diff --git a/snippets/train_moving_slow_forward.tikz b/snippets/train_moving_slow_forward.tikz new file mode 100644 index 0000000..0116ea9 --- /dev/null +++ b/snippets/train_moving_slow_forward.tikz @@ -0,0 +1,8 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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_moving_slow_forward}; \ No newline at end of file diff --git a/snippets/train_shunt_mode_backward.tikz b/snippets/train_shunt_mode_backward.tikz new file mode 100644 index 0000000..7d77936 --- /dev/null +++ b/snippets/train_shunt_mode_backward.tikz @@ -0,0 +1,8 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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_shunt_mode_backward}; \ No newline at end of file diff --git a/snippets/train_shunt_mode_forward.tikz b/snippets/train_shunt_mode_forward.tikz new file mode 100644 index 0000000..70a9695 --- /dev/null +++ b/snippets/train_shunt_mode_forward.tikz @@ -0,0 +1,8 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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_shunt_mode_forward}; \ No newline at end of file diff --git a/snippets/train_shunting_backward.tikz b/snippets/train_shunting_backward.tikz new file mode 100644 index 0000000..35f2318 --- /dev/null +++ b/snippets/train_shunting_backward.tikz @@ -0,0 +1,8 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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_shunting_backward}; \ No newline at end of file diff --git a/snippets/train_shunting_forward.tikz b/snippets/train_shunting_forward.tikz new file mode 100644 index 0000000..bc3cb8b --- /dev/null +++ b/snippets/train_shunting_forward.tikz @@ -0,0 +1,8 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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_shunting_forward}; \ No newline at end of file diff --git a/examples/snippets/transmitter.tikz b/snippets/transmitter.tikz similarity index 84% rename from examples/snippets/transmitter.tikz rename to snippets/transmitter.tikz index f4831c1..2cfe287 100644 --- a/examples/snippets/transmitter.tikz +++ b/snippets/transmitter.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/transmitter_backward.tikz b/snippets/transmitter_backward.tikz similarity index 82% rename from examples/snippets/transmitter_backward.tikz rename to snippets/transmitter_backward.tikz index 696703d..d247680 100644 --- a/examples/snippets/transmitter_backward.tikz +++ b/snippets/transmitter_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/transmitter_below_with_signal.tikz b/snippets/transmitter_below_with_signal.tikz similarity index 84% rename from examples/snippets/transmitter_below_with_signal.tikz rename to snippets/transmitter_below_with_signal.tikz index 9847bcf..6da406d 100644 --- a/examples/snippets/transmitter_below_with_signal.tikz +++ b/snippets/transmitter_below_with_signal.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/transmitter_bidirectional.tikz b/snippets/transmitter_bidirectional.tikz similarity index 82% rename from examples/snippets/transmitter_bidirectional.tikz rename to snippets/transmitter_bidirectional.tikz index 260554c..88bb10d 100644 --- a/examples/snippets/transmitter_bidirectional.tikz +++ b/snippets/transmitter_bidirectional.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/transmitter_forward.tikz b/snippets/transmitter_forward.tikz similarity index 83% rename from examples/snippets/transmitter_forward.tikz rename to snippets/transmitter_forward.tikz index 196b182..c557c3d 100644 --- a/examples/snippets/transmitter_forward.tikz +++ b/snippets/transmitter_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/turnout_left_backward.tikz b/snippets/turnout_left_backward.tikz similarity index 83% rename from examples/snippets/turnout_left_backward.tikz rename to snippets/turnout_left_backward.tikz index 3a9253a..ac559d5 100644 --- a/examples/snippets/turnout_left_backward.tikz +++ b/snippets/turnout_left_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/snippets/turnout_left_backward_left_position.tikz b/snippets/turnout_left_backward_left_position.tikz new file mode 100644 index 0000000..ccf4810 --- /dev/null +++ b/snippets/turnout_left_backward_left_position.tikz @@ -0,0 +1,10 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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); +\draw[MainTrack] ( 0,0) -- ++(-1,-1); +\pic at (0,0) {turnout_left_backward}; +\pic at (0,0) {turnout_left_backward_points_left}; \ No newline at end of file diff --git a/snippets/turnout_left_backward_moving_points.tikz b/snippets/turnout_left_backward_moving_points.tikz new file mode 100644 index 0000000..f6ab4f7 --- /dev/null +++ b/snippets/turnout_left_backward_moving_points.tikz @@ -0,0 +1,10 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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); +\draw[MainTrack] ( 0,0) -- ++(-1,-1); +\pic at (0,0) {turnout_left_backward}; +\pic at (0,0) {turnout_left_backward_points_moving}; \ No newline at end of file diff --git a/snippets/turnout_left_backward_right_position.tikz b/snippets/turnout_left_backward_right_position.tikz new file mode 100644 index 0000000..27ca36f --- /dev/null +++ b/snippets/turnout_left_backward_right_position.tikz @@ -0,0 +1,10 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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); +\draw[MainTrack] ( 0,0) -- ++(-1,-1); +\pic at (0,0) {turnout_left_backward}; +\pic at (0,0) {turnout_left_backward_points_right}; \ No newline at end of file diff --git a/examples/snippets/turnout_left_forward.tikz b/snippets/turnout_left_forward.tikz similarity index 83% rename from examples/snippets/turnout_left_forward.tikz rename to snippets/turnout_left_forward.tikz index 7cc1fcd..91786ad 100644 --- a/examples/snippets/turnout_left_forward.tikz +++ b/snippets/turnout_left_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/snippets/turnout_left_forward_left_position.tikz b/snippets/turnout_left_forward_left_position.tikz new file mode 100644 index 0000000..6e9fbc3 --- /dev/null +++ b/snippets/turnout_left_forward_left_position.tikz @@ -0,0 +1,10 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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); +\draw[MainTrack] ( 0,0) -- ++(1,1); +\pic at (0,0) {turnout_left_forward}; +\pic at (0,0) {turnout_left_forward_points_left}; \ No newline at end of file diff --git a/snippets/turnout_left_forward_moving_points.tikz b/snippets/turnout_left_forward_moving_points.tikz new file mode 100644 index 0000000..6fad9d4 --- /dev/null +++ b/snippets/turnout_left_forward_moving_points.tikz @@ -0,0 +1,10 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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); +\draw[MainTrack] ( 0,0) -- ++(1,1); +\pic at (0,0) {turnout_left_forward}; +\pic at (0,0) {turnout_left_forward_points_moving}; \ No newline at end of file diff --git a/snippets/turnout_left_forward_right_position.tikz b/snippets/turnout_left_forward_right_position.tikz new file mode 100644 index 0000000..b8988fe --- /dev/null +++ b/snippets/turnout_left_forward_right_position.tikz @@ -0,0 +1,10 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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); +\draw[MainTrack] ( 0,0) -- ++(1,1); +\pic at (0,0) {turnout_left_forward}; +\pic at (0,0) {turnout_left_forward_points_right}; \ No newline at end of file diff --git a/examples/snippets/turnout_right_backward.tikz b/snippets/turnout_right_backward.tikz similarity index 83% rename from examples/snippets/turnout_right_backward.tikz rename to snippets/turnout_right_backward.tikz index 7579b30..1890da3 100644 --- a/examples/snippets/turnout_right_backward.tikz +++ b/snippets/turnout_right_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/snippets/turnout_right_backward_left_position.tikz b/snippets/turnout_right_backward_left_position.tikz new file mode 100644 index 0000000..a495eb3 --- /dev/null +++ b/snippets/turnout_right_backward_left_position.tikz @@ -0,0 +1,10 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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); +\draw[MainTrack] ( 0,0) -- ++(-1,1); +\pic at (0,0) {turnout_right_backward}; +\pic at (0,0) {turnout_right_backward_points_left}; \ No newline at end of file diff --git a/snippets/turnout_right_backward_moving_points.tikz b/snippets/turnout_right_backward_moving_points.tikz new file mode 100644 index 0000000..7a3e53c --- /dev/null +++ b/snippets/turnout_right_backward_moving_points.tikz @@ -0,0 +1,10 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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); +\draw[MainTrack] ( 0,0) -- ++(-1,1); +\pic at (0,0) {turnout_right_backward}; +\pic at (0,0) {turnout_right_backward_points_moving}; \ No newline at end of file diff --git a/snippets/turnout_right_backward_right_position.tikz b/snippets/turnout_right_backward_right_position.tikz new file mode 100644 index 0000000..6056a84 --- /dev/null +++ b/snippets/turnout_right_backward_right_position.tikz @@ -0,0 +1,10 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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); +\draw[MainTrack] ( 0,0) -- ++(-1,1); +\pic at (0,0) {turnout_right_backward}; +\pic at (0,0) {turnout_right_backward_points_right}; \ No newline at end of file diff --git a/examples/snippets/turnout_right_forward.tikz b/snippets/turnout_right_forward.tikz similarity index 83% rename from examples/snippets/turnout_right_forward.tikz rename to snippets/turnout_right_forward.tikz index 5bdb73d..449d587 100644 --- a/examples/snippets/turnout_right_forward.tikz +++ b/snippets/turnout_right_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/snippets/turnout_right_forward_left_position.tikz b/snippets/turnout_right_forward_left_position.tikz new file mode 100644 index 0000000..9ae47b3 --- /dev/null +++ b/snippets/turnout_right_forward_left_position.tikz @@ -0,0 +1,10 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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); +\draw[MainTrack] ( 0,0) -- ++(1,-1); +\pic at (0,0) {turnout_right_forward}; +\pic at (0,0) {turnout_right_forward_points_left}; \ No newline at end of file diff --git a/snippets/turnout_right_forward_moving_points.tikz b/snippets/turnout_right_forward_moving_points.tikz new file mode 100644 index 0000000..ee35057 --- /dev/null +++ b/snippets/turnout_right_forward_moving_points.tikz @@ -0,0 +1,10 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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); +\draw[MainTrack] ( 0,0) -- ++(1,-1); +\pic at (0,0) {turnout_right_forward}; +\pic at (0,0) {turnout_right_forward_points_moving}; \ No newline at end of file diff --git a/snippets/turnout_right_forward_right_position.tikz b/snippets/turnout_right_forward_right_position.tikz new file mode 100644 index 0000000..b3ea6fe --- /dev/null +++ b/snippets/turnout_right_forward_right_position.tikz @@ -0,0 +1,10 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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); +\draw[MainTrack] ( 0,0) -- ++(1,-1); +\pic at (0,0) {turnout_right_forward}; +\pic at (0,0) {turnout_right_forward_points_right}; \ No newline at end of file diff --git a/examples/snippets/turnout_with_fouling_left_backward.tikz b/snippets/turnout_with_fouling_left_backward.tikz similarity index 84% rename from examples/snippets/turnout_with_fouling_left_backward.tikz rename to snippets/turnout_with_fouling_left_backward.tikz index 1f40e43..3836f99 100644 --- a/examples/snippets/turnout_with_fouling_left_backward.tikz +++ b/snippets/turnout_with_fouling_left_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/turnout_with_fouling_left_forward.tikz b/snippets/turnout_with_fouling_left_forward.tikz similarity index 84% rename from examples/snippets/turnout_with_fouling_left_forward.tikz rename to snippets/turnout_with_fouling_left_forward.tikz index e35da2c..cdf17ab 100644 --- a/examples/snippets/turnout_with_fouling_left_forward.tikz +++ b/snippets/turnout_with_fouling_left_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/turnout_with_fouling_right_backward.tikz b/snippets/turnout_with_fouling_right_backward.tikz similarity index 83% rename from examples/snippets/turnout_with_fouling_right_backward.tikz rename to snippets/turnout_with_fouling_right_backward.tikz index 1beeb54..408c657 100644 --- a/examples/snippets/turnout_with_fouling_right_backward.tikz +++ b/snippets/turnout_with_fouling_right_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/turnout_with_fouling_right_forward.tikz b/snippets/turnout_with_fouling_right_forward.tikz similarity index 84% rename from examples/snippets/turnout_with_fouling_right_forward.tikz rename to snippets/turnout_with_fouling_right_forward.tikz index 376e8ca..4fd177b 100644 --- a/examples/snippets/turnout_with_fouling_right_forward.tikz +++ b/snippets/turnout_with_fouling_right_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/snippets/vehicle.tikz b/snippets/vehicle.tikz new file mode 100644 index 0000000..3a79660 --- /dev/null +++ b/snippets/vehicle.tikz @@ -0,0 +1,9 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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 (-0.5,0) {vehicles=1}; +% change the 1 to desired length \ No newline at end of file diff --git a/snippets/vehicles.tikz b/snippets/vehicles.tikz new file mode 100644 index 0000000..8aa5f4b --- /dev/null +++ b/snippets/vehicles.tikz @@ -0,0 +1,9 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = ../overview.tex + +% Copyright 2018 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/examples/snippets/view_point_backward.tikz b/snippets/view_point_backward.tikz similarity index 82% rename from examples/snippets/view_point_backward.tikz rename to snippets/view_point_backward.tikz index 3a41c4a..58b3de7 100644 --- a/examples/snippets/view_point_backward.tikz +++ b/snippets/view_point_backward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/examples/snippets/view_point_forward.tikz b/snippets/view_point_forward.tikz similarity index 82% rename from examples/snippets/view_point_forward.tikz rename to snippets/view_point_forward.tikz index a7bca53..310a673 100644 --- a/examples/snippets/view_point_forward.tikz +++ b/snippets/view_point_forward.tikz @@ -1,5 +1,5 @@ %!TEX TS-program = pdflatexmk -%!TEX root = ../../overview.tex +%!TEX root = ../overview.tex % Copyright 2018 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. diff --git a/src/constructions.tikz b/src/constructions.tikz index b9d4fed..f99122d 100644 --- a/src/constructions.tikz +++ b/src/constructions.tikz @@ -7,8 +7,8 @@ \tikzset{ pics/platform_left/.style n args={1}{ code={ - \path[draw, line width=0.75pt] (0,0.5) -- ++(0,-0.3) -- ++(#1,0) -- ++(0,0.3); - \path[draw, line width=0.75pt] (0,0.3) -- ++(#1,0); + \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, @@ -16,8 +16,8 @@ \tikzset{ pics/platform_right/.style n args={1}{ code={ - \path[draw, line width=0.75pt] (0,-0.5) -- ++(0,0.3) -- ++(#1,0) -- ++(0,-0.3); - \path[draw, line width=0.75pt] (0,-0.3) -- ++(#1,0); + \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, @@ -25,39 +25,39 @@ \tikzset{ level_crossing_barrier_left/.pic={ { % road - \path[draw, line width=1pt] (-0.2, 0.8) -- ++(0,-0.6); - \path[draw, line width=1pt] ( 0.2, 0.8) -- ++(0,-0.6); + \path[draw, line width=1pt,foreground] (-0.2, 0.8) -- ++(0,-0.6); + \path[draw, line width=1pt,foreground] ( 0.2, 0.8) -- ++(0,-0.6); } { % barrier - \filldraw (-0.4,0.5) circle (0.05); - \path[draw, line width=1pt] (-0.4,0.5) -- ++(0.39,0); + \filldraw[foreground] (-0.4,0.5) circle (0.05); + \path[draw, line width=1pt,foreground] (-0.4,0.5) -- ++(0.39,0); } }; } \tikzset{ level_crossing_barrier_right/.pic={ { % road - \path[draw, line width=1pt] (-0.2,-0.8) -- ++(0, 0.6); - \path[draw, line width=1pt] ( 0.2,-0.8) -- ++(0, 0.6); + \path[draw, line width=1pt,foreground] (-0.2,-0.8) -- ++(0, 0.6); + \path[draw, line width=1pt,foreground] ( 0.2,-0.8) -- ++(0, 0.6); } { % barrier - \filldraw (0.4,-0.5) circle (0.05); - \path[draw, line width=1pt] (0.4,-0.5) -- ++(-0.39,0); + \filldraw[foreground] (0.4,-0.5) circle (0.05); + \path[draw, line width=1pt,foreground] (0.4,-0.5) -- ++(-0.39,0); } }; } \tikzset{ level_crossing/.pic={ { % road - \path[draw, line width=1pt] (-0.2,-0.8) -- ++(0, 0.6); - \path[draw, line width=1pt] ( 0.2,-0.8) -- ++(0, 0.6); + \path[draw, line width=1pt,foreground] (-0.2,-0.8) -- ++(0, 0.6); + \path[draw, line width=1pt,foreground] ( 0.2,-0.8) -- ++(0, 0.6); } }; } \tikzset{ pics/bridge_left/.style n args={1}{ code={ - \path[draw, line width=0.75pt] (-0.1,0.48) -- ++(0.08,-0.08) -- ++(#1,0) -- ++(0.08,0.08); + \path[draw, line width=0.75pt,foreground] (-0.1,0.48) -- ++(0.08,-0.08) -- ++(#1,0) -- ++(0.08,0.08); } }, pics/bridge_left/.default=3, @@ -65,7 +65,7 @@ \tikzset{ pics/bridge_right/.style n args={1}{ code={ - \path[draw, line width=0.75pt] (-0.1,-0.48) -- ++(0.08,0.08) -- ++(#1,0) -- ++(0.08,-0.08); + \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, @@ -73,30 +73,30 @@ \tikzset{ interlocking/.pic={ { - \path[draw, line width=1pt] (-0.6,-0.4 ) rectangle ++(1.2,0.8); % building - \path[draw, fill] (-0.5,-0.3 ) rectangle ++(1.0,0.2); % table - \path[draw, fill] ( 0 , 0.15) circle (0.15); % human dot + \path[draw, line width=1pt,foreground] (-0.6,-0.4 ) rectangle ++(1.2,0.8); % building + \path[draw, fill,foreground] (-0.5,-0.3 ) rectangle ++(1.0,0.2); % table + \path[draw, fill,foreground] ( 0 , 0.15) circle (0.15); % human dot } }; } \tikzset{ hump/.pic={ { % upper side - \path[draw, line width=0.75pt] (-0.3, 0.1) -- ++(0,0.05); - \path[draw, line width=0.75pt] (-0.2, 0.1) -- ++(0,0.15); - \path[draw, line width=0.75pt] (-0.1, 0.1) -- ++(0,0.25); - \path[draw, line width=0.75pt] ( 0.0, 0.1) -- ++(0,0.35); - \path[draw, line width=0.75pt] ( 0.1, 0.1) -- ++(0,0.25); - \path[draw, line width=0.75pt] ( 0.2, 0.1) -- ++(0,0.15); - \path[draw, line width=0.75pt] ( 0.3, 0.1) -- ++(0,0.05); + \path[draw, line width=0.75pt,foreground] (-0.3, 0.1) -- ++(0,0.05); + \path[draw, line width=0.75pt,foreground] (-0.2, 0.1) -- ++(0,0.15); + \path[draw, line width=0.75pt,foreground] (-0.1, 0.1) -- ++(0,0.25); + \path[draw, line width=0.75pt,foreground] ( 0.0, 0.1) -- ++(0,0.35); + \path[draw, line width=0.75pt,foreground] ( 0.1, 0.1) -- ++(0,0.25); + \path[draw, line width=0.75pt,foreground] ( 0.2, 0.1) -- ++(0,0.15); + \path[draw, line width=0.75pt,foreground] ( 0.3, 0.1) -- ++(0,0.05); % lower side - \path[draw, line width=0.75pt] (-0.3,-0.1) -- ++(0,-0.05); - \path[draw, line width=0.75pt] (-0.2,-0.1) -- ++(0,-0.15); - \path[draw, line width=0.75pt] (-0.1,-0.1) -- ++(0,-0.25); - \path[draw, line width=0.75pt] ( 0.0,-0.1) -- ++(0,-0.35); - \path[draw, line width=0.75pt] ( 0.1,-0.1) -- ++(0,-0.25); - \path[draw, line width=0.75pt] ( 0.2,-0.1) -- ++(0,-0.15); - \path[draw, line width=0.75pt] ( 0.3,-0.1) -- ++(0,-0.05); + \path[draw, line width=0.75pt,foreground] (-0.3,-0.1) -- ++(0,-0.05); + \path[draw, line width=0.75pt,foreground] (-0.2,-0.1) -- ++(0,-0.15); + \path[draw, line width=0.75pt,foreground] (-0.1,-0.1) -- ++(0,-0.25); + \path[draw, line width=0.75pt,foreground] ( 0.0,-0.1) -- ++(0,-0.35); + \path[draw, line width=0.75pt,foreground] ( 0.1,-0.1) -- ++(0,-0.25); + \path[draw, line width=0.75pt,foreground] ( 0.2,-0.1) -- ++(0,-0.15); + \path[draw, line width=0.75pt,foreground] ( 0.3,-0.1) -- ++(0,-0.05); } }; } diff --git a/src/layoutSymbols_DE.tikz b/src/layoutSymbols_DE.tikz index f1f104a..b5f0cae 100644 --- a/src/layoutSymbols_DE.tikz +++ b/src/layoutSymbols_DE.tikz @@ -1,6 +1,6 @@ %% 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. @@ -9,120 +9,272 @@ \tikzset{ distant_signal_forward/.pic={ { % signal pole - \path[draw, line width=1pt] (0,-0.3) -- ++(0,-0.2); - \path[draw, line width=1pt] (0,-0.4) -- ++(0.5,0); + \path[draw, line width=1pt,foreground] (0,-0.3) -- ++(0,-0.2); + \path[draw, line width=1pt,foreground] (0,-0.4) -- ++(0.5,0); } { % signal marker - \path[draw, fill] (0.7,-0.6) rectangle ++(0.2,0.4); - \path[draw, fill] (0.7,-0.2) arc (90:270:0.2); + \path[draw, fill,foreground] (0.7,-0.6) rectangle ++(0.2,0.4); + \path[draw, fill,foreground] (0.7,-0.2) arc (90:270:0.2); } }; } \tikzset{ distant_signal_backward/.pic={ { % signal pole - \path[draw, line width=1pt] (0,0.3) -- ++(0,0.2); - \path[draw, line width=1pt] (0,0.4) -- ++(-0.5,0); + \path[draw, line width=1pt,foreground] (0,0.3) -- ++(0,0.2); + \path[draw, line width=1pt,foreground] (0,0.4) -- ++(-0.5,0); } { % signal marker - \path[draw, fill] (-0.7,0.6) rectangle ++(-0.2,-0.4); - \path[draw, fill] (-0.7,0.2) arc (90:270:-0.2); + \path[draw, fill,foreground] (-0.7,0.6) rectangle ++(-0.2,-0.4); + \path[draw, fill,foreground] (-0.7,0.2) arc (90:270:-0.2); } }; } \tikzset{ route_signal_forward/.pic={ { % signal pole - \path[draw, line width=1pt] (0,-0.3) -- ++(0,-0.2); - \path[draw, line width=1pt] (0,-0.4) -- ++(0.7,0); + \path[draw, line width=1pt,foreground] (0,-0.3) -- ++(0,-0.2); + \path[draw, line width=1pt,foreground] (0,-0.4) -- ++(0.7,0); } { % signal marker - \path[draw, fill] (0.7,-0.6) rectangle ++(0.3,0.4); - \path[draw, fill] (1.0,-0.6) arc (90:270:-0.2); + \path[draw, fill,foreground] (0.7,-0.6) rectangle ++(0.3,0.4); + \path[draw, fill,foreground] (1.0,-0.6) arc (90:270:-0.2); } }; } \tikzset{ route_signal_backward/.pic={ { % signal pole - \path[draw, line width=1pt] (0,0.3) -- ++(0,0.2); - \path[draw, line width=1pt] (0,0.4) -- ++(-0.7,0); + \path[draw, line width=1pt,foreground] (0,0.3) -- ++(0,0.2); + \path[draw, line width=1pt,foreground] (0,0.4) -- ++(-0.7,0); } { % signal marker - \path[draw, fill] (-0.7,0.6) rectangle ++(-0.3,-0.4); - \path[draw, fill] (-1.0,0.6) arc (90:270:0.2); + \path[draw, fill,foreground] (-0.7,0.6) rectangle ++(-0.3,-0.4); + \path[draw, fill,foreground] (-1.0,0.6) arc (90:270:0.2); } }; } \tikzset{ - route_passanger_forward/.pic={ - \fill (-0.175,-0.15) -- ++(0,0.3) -- ++ (0.35,-0.15) -- cycle; + block_signal_forward/.pic={ + { % signal pole + \path[draw, line width=1pt,foreground] (0,-0.3) -- ++(0,-0.2); + \path[draw, line width=1pt,foreground] (0,-0.4) -- ++(0.7,0); + } + { % signal marker + \path[draw, fill,foreground] (0.7,-0.6) rectangle ++(0.3,0.4); + \path[draw, fill,foreground] (1.0,-0.6) arc (90:270:-0.2); + } }; } \tikzset{ - route_passanger_backward/.pic={ - \fill (0.175,-0.15) -- ++(0,0.3) -- ++ (-0.35,-0.15) -- cycle; + block_signal_backward/.pic={ + { % signal pole + \path[draw, line width=1pt,foreground] (0,0.3) -- ++(0,0.2); + \path[draw, line width=1pt,foreground] (0,0.4) -- ++(-0.7,0); + } + { % signal marker + \path[draw, fill,foreground] (-0.7,0.6) rectangle ++(-0.3,-0.4); + \path[draw, fill,foreground] (-1.0,0.6) arc (90:270:0.2); + } }; } \tikzset{ - route_freight_forward/.pic={ - \fill (-0.35,-0.15) -- ++(0,0.3) -- ++ (0.35,-0.15) -- cycle; - \fill ( 0 ,-0.15) -- ++(0,0.3) -- ++ (0.35,-0.15) -- cycle; + main_route_forward/.pic={ + \draw[foreground] (-0.06,0) circle (0.19); + \fill[foreground] (-0.175,-0.15) -- ++(0,0.3) -- ++ (0.35,-0.15) -- cycle; }; } \tikzset{ - route_freight_backward/.pic={ - \fill (0.35,-0.15) -- ++(0,0.3) -- ++ (-0.35,-0.15) -- cycle; - \fill (0 ,-0.15) -- ++(0,0.3) -- ++ (-0.35,-0.15) -- cycle; - }; -} -% \tikzset{ -% speed_signal_forward/.pic={ -% \path[draw, line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.4,0); % signal pole -% \path[draw, line width=1pt] (0.4,-0.2) -- ++(0,-0.4) -- ++ (0.35,0.2) -- cycle; % signal marker -% }; -% } -% \tikzset{ -% speed_signal_backward/.pic={ -% \path[draw, line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.4,0); % signal pole -% \path[draw, line width=1pt] (-0.4,0.2) -- ++(0,0.4) -- ++ (-0.35,-0.2) -- cycle; % signal marker -% }; -% } -% \tikzset{ -% shunt_signal_forward/.pic={ -% \path[draw, line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.7,0); % signal pole -% \path[draw, line width=1pt] (0.6,-0.3) circle (0.1); % signal marker -% }; -% } -\tikzset{ - clearing_point/.pic={ - \path[draw, line width=1pt] (0,-0.1) -- ++(0,0.2); % signal pole - \path[draw, line width=1pt] (0.1,0.1) -- ++(-0.2,0); % signal marker + main_route_backward/.pic={ + \draw[foreground] (0.06,0) circle (0.19); + \fill[foreground] (0.175,-0.15) -- ++(0,0.3) -- ++ (-0.35,-0.15) -- cycle; }; } \tikzset{ - axle_counter_left/.pic={ - \path[draw, line width=1pt] (-0.25,0.16) -- ++(0.5,0); - \path[draw, line width=1pt, fill] (-0.1,0.16) circle (0.07); - \path[draw, line width=1pt, fill] ( 0.1,0.16) circle (0.07); + passanger_route_forward/.pic={ + \fill[foreground] (-0.175,-0.15) -- ++(0,0.3) -- ++ (0.35,-0.15) -- cycle; }; } \tikzset{ - axle_counter_right/.pic={ - \path[draw, line width=1pt] (-0.25,-0.16) -- ++(0.5,0); - \path[draw, line width=1pt, fill] (-0.1,-0.16) circle (0.07); - \path[draw, line width=1pt, fill] ( 0.1,-0.16) circle (0.07); + passanger_route_backward/.pic={ + \fill[foreground] (0.175,-0.15) -- ++(0,0.3) -- ++ (-0.35,-0.15) -- cycle; }; } +\tikzset{ + commuter_route_forward/.pic={ + \fill[foreground] (-0.2,0) circle (0.15); + \fill[foreground] ( 0 ,-0.15) -- ++(0,0.3) -- ++ (0.35,-0.15) -- cycle; + }; +} +\tikzset{ + commuter_route_backward/.pic={ + \fill[foreground] (0.2,0) circle (-0.15); + \fill[foreground] (0 ,-0.15) -- ++(0,0.3) -- ++ (-0.35,-0.15) -- cycle; + }; +} +\tikzset{ + freight_route_forward/.pic={ + \fill[foreground] (-0.35,-0.15) -- ++(0,0.3) -- ++ (0.35,-0.15) -- cycle; + \fill[foreground] ( 0 ,-0.15) -- ++(0,0.3) -- ++ (0.35,-0.15) -- cycle; + }; +} +\tikzset{ + freight_route_backward/.pic={ + \fill[foreground] (0.35,-0.15) -- ++(0,0.3) -- ++ (-0.35,-0.15) -- cycle; + \fill[foreground] (0 ,-0.15) -- ++(0,0.3) -- ++ (-0.35,-0.15) -- cycle; + }; +} +\tikzset{ + shunting_route_forward/.pic={ + \fill[foreground] ( 0.175,-0.15) -- ++(0,0.3) -- ++ (0.35,-0.15) -- cycle; + \fill[foreground] (-0.175,-0.15) -- ++(0,0.3) -- ++ (0.35,-0.15) -- cycle; + \fill[foreground] (-0.525,-0.15) -- ++(0,0.3) -- ++ (0.35,-0.15) -- cycle; + }; +} +\tikzset{ + shunting_route_backward/.pic={ + \fill[foreground] ( 0.525,-0.15) -- ++(0,0.3) -- ++ (-0.35,-0.15) -- cycle; + \fill[foreground] ( 0.175,-0.15) -- ++(0,0.3) -- ++ (-0.35,-0.15) -- cycle; + \fill[foreground] (-0.175,-0.15) -- ++(0,0.3) -- ++ (-0.35,-0.15) -- cycle; + }; +} +\tikzset{ + pics/speed_signal_forward/.style args={#1}{ + code={ + { % signal pole + \path[draw, line width=1pt,foreground] (0,-0.3) -- ++(0,-0.2); + \path[draw, line width=1pt,foreground] (0,-0.4) -- ++(0.4,0); + } + \path[draw, line width=1pt,foreground] (0.4,-0.2) -- ++(0,-0.4) -- ++ (0.35,0.2) -- cycle; % signal marker + \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/.style args={#1}{ + code={ + { % signal pole + \path[draw, line width=1pt,foreground] (0,0.3) -- ++(0,0.2); + \path[draw, line width=1pt,foreground] (0,0.4) -- ++(-0.4,0); + } + \path[draw, line width=1pt,foreground] (-0.4,0.2) -- ++(0,0.4) -- ++ (-0.35,-0.2) -- cycle; % signal marker + \node[rotate=90,font=\sffamily,text=foreground] at (-1.0,0.4) {#1}; % speed indicator + } + }, + pics/speed_signal_backward/.default=, +} +\tikzset{ + pics/speed_distant_signal_forward/.style args={#1}{ + code={ + { % signal pole + \path[draw, line width=1pt,foreground] (0,-0.3) -- ++(0,-0.2); + \path[draw, line width=1pt,foreground] (0,-0.4) -- ++(0.4,0); + } + \path[draw, line width=1pt,foreground] (0.75,-0.2) -- ++(0,-0.4) -- ++ (-0.35,0.2) -- cycle; % signal marker + \node[rotate=-90,font=\sffamily,text=foreground] at (1.0,-0.4) {#1}; % speed indicator + } + }, + pics/speed_distant_signal_forward/.default=, +} +\tikzset{ + pics/speed_distant_signal_backward/.style args={#1}{ + code={ + { % signal pole + \path[draw, line width=1pt,foreground] (0,0.3) -- ++(0,0.2); + \path[draw, line width=1pt,foreground] (0,0.4) -- ++(-0.4,0); + } + \path[draw, line width=1pt,foreground] (-0.75,0.2) -- ++(0,0.4) -- ++ (0.35,-0.2) -- cycle; % signal marker + \node[rotate=90,font=\sffamily,text=foreground] at (-1.0,0.4) {#1}; % speed indicator + } + }, + pics/speed_distant_signal_backward/.default=, +} +\tikzset{ + shunt_signal_forward/.pic={ + { % signal pole + \path[draw, line width=1pt,foreground] (0,-0.3) -- ++(0,-0.2); + \path[draw, line width=1pt,foreground] (0,-0.4) -- ++(0.6,0); + } + { % signal marker + \path[draw, line width=1pt, fill=background,foreground] (0.6,-0.55) rectangle ++(0.3,0.3); + \path[draw, line width=1pt,foreground] (0.75,-0.55) -- ++(0,0.3); + } + }; +} +\tikzset{ + shunt_signal_backward/.pic={ + { % signal pole + \path[draw, line width=1pt,foreground] (0,0.3) -- ++(0,0.2); + \path[draw, line width=1pt,foreground] (0,0.4) -- ++(-0.6,0); + } + { % signal marker + \path[draw, line width=1pt, fill=background,foreground] (-0.6,0.55) rectangle ++(-0.3,-0.3); + \path[draw, line width=1pt,foreground] (-0.75,0.55) -- ++(0,-0.3); + } + }; +} +\tikzset{ + shunt_limit_forward/.pic={ + { % signal pole + \path[draw, line width=1pt,foreground] (0,-0.3) -- ++(0,-0.2); + \path[draw, line width=1pt,foreground] (0,-0.4) -- ++(0.5,0); + } + \path[draw, line width=1pt,foreground] (0.5,-0.25) arc (270:90:-0.15) -- cycle;; % signal marker + }; +} +\tikzset{ + shunt_limit_backward/.pic={ + { % signal pole + \path[draw, line width=1pt,foreground] (0,0.3) -- ++(0,0.2); + \path[draw, line width=1pt,foreground] (0,0.4) -- ++(-0.5,0); + } + \path[draw, line width=1pt,foreground] (-0.5,0.55) arc (90:270:0.15) -- cycle;; % signal marker + }; +} +\tikzset{ + pics/axle_counter_left/.style args={#1}{ + code={ + \path[draw, line width=1pt,foreground] (-0.25,0.16) -- ++(0.5,0); + \path[draw, line width=1pt, fill,foreground] (-0.1,0.16) circle (0.07); + \path[draw, line width=1pt, fill,foreground] ( 0.1,0.16) circle (0.07); + \node[font=\sffamily,text=foreground] at (0,0.4) {#1}; % indicator + } + }, + pics/axle_counter_left/.default=, +} +\tikzset{ + pics/axle_counter_right/.style args={#1}{ + code={ + \path[draw, line width=1pt,foreground] (-0.25,-0.16) -- ++(0.5,0); + \path[draw, line width=1pt, fill,foreground] (-0.1,-0.16) circle (0.07); + \path[draw, line width=1pt, fill,foreground] ( 0.1,-0.16) circle (0.07); + \node[font=\sffamily,text=foreground] at (0,-0.4) {#1}; % indicator + } + }, + pics/axle_counter_right/.default=, +} \tikzset{ derailer_right_forward/.pic={ - \fill (-0.1,0.2) -- ++(0,-0.4) -- ++(0.2,0) -- ++(0,0.4) -- cycle; % signal pole - \path[draw,->,>=latex,line width=1pt] (-0.2,0.2) -- (0.4,-0.4); % derailer marker + \fill[foreground] (-0.1,0.2) -- ++(0,-0.4) -- ++(0.2,0) -- ++(0,0.4) -- cycle; % signal pole + \path[draw,->,>=latex,line width=1pt,foreground] (-0.2,0.2) -- (0.4,-0.4); % derailer marker }; } \tikzset{ derailer_left_forward/.pic={ - \fill (-0.1,0.2) -- ++(0,-0.4) -- ++(0.2,0) -- ++(0,0.4) -- cycle; % signal pole - \path[draw,->,>=latex,line width=1pt] (-0.2,-0.2) -- (0.4,0.4); % derailer marker + \fill[foreground] (-0.1,0.2) -- ++(0,-0.4) -- ++(0.2,0) -- ++(0,0.4) -- cycle; % signal pole + \path[draw,->,>=latex,line width=1pt,foreground] (-0.2,-0.2) -- (0.4,0.4); % derailer marker + }; +} +\tikzset{ + derailer_right_backward/.pic={ + \fill[foreground] (-0.1,0.2) -- ++(0,-0.4) -- ++(0.2,0) -- ++(0,0.4) -- cycle; % signal pole + \path[draw,->,>=latex,line width=1pt,foreground] (0.2,-0.2) -- (-0.4,0.4); % derailer marker + }; +} +\tikzset{ + derailer_left_backward/.pic={ + \fill[foreground] (-0.1,0.2) -- ++(0,-0.4) -- ++(0.2,0) -- ++(0,0.4) -- cycle; % signal pole + \path[draw,->,>=latex,line width=1pt,foreground] (0.2,0.2) -- (-0.4,-0.4); % derailer marker }; } diff --git a/src/topology.tikz b/src/topology.tikz index 9974c75..9eed9c1 100644 --- a/src/topology.tikz +++ b/src/topology.tikz @@ -1,17 +1,19 @@ %% 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. -\tikzset{MainTrack/.style={line width=2pt}} -\tikzset{SideTrack/.style={line width=0.7pt}} \colorlet{background}{white} +\colorlet{foreground}{black} + +\tikzset{MainTrack/.style={line width=2pt,foreground}} +\tikzset{SideTrack/.style={line width=0.7pt,foreground}} \tikzset{ pics/track_number/.style args={#1}{ code={ - \node[fill=background,font=\sffamily] at (0,0) {#1}; % speed indicator + \node[fill=background,font=\sffamily,text=foreground] at (0,0) {#1}; % speed indicator } }, pics/track_number/.default=, @@ -19,9 +21,9 @@ \tikzset{ pics/track_distance/.style args={#1}{ code={ - \fill (0,0.96) -- ++(-0.1,-0.15) -- ++(0.2,0) -- cycle; % upper triangle - \node[baseline=(current bounding box.center),font=\sffamily] at (0,0.5) {#1}; % distance indicator - \fill (0,0.04) -- ++(-0.1,0.15) -- ++(0.2,0) -- cycle; % lower triangle + \fill[foreground] (0,0.96) -- ++(-0.1,-0.15) -- ++(0.2,0) -- cycle; % upper triangle + \node[baseline=(current bounding box.center),font=\sffamily,text=foreground] at (0,0.5) {#1}; % distance indicator + \fill[foreground] (0,0.04) -- ++(-0.1,0.15) -- ++(0.2,0) -- cycle; % lower triangle } }, pics/track_distance/.default=, @@ -29,106 +31,178 @@ \tikzset{ pics/turnout_left_forward/.style args={#1}{ code={ - \path[draw,line width=1pt,fill=#1] (0,0) -- ++(0.4,0.4) -- ++(0,-0.4); % turnout marker + \path[draw=foreground,line width=1pt,fill=#1] (0,0) -- ++(0.4,0.4) -- ++(0,-0.4); % turnout marker } }, - pics/turnout_left_forward/.default=black, + pics/turnout_left_forward/.default=foreground, } \tikzset{ pics/turnout_left_backward/.style args={#1}{ code={ - \path[draw,line width=1pt,fill=#1] (0,0) -- ++(-0.4,-0.4) -- ++(0,0.4); % turnout marker + \path[draw=foreground,line width=1pt,fill=#1] (0,0) -- ++(-0.4,-0.4) -- ++(0,0.4); % turnout marker } }, - pics/turnout_left_forward/.default=black, + pics/turnout_left_backward/.default=foreground, } \tikzset{ pics/turnout_right_forward/.style args={#1}{ code={ - \path[draw,line width=1pt,fill=#1] (0,0) -- ++(0.4,-0.4) -- ++(0,0.4); % turnout marker + \path[draw=foreground,line width=1pt,fill=#1] (0,0) -- ++(0.4,-0.4) -- ++(0,0.4); % turnout marker } }, - pics/turnout_left_forward/.default=black, + pics/turnout_right_forward/.default=foreground, } \tikzset{ pics/turnout_right_backward/.style args={#1}{ code={ - \path[draw,line width=1pt,fill=#1] (0,0) -- ++(-0.4,0.4) -- ++(0,-0.4); % turnout marker + \path[draw=foreground,line width=1pt,fill=#1] (0,0) -- ++(-0.4,0.4) -- ++(0,-0.4); % turnout marker } }, - pics/turnout_left_forward/.default=black, + pics/turnout_right_backward/.default=foreground, } \tikzset{ fouling_point_right_backward/.pic={ - \path[draw,line width=0.75pt] (-0.7,0) -- ++(0,0.7); % fouling point indicator + \path[draw=foreground,line width=0.75pt] (-0.7,0) -- ++(0,0.7); % fouling point indicator }; } \tikzset{ fouling_point_left_backward/.pic={ - \path[draw,line width=0.75pt] (-0.7,0) -- ++(0,-0.7); % fouling point indicator + \path[draw=foreground,line width=0.75pt] (-0.7,0) -- ++(0,-0.7); % fouling point indicator }; } \tikzset{ fouling_point_right_forward/.pic={ - \path[draw,line width=0.75pt] (0.7,0) -- ++(0,-0.7); % fouling point indicator + \path[draw=foreground,line width=0.75pt] (0.7,0) -- ++(0,-0.7); % fouling point indicator }; } \tikzset{ fouling_point_left_forward/.pic={ - \path[draw,line width=0.75pt] (0.7,0) -- ++(0,0.7); % fouling point indicator + \path[draw=foreground,line width=0.75pt] (0.7,0) -- ++(0,0.7); % fouling point indicator }; } \tikzset{ slip_left_forward/.pic={ - \path[draw,line width=0.75pt] (-0.4,0.1) -- (0.3,0.4); % fouling point indicator + \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,line width=0.75pt] (-0.3,-0.4) -- (0.4,-0.1); % fouling point indicator + \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,line width=0.75pt] (-0.4,-0.1) -- (0.3,-0.4); % fouling point indicator + \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,line width=0.75pt] (0.4,0.1) -- (-0.3,0.4); % fouling point indicator + \path[draw=foreground,line width=0.75pt] (0.4,0.1) -- (-0.3,0.4); % fouling point indicator + }; +} +\tikzset{ + turnout_left_forward_points_right/.pic={ + \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 + \fill[foreground] (0.225,-0.1) circle (0.05); + \fill[foreground] (0.015, 0.15) circle (0.05); % points indicator right + \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 + \fill[foreground] (-0.225,0.1) circle (0.05); + \fill[foreground] (-0.015,-0.15) circle (0.05); % points indicator right + \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 + \fill[foreground] (0.225, 0.1) circle (0.05); + \fill[foreground] (0.015,-0.15) circle (0.05); % points indicator right + \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 + \fill[foreground] (-0.225,-0.1) circle (0.05); + \fill[foreground] (-0.015,0.15) circle (0.05); % points indicator right + \fill[foreground] (-0.115,0.25) circle (0.05); }; } \tikzset{ derailer_right_forward/.pic={ - \path[draw, line width=1pt] (0,0.2) -- ++(0,-0.4); % derailer marker - \path[draw,->,>=latex,line width=1pt,dashed] (0,0) -- ++(0.4,-0.4); % derailer arrow + \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, line width=1pt] (0,0.2) -- ++(0,-0.4); % derailer marker - \path[draw,->,>=latex,line width=1pt,dashed] (0,0) -- ++(-0.4,0.4); % derailer arrow + \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, line width=1pt] (0,0.2) -- ++(0,-0.4); % derailer marker - \path[draw,->,>=latex,line width=1pt,dashed] (0,0) -- ++(0.4,0.4); % derailer arrow + \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, line width=1pt] (0,0.2) -- ++(0,-0.4); % derailer marker - \path[draw,->,>=latex,line width=1pt,dashed] (0,0) -- ++(-0.4,-0.4); % derailer arrow + \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, line width=1pt] (-0.1,0.2) -- ++(0.1,0) -- ++(0,-0.4) -- ++ (-0.1,0); % bufferstop marker + \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, line width=1pt] (0.1,0.2) -- ++(-0.1,0) -- ++(0,-0.4) -- ++ (0.1,0); % bufferstop marker + \path[draw=foreground, line width=1pt] (0.1,0.2) -- ++(-0.1,0) -- ++(0,-0.4) -- ++ (0.1,0); % bufferstop marker }; } diff --git a/src/trafficControl.tikz b/src/trafficControl.tikz index 93741e5..15a9e44 100644 --- a/src/trafficControl.tikz +++ b/src/trafficControl.tikz @@ -1,36 +1,36 @@ %% 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. \tikzset{ train_berth_sign_forward/.pic={ - \path[draw, line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.3,0); % signal pole + \path[draw=foreground,line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.3,0); % signal pole { % signal marker - \path[draw, line width=1pt] (0.3,-0.575) rectangle ++(0.5,0.35); - \path[draw, line width=0.75pt] (0.375,-0.3) -- ++(0.35,0); - \path[draw, line width=0.75pt] (0.55,-0.5) -- ++(0,0.2); - \path[draw, line width=0.75pt] (0.375,-0.5) -- ++(0.35,0); + \path[draw=foreground,line width=1pt] (0.3,-0.575) rectangle ++(0.5,0.35); + \path[draw=foreground,line width=0.75pt] (0.375,-0.3) -- ++(0.35,0); + \path[draw=foreground,line width=0.75pt] (0.55,-0.5) -- ++(0,0.2); + \path[draw=foreground,line width=0.75pt] (0.375,-0.5) -- ++(0.35,0); } }; } \tikzset{ train_berth_sign_backward/.pic={ - \path[draw, line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.3,0); % signal pole + \path[draw=foreground,line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.3,0); % signal pole { % signal marker - \path[draw, line width=1pt] (-0.3,0.575) rectangle ++(-0.5,-0.35); - \path[draw, line width=0.75pt] (-0.375,0.3) -- ++(-0.35,0); - \path[draw, line width=0.75pt] (-0.55,0.5) -- ++(0,-0.2); - \path[draw, line width=0.75pt] (-0.375,0.5) -- ++(-0.35,0); + \path[draw=foreground,line width=1pt] (-0.3,0.575) rectangle ++(-0.5,-0.35); + \path[draw=foreground,line width=0.75pt] (-0.375,0.3) -- ++(-0.35,0); + \path[draw=foreground,line width=0.75pt] (-0.55,0.5) -- ++(0,-0.2); + \path[draw=foreground,line width=0.75pt] (-0.375,0.5) -- ++(-0.35,0); } }; } \tikzset{ pics/train_berth_shape/.style n args={1}{ code={ - \path[draw,line width=0.75pt,densely dotted] (0, 0.25) -- (0, 0.35) -- (#1, 0.35) -- ++(0,-0.1); % berth shape - \path[draw,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 + \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, @@ -38,7 +38,7 @@ \tikzset{ pics/train_berth_shape_forward/.style n args={1}{ code={ - \path[draw,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, @@ -46,28 +46,27 @@ \tikzset{ pics/train_berth_shape_backward/.style n args={1}{ code={ - \path[draw,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{ view_point_forward/.pic={ - \path[draw,<-,>=latex,line width=1pt] (0,-0.1) -- ++(0,-0.3) -- ++(0.2,0); % arrow + \path[draw=foreground,<-,>=latex,line width=1pt] (0,-0.1) -- ++(0,-0.3) -- ++(0.2,0); % arrow { % eye - \filldraw (0.4,-0.4) circle (0.1); - \path[draw, line width=1pt] + \filldraw[foreground] (0.4,-0.4) circle (0.1); + \path[draw=foreground, line width=1pt] (0.4,-0.15) .. controls (0.25,-0.25) and (0.25,-0.55) .. (0.4,-0.65) .. controls (0.55,-0.55) and (0.55,-0.25) .. (0.4,-0.15)--cycle; } }; } \tikzset{ view_point_backward/.pic={ - \tikzset{>=latex} - \path[draw,<-,>=latex,line width=1pt] (0,0.1) -- ++(0,0.3) -- ++(-0.2,0); % arrow + \path[draw=foreground,<-,>=latex,line width=1pt] (0,0.1) -- ++(0,0.3) -- ++(-0.2,0); % arrow { % eye - \filldraw (-0.4,0.4) circle (0.1); - \path[draw, line width=1pt] + \filldraw[foreground] (-0.4,0.4) circle (0.1); + \path[draw=foreground, line width=1pt] (-0.4,0.15) .. controls (-0.25,0.25) and (-0.25,0.55) .. (-0.4,0.65) .. controls (-0.55,0.55) and (-0.55,0.25) .. (-0.4,0.15)--cycle; } }; @@ -75,9 +74,9 @@ \tikzset{ pics/distant_signal_forward/.style args={#1}{ code={ - \path[draw, line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.4,0); % signal pole - \path[draw, fill=background, line width=1pt] (0.7,-0.6) -- ++(0,0.4) -- ++ (-0.35,-0.2) -- cycle; % signal marker - \node[rotate=-90,font=\sffamily] at (0.9,-0.4) {#1}; % speed indicator + \path[draw=foreground,line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.4,0); % signal pole + \path[draw=foreground,fill=background,line width=1pt] (0.7,-0.6) -- ++(0,0.4) -- ++ (-0.35,-0.2) -- cycle; % signal marker + \node[rotate=-90,font=\sffamily,text=foreground] at (0.9,-0.4) {#1}; % speed indicator } }, pics/distant_signal_forward/.default=, @@ -85,9 +84,9 @@ \tikzset{ pics/distant_signal_backward/.style args={#1}{ code={ - \path[draw, line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.4,0); % signal pole - \path[draw, fill=background, line width=1pt] (-0.7,0.6) -- ++(0,-0.4) -- ++ (0.35,0.2) -- cycle; % signal marker - \node[rotate=90,font=\sffamily] at (-0.9,0.4) {#1}; % speed indicator + \path[draw=foreground,line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.4,0); % signal pole + \path[draw=foreground,fill=background,line width=1pt] (-0.7,0.6) -- ++(0,-0.4) -- ++ (0.35,0.2) -- cycle; % signal marker + \node[rotate=90,font=\sffamily,text=foreground] at (-0.9,0.4) {#1}; % speed indicator } }, pics/distant_signal_backward/.default=, @@ -95,9 +94,9 @@ \tikzset{ pics/speed_signal_forward/.style args={#1}{ code={ - \path[draw, line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.4,0); % signal pole - \path[draw, line width=1pt] (0.4,-0.2) -- ++(0,-0.4) -- ++ (0.35,0.2) -- cycle; % signal marker - \node[rotate=-90,font=\sffamily] at (1.0,-0.4) {#1}; % speed indicator + \path[draw=foreground,line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.4,0); % signal pole + \path[draw=foreground,line width=1pt] (0.4,-0.2) -- ++(0,-0.4) -- ++ (0.35,0.2) -- cycle; % signal marker + \node[rotate=-90,font=\sffamily,text=foreground] at (1.0,-0.4) {#1}; % speed indicator } }, pics/speed_signal_forward/.default=, @@ -105,9 +104,9 @@ \tikzset{ pics/speed_signal_backward/.style args={#1}{ code={ - \path[draw, line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.4,0); % signal pole - \path[draw, line width=1pt] (-0.4,0.2) -- ++(0,0.4) -- ++ (-0.35,-0.2) -- cycle; % signal marker - \node[rotate=90,font=\sffamily] at (-1.0,0.4) {#1}; % speed indicator + \path[draw=foreground,line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.4,0); % signal pole + \path[draw=foreground,line width=1pt] (-0.4,0.2) -- ++(0,0.4) -- ++ (-0.35,-0.2) -- cycle; % signal marker + \node[rotate=90,font=\sffamily,text=foreground] at (-1.0,0.4) {#1}; % speed indicator } }, pics/speed_signal_backward/.default=, @@ -115,9 +114,9 @@ \tikzset{ pics/block_signal_forward/.style args={#1}{ code={ - \path[draw, line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.7,0); % signal pole - \path[draw, line width=1pt] (0.7,-0.6) rectangle ++(0.4,0.4); % signal marker - \node[rotate=-90,font=\sffamily] at (1.3,-0.4) {#1}; % speed indicator + \path[draw=foreground,line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.7,0); % signal pole + \path[draw=foreground,line width=1pt] (0.7,-0.6) rectangle ++(0.4,0.4); % signal marker + \node[rotate=-90,font=\sffamily,text=foreground] at (1.3,-0.4) {#1}; % speed indicator } }, pics/block_signal_forward/.default=, @@ -125,9 +124,9 @@ \tikzset{ pics/block_signal_backward/.style args={#1}{ code={ - \path[draw, line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.7,0); % signal pole - \path[draw, line width=1pt] (-0.7,0.6) rectangle ++(-0.4,-0.4); % signal marker - \node[rotate=90,font=\sffamily] at (-1.3,0.4) {#1}; % speed indicator + \path[draw=foreground,line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.7,0); % signal pole + \path[draw=foreground,line width=1pt] (-0.7,0.6) rectangle ++(-0.4,-0.4); % signal marker + \node[rotate=90,font=\sffamily,text=foreground] at (-1.3,0.4) {#1}; % speed indicator } }, pics/block_signal_backward/.default=, @@ -135,9 +134,9 @@ \tikzset{ pics/route_signal_forward/.style args={#1}{ code={ - \path[draw, line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.7,0); % signal pole - \path[draw, line width=1pt] (0.9,-0.4) circle (0.2); % signal marker - \node[rotate=-90,font=\sffamily] at (1.3,-0.4) {#1}; % speed indicator + \path[draw=foreground,line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.7,0); % signal pole + \path[draw=foreground,line width=1pt] (0.9,-0.4) circle (0.2); % signal marker + \node[rotate=-90,font=\sffamily,text=foreground] at (1.3,-0.4) {#1}; % speed indicator } }, pics/route_signal_forward/.default=, @@ -145,79 +144,95 @@ \tikzset{ pics/route_signal_backward/.style args={#1}{ code={ - \path[draw, line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.7,0); % signal pole - \path[draw, line width=1pt] (-0.9,0.4) circle (0.2); % signal marker - \node[rotate=90,font=\sffamily] at (-1.3,0.4) {#1}; % speed indicator + \path[draw=foreground,line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.7,0); % signal pole + \path[draw=foreground,line width=1pt] (-0.9,0.4) circle (0.2); % signal marker + \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, line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.7,0); % signal pole - \path[draw, line width=1pt] (0.6,-0.3) circle (0.1); % signal marker + \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 + % \path[fill=red] (0.6,-0.3) circle (0.1); % signal aspect + \path[draw=foreground, line width=1pt] (0.6,-0.2) -- ++(0,-0.2); % signal aspect + \path[draw=foreground,line width=1pt] (0.6,-0.3) circle (0.1); % signal marker }; } \tikzset{ shunt_signal_backward/.pic={ - \path[draw, line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.7,0); % signal pole - \path[draw, line width=1pt] (-0.6,0.3) circle (0.1); % signal marker + \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 + % \path[fill=red] (-0.6,0.3) circle (0.1); % signal aspect + \path[draw=foreground, line width=1pt] (-0.6,0.2) -- ++(0,0.2); % signal aspect + \path[draw=foreground, line width=1pt] (-0.6,0.3) circle (0.1); % signal marker }; } \tikzset{ shunt_limit_forward/.pic={ - \path[draw, line width=1pt] (0,0) -- ++(0,-0.4) -- ++(0.5,0); % signal pole - \path[draw, line width=1pt] (0.5,-0.25) arc (270:90:-0.15) -- cycle;; % signal marker + \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, line width=1pt] (0,0) -- ++(0,0.4) -- ++(-0.5,0); % signal pole - \path[draw, line width=1pt] (-0.5,0.55) arc (90:270:0.15) -- cycle;; % signal marker + \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, line width=1pt] (0,0) -- ++(0,-0.5); % marker - \path[draw, line width=1pt] (-0.1,-0.7) rectangle ++(0.2,0.2); % sign + \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, line width=1pt] (0,0) -- ++(0,0.5); % marker - \path[draw, line width=1pt] (0.1,0.7) rectangle ++(-0.2,-0.2); % sign + \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, line width=1pt] (0,0.1) -- ++(0,-0.2); % marker - \path[draw, line width=1pt] (0,-0.1) -- ++(-0.1,-0.1) -- ++(0.1,-0.1) -- ++(0.1,0.1) -- cycle; % sign + \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, line width=1pt] (0,-0.1) -- ++(0,0.2); % marker - \path[draw, line width=1pt] (0,0.1) -- ++(0.1,0.1) -- ++(-0.1,0.1) -- ++(-0.1,-0.1) -- cycle; % sign + \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, line width=1pt] (0,0.1) -- ++(0,-0.2); % marker - \path[draw, line width=1pt] (0,-0.2) circle (0.1); % sign + \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, line width=1pt] (0,-0.1) -- ++(0,0.2); % marker - \path[draw, line width=1pt] (0, 0.2) circle (0.1); % sign + \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/.style args={#1}{ code={ - \path[draw, line width=1pt] (0 ,-0.1) -- ++( 0 ,0.2); % marker - \path[draw, line width=1pt] (0.1, 0.1) -- ++(-0.2,0 ); % sign - \node[font=\sffamily] at (0,0.45) {#1}; % indicator + \path[draw=foreground, line width=1pt] (0 ,-0.1) -- ++( 0 ,0.2); % marker + \path[draw=foreground, line width=1pt] (0.1, 0.1) -- ++(-0.2,0 ); % sign + \node[font=\sffamily,text=foreground] at (0,0.45) {#1}; % indicator } }, pics/clearing_point/.default=, @@ -225,7 +240,7 @@ \tikzset{ pics/transmitter_below/.style args={#1}{ code={ - \path[draw,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,-0.25); % turnout marker + \path[draw=foreground,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,-0.25); % turnout marker } }, pics/transmitter_below/.default=background, @@ -233,8 +248,8 @@ \tikzset{ pics/transmitter_below_forward/.style args={#1}{ code={ - \path[draw,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,-0.25); % turnout marker - \path[draw] (0.1,-0.05) -- (0.2,-0.125) -- (0.1,-0.2) -- cycle; + \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, @@ -242,8 +257,8 @@ \tikzset{ pics/transmitter_below_backward/.style args={#1}{ code={ - \path[draw,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,-0.25); % turnout marker - \path[draw] (-0.1,-0.05) -- (-0.2,-0.125) -- (-0.1,-0.2) -- cycle; + \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, @@ -251,9 +266,9 @@ \tikzset{ pics/transmitter_below_bidirectional/.style args={#1}{ code={ - \path[draw,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,-0.25); % turnout marker - \path[draw] ( 0.1,-0.05) -- ( 0.2,-0.125) -- ( 0.1,-0.2) -- cycle; - \path[draw] (-0.1,-0.05) -- (-0.2,-0.125) -- (-0.1,-0.2) -- cycle; + \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; + \path[draw=foreground] (-0.1,-0.05) -- (-0.2,-0.125) -- (-0.1,-0.2) -- cycle; } }, pics/transmitter_below_bidirectional/.default=background, @@ -261,7 +276,7 @@ \tikzset{ pics/transmitter_above/.style args={#1}{ code={ - \path[draw,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,0.25); % turnout marker + \path[draw=foreground,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,0.25); % turnout marker } }, pics/transmitter_above/.default=background, @@ -269,8 +284,8 @@ \tikzset{ pics/transmitter_above_forward/.style args={#1}{ code={ - \path[draw,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,0.25); % turnout marker - \path[draw] (0.1,0.05) -- (0.2,0.125) -- (0.1,0.2) -- cycle; + \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, @@ -278,8 +293,8 @@ \tikzset{ pics/transmitter_above_backward/.style args={#1}{ code={ - \path[draw,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,0.25); % turnout marker - \path[draw] (-0.1,0.05) -- (-0.2,0.125) -- (-0.1,0.2) -- cycle; + \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, @@ -287,9 +302,9 @@ \tikzset{ pics/transmitter_above_bidirectional/.style args={#1}{ code={ - \path[draw,line width=1pt,fill=#1] (-0.25,0) rectangle (0.25,0.25); % turnout marker - \path[draw] ( 0.1,0.05) -- ( 0.2,0.125) -- ( 0.1,0.2) -- cycle; - \path[draw] (-0.1,0.05) -- (-0.2,0.125) -- (-0.1,0.2) -- cycle; + \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; + \path[draw=foreground] (-0.1,0.05) -- (-0.2,0.125) -- (-0.1,0.2) -- cycle; } }, pics/transmitter_above_bidirectional/.default=background, diff --git a/src/vehicles.tikz b/src/vehicles.tikz index 5b6b816..ebbd1cf 100644 --- a/src/vehicles.tikz +++ b/src/vehicles.tikz @@ -4,21 +4,26 @@ % 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. +\colorlet{background}{white} +\colorlet{foreground}{black} + \tikzset{ - pics/train/.style args={#1}{ + pics/vehicles/.style args={#1}{ code={ - \path[draw, line width=1pt, fill=background] (0,-0.3) -- ++(#1,0) -- ++(0,0.6) -- ++(-#1,0) -- cycle; % train shape + \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/train/.default=4, + pics/vehicles/.default=4, } \tikzset{ pics/train_moving_forward/.style args={#1}{ code={ - \path[draw, line width=1pt, fill=background] (0,0) -- +(-0.3,0.3) -- +(-#1,0.3) -- +(-#1,-0.3) -- +(-0.3,-0.3) -- cycle; % train shape - \path[draw, line width=1pt] (-0.13,0.23) -- (0.1,0) -- (-0.13,-0.23); % arrow shape part 1 - \path[draw, line width=1pt] (-0.03,0.23) -- (0.2,0) -- (-0.03,-0.23); % arrow shape part 2 + \fill[fill=background] (-0.3,0.3) -- ( 0.1,0.3) -- (0.4,0) -- ( 0.1,-0.3) -- (-0.3,-0.3) -- cycle; + \path[draw=foreground, line width=1pt] (-0.15,0.3) -- (-0.1,0.3) -- (0.2,0) -- (-0.1,-0.3) -- (-0.15,-0.3); % arrow shape part 1 + \path[draw=foreground, line width=1pt] ( 0.05,0.3) -- ( 0.1,0.3) -- (0.4,0) -- ( 0.1,-0.3) -- ( 0.05,-0.3); % arrow shape part 2 + % + \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 } }, @@ -27,18 +32,72 @@ \tikzset{ pics/train_moving_backward/.style args={#1}{ code={ - \path[draw, line width=1pt, fill=background] (0,0) -- +(0.3,-0.3) -- +(#1,-0.3) -- +(#1,0.3) -- +(0.3,0.3) -- cycle; % train shape - \path[draw, line width=1pt] (0.13,0.23) -- (-0.1,0) -- (0.13,-0.23); % arrow shape part 1 - \path[draw, line width=1pt] (0.03,0.23) -- (-0.2,0) -- (0.03,-0.23); % arrow shape part 2 + \fill[fill=background] ( 0.3 ,0.3) -- (-0.1,0.3) -- (-0.4,0) -- (-0.1,-0.3) -- ( 0.3 ,-0.3) -- cycle; + \path[draw=foreground, line width=1pt] ( 0.15,0.3) -- ( 0.1,0.3) -- (-0.2,0) -- ( 0.1,-0.3) -- ( 0.15,-0.3); % arrow shape part 1 + \path[draw=foreground, line width=1pt] (-0.05,0.3) -- (-0.1,0.3) -- (-0.4,0) -- (-0.1,-0.3) -- (-0.05,-0.3); % arrow shape part 2 + % + \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_moving_backward/.default=4, } +\tikzset{ + 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; + \path[draw=foreground, line width=1pt] (-0.15,0.3) -- (-0.1,0.3) -- (0.2,0) -- (-0.1,-0.3) -- (-0.15,-0.3); % arrow shape part 1 + % + \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_moving_slow_forward/.default=4, +} +\tikzset{ + 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; + \path[draw=foreground, line width=1pt] ( 0.15,0.3) -- ( 0.1,0.3) -- (-0.2,0) -- ( 0.1,-0.3) -- ( 0.15,-0.3); % arrow shape part 1 + % + \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_moving_slow_backward/.default=4, +} +\tikzset{ + 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; + \path[draw=foreground, line width=1pt] (-0.15,0.3) -- (-0.1,0.3) -- (0.2,0) -- (-0.1,-0.3) -- (-0.15,-0.3); % arrow shape part 1 + \path[draw=foreground, line width=1pt] ( 0.05,0.3) -- ( 0.1,0.3) -- (0.4,0) -- ( 0.1,-0.3) -- ( 0.05,-0.3); % arrow shape part 2 + \path[draw=foreground, line width=1pt] ( 0.25,0.3) -- ( 0.3,0.3) -- (0.6,0) -- ( 0.3,-0.3) -- ( 0.25,-0.3); % arrow shape part 3 + % + \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_moving_fast_forward/.default=4, +} +\tikzset{ + 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; + \path[draw=foreground, line width=1pt] ( 0.15,0.3) -- ( 0.1,0.3) -- (-0.2,0) -- ( 0.1,-0.3) -- ( 0.15,-0.3); % arrow shape part 1 + \path[draw=foreground, line width=1pt] (-0.05,0.3) -- (-0.1,0.3) -- (-0.4,0) -- (-0.1,-0.3) -- (-0.05,-0.3); % arrow shape part 2 + \path[draw=foreground, line width=1pt] (-0.25,0.3) -- (-0.3,0.3) -- (-0.6,0) -- (-0.3,-0.3) -- (-0.25,-0.3); % arrow shape part 3 + % + \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_moving_fast_backward/.default=4, +} \tikzset{ pics/train_direction_forward/.style args={#1}{ code={ - \path[draw, line width=1pt, fill=background] (0,0) -- +(-0.3,0.3) -- +(-#1,0.3) -- +(-#1,-0.3) -- +(-0.3,-0.3) -- cycle; % train shape + \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 } }, @@ -47,7 +106,7 @@ \tikzset{ pics/train_direction_backward/.style args={#1}{ code={ - \path[draw, line width=1pt, fill=background] (0,0) -- +(0.3,-0.3) -- +(#1,-0.3) -- +(#1,0.3) -- +(0.3,0.3) -- cycle; % train shape + \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 } }, @@ -56,7 +115,7 @@ \tikzset{ pics/ghost_train_direction_forward/.style args={#1}{ code={ - \path[draw, line width=1pt, dashed] (0,0) -- +(-0.3,0.3) -- +(-#1,0.3) -- +(-#1,-0.3) -- +(-0.3,-0.3) -- cycle; % train shape + \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 } }, @@ -65,29 +124,71 @@ \tikzset{ pics/ghost_train_direction_backward/.style args={#1}{ code={ - \path[draw, line width=1pt, dashed] (0,0) -- +(0.3,-0.3) -- +(#1,-0.3) -- +(#1,0.3) -- +(0.3,0.3) -- cycle; % train shape + \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/.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/.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/.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; + \path[draw=foreground, double, line width=0.3pt] (-0.15,0.3) -- (-0.1,0.3) -- (0.2,0) -- (-0.1,-0.3) -- (-0.15,-0.3); % arrow shape part 1 + % + \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_shunting_forward/.default=4, +} +\tikzset{ + 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; + \path[draw=foreground, double, line width=0.3pt] ( 0.15,0.3) -- ( 0.1,0.3) -- (-0.2,0) -- ( 0.1,-0.3) -- ( 0.15,-0.3); % arrow shape part 1 + % + \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_shunting_backward/.default=4, +} \tikzset{ train_automatic_forward/.pic={ - \path[draw, fill] (-0.15,0) -- ++(-0.15,0.15) -- ++(0,-0.3) -- cycle; % triangle + \path[draw=foreground, fill] (-0.15,0) -- ++(-0.15,0.15) -- ++(0,-0.3) -- cycle; % triangle }; } \tikzset{ train_automatic_backward/.pic={ - \path[draw, fill] (0.15,0) -- ++(0.15,0.15) -- ++(0,-0.3) -- cycle; % triangle + \path[draw=foreground, fill] (0.15,0) -- ++(0.15,0.15) -- ++(0,-0.3) -- cycle; % triangle }; } \tikzset{ train_human_forward/.pic={ - \path[draw, fill] (-0.4,0) circle (0.15); % dot + \path[draw=foreground, fill] (-0.4,0) circle (0.15); % dot }; } \tikzset{ train_human_backward/.pic={ - \path[draw, fill] (0.4,0) circle (0.15); % dot + \path[draw=foreground, fill] (0.4,0) circle (0.15); % dot }; } \ No newline at end of file