diff --git a/examples/snippets/block_clearing_point_backward.tikz b/examples/snippets/block_clearing_point_backward.tikz index ba146d2..397345a 100644 --- a/examples/snippets/block_clearing_point_backward.tikz +++ b/examples/snippets/block_clearing_point_backward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {block_clearing_point_backward}; \ No newline at end of file diff --git a/examples/snippets/block_clearing_point_forward.tikz b/examples/snippets/block_clearing_point_forward.tikz index 80059e5..d8c25da 100644 --- a/examples/snippets/block_clearing_point_forward.tikz +++ b/examples/snippets/block_clearing_point_forward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {block_clearing_point_forward}; \ No newline at end of file diff --git a/examples/snippets/block_end_marker_backward.tikz b/examples/snippets/block_end_marker_backward.tikz index f314bae..41a7b67 100644 --- a/examples/snippets/block_end_marker_backward.tikz +++ b/examples/snippets/block_end_marker_backward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {block_end_marker_backward}; \ No newline at end of file diff --git a/examples/snippets/block_end_marker_forward.tikz b/examples/snippets/block_end_marker_forward.tikz index 287a4b2..e9bb754 100644 --- a/examples/snippets/block_end_marker_forward.tikz +++ b/examples/snippets/block_end_marker_forward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {block_end_marker_forward}; \ No newline at end of file diff --git a/examples/snippets/block_signal_backward.tikz b/examples/snippets/block_signal_backward.tikz index acf6a31..31b59c8 100644 --- a/examples/snippets/block_signal_backward.tikz +++ b/examples/snippets/block_signal_backward.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {block_signal_backward=S}; % replace the S with desired speed or remove \ No newline at end of file diff --git a/examples/snippets/block_signal_forward.tikz b/examples/snippets/block_signal_forward.tikz index 05fe1af..2310213 100644 --- a/examples/snippets/block_signal_forward.tikz +++ b/examples/snippets/block_signal_forward.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {block_signal_forward=S}; % replace the S with desired speed or remove \ No newline at end of file diff --git a/examples/snippets/bridge.tikz b/examples/snippets/bridge.tikz index 9b2b6a4..7c5f1b9 100644 --- a/examples/snippets/bridge.tikz +++ b/examples/snippets/bridge.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (-2,0) {bridge_left=4}; \pic at (-2,0) {bridge_right=4}; \ No newline at end of file diff --git a/examples/snippets/bridge_track_beneath.tikz b/examples/snippets/bridge_track_beneath.tikz index dcdd21b..8f0d990 100644 --- a/examples/snippets/bridge_track_beneath.tikz +++ b/examples/snippets/bridge_track_beneath.tikz @@ -4,8 +4,8 @@ % 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[line width=2pt] (-1,-1) -- ++(2,2); +\draw[MainTrack] (-1,-1) -- ++(2,2); \fill[white] (-1,-0.4) rectangle (1,0.4); -\draw[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (-1,0) {bridge_left=3}; \pic at (-2,0) {bridge_right=3}; \ No newline at end of file diff --git a/examples/snippets/bufferstop_backward.tikz b/examples/snippets/bufferstop_backward.tikz index da633d9..ec0c45e 100644 --- a/examples/snippets/bufferstop_backward.tikz +++ b/examples/snippets/bufferstop_backward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (0,0) -- ++(2.5,0); +\draw[MainTrack] (0,0) -- ++(2.5,0); \pic at (0,0) {bufferstop_backward}; \ No newline at end of file diff --git a/examples/snippets/bufferstop_forward.tikz b/examples/snippets/bufferstop_forward.tikz index 9281c1f..62a1c2c 100644 --- a/examples/snippets/bufferstop_forward.tikz +++ b/examples/snippets/bufferstop_forward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(2.5,0); +\draw[MainTrack] (-2.5,0) -- ++(2.5,0); \pic at (0,0) {bufferstop_forward}; \ No newline at end of file diff --git a/examples/snippets/clearing_point.tikz b/examples/snippets/clearing_point.tikz index e5f1703..b1f83ec 100644 --- a/examples/snippets/clearing_point.tikz +++ b/examples/snippets/clearing_point.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {clearing_point}; \ No newline at end of file diff --git a/examples/snippets/derailer_left_backward.tikz b/examples/snippets/derailer_left_backward.tikz index 5974659..ddff6df 100644 --- a/examples/snippets/derailer_left_backward.tikz +++ b/examples/snippets/derailer_left_backward.tikz @@ -4,5 +4,5 @@ % 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[line width=1pt] (-2.5,0) -- ++(5,0); +\draw[SideTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {derailer_left_backward}; \ No newline at end of file diff --git a/examples/snippets/derailer_left_forward.tikz b/examples/snippets/derailer_left_forward.tikz index 5c3768f..a677e27 100644 --- a/examples/snippets/derailer_left_forward.tikz +++ b/examples/snippets/derailer_left_forward.tikz @@ -4,5 +4,5 @@ % 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[line width=1pt] (-2.5,0) -- ++(5,0); +\draw[SideTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {derailer_left_forward}; \ No newline at end of file diff --git a/examples/snippets/derailer_right_backward.tikz b/examples/snippets/derailer_right_backward.tikz index bbea0ae..2013cb6 100644 --- a/examples/snippets/derailer_right_backward.tikz +++ b/examples/snippets/derailer_right_backward.tikz @@ -4,5 +4,5 @@ % 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[line width=1pt] (-2.5,0) -- ++(5,0); +\draw[SideTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {derailer_right_backward}; \ No newline at end of file diff --git a/examples/snippets/derailer_right_forward.tikz b/examples/snippets/derailer_right_forward.tikz index 0c8d6ef..4f48540 100644 --- a/examples/snippets/derailer_right_forward.tikz +++ b/examples/snippets/derailer_right_forward.tikz @@ -4,5 +4,5 @@ % 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[line width=1pt] (-2.5,0) -- ++(5,0); +\draw[SideTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {derailer_right_forward}; \ No newline at end of file diff --git a/examples/snippets/diamond_crossing_left.tikz b/examples/snippets/diamond_crossing_left.tikz index a3eb289..4655973 100644 --- a/examples/snippets/diamond_crossing_left.tikz +++ b/examples/snippets/diamond_crossing_left.tikz @@ -4,7 +4,7 @@ % 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[line width=2pt] (-2.5, 0) -- ++(5,0); -\draw[line width=2pt] (-1 ,-1) -- ++(2,2); +\draw[MainTrack] (-2.5, 0) -- ++(5,0); +\draw[MainTrack] (-1 ,-1) -- ++(2,2); \pic at (0,0) {turnout_left_forward=none}; \pic at (0,0) {turnout_left_backward=none}; \ No newline at end of file diff --git a/examples/snippets/diamond_crossing_right.tikz b/examples/snippets/diamond_crossing_right.tikz index 473bf4d..4bee29c 100644 --- a/examples/snippets/diamond_crossing_right.tikz +++ b/examples/snippets/diamond_crossing_right.tikz @@ -4,7 +4,7 @@ % 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[line width=2pt] (-2.5,0) -- ++(5, 0); -\draw[line width=2pt] (-1 ,1) -- ++(2,-2); +\draw[MainTrack] (-2.5,0) -- ++(5, 0); +\draw[MainTrack] (-1 ,1) -- ++(2,-2); \pic at (0,0) {turnout_right_forward=none}; \pic at (0,0) {turnout_right_backward=none}; \ No newline at end of file diff --git a/examples/snippets/distant_signal_backward.tikz b/examples/snippets/distant_signal_backward.tikz index eff4a3c..dff77aa 100644 --- a/examples/snippets/distant_signal_backward.tikz +++ b/examples/snippets/distant_signal_backward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {distant_signal_backward}; \ No newline at end of file diff --git a/examples/snippets/distant_signal_forward.tikz b/examples/snippets/distant_signal_forward.tikz index 047c380..b329556 100644 --- a/examples/snippets/distant_signal_forward.tikz +++ b/examples/snippets/distant_signal_forward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {distant_signal_forward}; \ No newline at end of file diff --git a/examples/snippets/distant_speed_signal_backward.tikz b/examples/snippets/distant_speed_signal_backward.tikz index 03a9bdf..fc22f69 100644 --- a/examples/snippets/distant_speed_signal_backward.tikz +++ b/examples/snippets/distant_speed_signal_backward.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {distant_signal_backward=S}; % replace the S with desired speed or remove \ No newline at end of file diff --git a/examples/snippets/distant_speed_signal_forward.tikz b/examples/snippets/distant_speed_signal_forward.tikz index e85cb9c..9ed0a5a 100644 --- a/examples/snippets/distant_speed_signal_forward.tikz +++ b/examples/snippets/distant_speed_signal_forward.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {distant_signal_forward=S}; % replace the S with desired speed or remove \ No newline at end of file diff --git a/examples/snippets/double-slip_turnout_left.tikz b/examples/snippets/double-slip_turnout_left.tikz index d296e24..11317bd 100644 --- a/examples/snippets/double-slip_turnout_left.tikz +++ b/examples/snippets/double-slip_turnout_left.tikz @@ -4,8 +4,8 @@ % 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[line width=2pt] (-2.5, 0) -- ++(5,0); -\draw[line width=2pt] (-1 ,-1) -- ++(2,2); +\draw[MainTrack] (-2.5, 0) -- ++(5,0); +\draw[MainTrack] (-1 ,-1) -- ++(2,2); \pic at (0,0) {turnout_left_forward}; \pic at (0,0) {turnout_left_backward}; \pic at (0,0) {slip_left_forward}; diff --git a/examples/snippets/double-slip_turnout_right.tikz b/examples/snippets/double-slip_turnout_right.tikz index f62dfd2..27d713c 100644 --- a/examples/snippets/double-slip_turnout_right.tikz +++ b/examples/snippets/double-slip_turnout_right.tikz @@ -4,8 +4,8 @@ % 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[line width=2pt] (-2.5,0) -- ++(5, 0); -\draw[line width=2pt] (-1 ,1) -- ++(2,-2); +\draw[MainTrack] (-2.5,0) -- ++(5, 0); +\draw[MainTrack] (-1 ,1) -- ++(2,-2); \pic at (0,0) {turnout_right_forward}; \pic at (0,0) {turnout_right_backward}; \pic at (0,0) {slip_right_forward}; diff --git a/examples/snippets/ghost_train_moving_forward.tikz b/examples/snippets/ghost_train_direction_backward.tikz similarity index 78% rename from examples/snippets/ghost_train_moving_forward.tikz rename to examples/snippets/ghost_train_direction_backward.tikz index 6513261..b8f4c9a 100644 --- a/examples/snippets/ghost_train_moving_forward.tikz +++ b/examples/snippets/ghost_train_direction_backward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); -\pic at (2,0) {ghost_train_moving_forward}; \ No newline at end of file +\draw[MainTrack] (-2.5,0) -- ++(5,0); +\pic at (-2,0) {ghost_train_direction_backward}; \ No newline at end of file diff --git a/examples/snippets/ghost_train_moving_backward.tikz b/examples/snippets/ghost_train_direction_forward.tikz similarity index 78% rename from examples/snippets/ghost_train_moving_backward.tikz rename to examples/snippets/ghost_train_direction_forward.tikz index 54e3c40..3ca275c 100644 --- a/examples/snippets/ghost_train_moving_backward.tikz +++ b/examples/snippets/ghost_train_direction_forward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); -\pic at (-2,0) {ghost_train_moving_backward}; \ No newline at end of file +\draw[MainTrack] (-2.5,0) -- ++(5,0); +\pic at (2,0) {ghost_train_direction_forward}; \ No newline at end of file diff --git a/examples/snippets/level_crossing_double.tikz b/examples/snippets/level_crossing_double.tikz index 378e66e..86680a0 100644 --- a/examples/snippets/level_crossing_double.tikz +++ b/examples/snippets/level_crossing_double.tikz @@ -4,8 +4,8 @@ % 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[line width=2pt] (-2.5,-0.5) -- ++(5,0); -\draw[line width=2pt] (-2.5, 0.5) -- ++(5,0); +\draw[MainTrack] (-2.5,-0.5) -- ++(5,0); +\draw[MainTrack] (-2.5, 0.5) -- ++(5,0); \pic at (0, 0.5) {level_crossing_barrier_left}; \pic at (0, 0.5) {level_crossing}; \pic at (0,-0.5) {level_crossing_barrier_right}; \ No newline at end of file diff --git a/examples/snippets/level_crossing_double_full_closure.tikz b/examples/snippets/level_crossing_double_full_closure.tikz index 7c1b2ec..580b49a 100644 --- a/examples/snippets/level_crossing_double_full_closure.tikz +++ b/examples/snippets/level_crossing_double_full_closure.tikz @@ -4,8 +4,8 @@ % 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[line width=2pt] (-2.5,-0.5) -- ++(5,0); -\draw[line width=2pt] (-2.5, 0.5) -- ++(5,0); +\draw[MainTrack] (-2.5,-0.5) -- ++(5,0); +\draw[MainTrack] (-2.5, 0.5) -- ++(5,0); \pic at (0, 1.5) {level_crossing_barrier_right}; \pic at (0, 0.5) {level_crossing_barrier_left}; \pic at (0, 0.5) {level_crossing}; diff --git a/examples/snippets/level_crossing_single.tikz b/examples/snippets/level_crossing_single.tikz index b191814..96e7090 100644 --- a/examples/snippets/level_crossing_single.tikz +++ b/examples/snippets/level_crossing_single.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {level_crossing_barrier_left}; \pic at (0,0) {level_crossing_barrier_right}; \ No newline at end of file diff --git a/examples/snippets/main_line.tikz b/examples/snippets/main_line.tikz index 1b86dfa..2f49a34 100644 --- a/examples/snippets/main_line.tikz +++ b/examples/snippets/main_line.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5, 0.5) -- ++(5,0); -\draw[line width=2pt] (-2.5,-0.5) -- ++(5,0); \ No newline at end of file +\draw[MainTrack] (-2.5, 0.5) -- ++(5,0); +\draw[MainTrack] (-2.5,-0.5) -- ++(5,0); \ No newline at end of file diff --git a/examples/snippets/main_track.tikz b/examples/snippets/main_track.tikz index 5dbfc3e..8714069 100644 --- a/examples/snippets/main_track.tikz +++ b/examples/snippets/main_track.tikz @@ -4,4 +4,4 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); \ No newline at end of file +\draw[MainTrack] (-2.5,0) -- ++(5,0); \ No newline at end of file diff --git a/examples/snippets/platform_left.tikz b/examples/snippets/platform_left.tikz index ea20877..1946c36 100644 --- a/examples/snippets/platform_left.tikz +++ b/examples/snippets/platform_left.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (-2,0) {platform_left=4}; % change the 4 to desired length \ No newline at end of file diff --git a/examples/snippets/platform_middle.tikz b/examples/snippets/platform_middle.tikz index c906d4d..3a617ff 100644 --- a/examples/snippets/platform_middle.tikz +++ b/examples/snippets/platform_middle.tikz @@ -4,7 +4,7 @@ % 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[line width=2pt] (-2.5, 0.5) -- ++(5,0); -\draw[line width=2pt] (-2.5,-0.5) -- ++(5,0); +\draw[MainTrack] (-2.5, 0.5) -- ++(5,0); +\draw[MainTrack] (-2.5,-0.5) -- ++(5,0); \pic at (-2, 0.5) {platform_right}; \pic at (-2,-0.5) {platform_left}; \ No newline at end of file diff --git a/examples/snippets/platform_right.tikz b/examples/snippets/platform_right.tikz index 8312001..2fe0e53 100644 --- a/examples/snippets/platform_right.tikz +++ b/examples/snippets/platform_right.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (-2,0) {platform_right=4}; % change the 4 to desired length \ No newline at end of file diff --git a/examples/snippets/route_clearing_point_backward.tikz b/examples/snippets/route_clearing_point_backward.tikz index 4840824..49dc122 100644 --- a/examples/snippets/route_clearing_point_backward.tikz +++ b/examples/snippets/route_clearing_point_backward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {route_clearing_point_backward}; \ No newline at end of file diff --git a/examples/snippets/route_clearing_point_forward.tikz b/examples/snippets/route_clearing_point_forward.tikz index 31c80bd..356b770 100644 --- a/examples/snippets/route_clearing_point_forward.tikz +++ b/examples/snippets/route_clearing_point_forward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {route_clearing_point_forward}; \ No newline at end of file diff --git a/examples/snippets/route_signal_backward.tikz b/examples/snippets/route_signal_backward.tikz index b2779fa..9893645 100644 --- a/examples/snippets/route_signal_backward.tikz +++ b/examples/snippets/route_signal_backward.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {route_signal_backward=S}; % replace the S with desired speed or remove \ No newline at end of file diff --git a/examples/snippets/route_signal_forward.tikz b/examples/snippets/route_signal_forward.tikz index b5bbe4d..50f2437 100644 --- a/examples/snippets/route_signal_forward.tikz +++ b/examples/snippets/route_signal_forward.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {route_signal_forward=S}; % replace the S with desired speed or remove \ No newline at end of file diff --git a/examples/snippets/short_train.tikz b/examples/snippets/short_train.tikz index 1c256c5..cd29b37 100644 --- a/examples/snippets/short_train.tikz +++ b/examples/snippets/short_train.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\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 diff --git a/examples/snippets/shunt_limit_backward.tikz b/examples/snippets/shunt_limit_backward.tikz index 97c7e54..8a77b7c 100644 --- a/examples/snippets/shunt_limit_backward.tikz +++ b/examples/snippets/shunt_limit_backward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {shunt_limit_backward}; \ No newline at end of file diff --git a/examples/snippets/shunt_limit_forward.tikz b/examples/snippets/shunt_limit_forward.tikz index 8f277a5..3a838b5 100644 --- a/examples/snippets/shunt_limit_forward.tikz +++ b/examples/snippets/shunt_limit_forward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {shunt_limit_forward}; \ No newline at end of file diff --git a/examples/snippets/shunt_signal_backward.tikz b/examples/snippets/shunt_signal_backward.tikz index 39fc826..f74c690 100644 --- a/examples/snippets/shunt_signal_backward.tikz +++ b/examples/snippets/shunt_signal_backward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {shunt_signal_backward}; \ No newline at end of file diff --git a/examples/snippets/shunt_signal_forward.tikz b/examples/snippets/shunt_signal_forward.tikz index ea5c976..3924771 100644 --- a/examples/snippets/shunt_signal_forward.tikz +++ b/examples/snippets/shunt_signal_forward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {shunt_signal_forward}; \ No newline at end of file diff --git a/examples/snippets/side_track.tikz b/examples/snippets/side_track.tikz index 8239084..5bc152e 100644 --- a/examples/snippets/side_track.tikz +++ b/examples/snippets/side_track.tikz @@ -4,4 +4,4 @@ % 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[line width=1pt] (-2.5,0) -- ++(5,0); \ No newline at end of file +\draw[SideTrack] (-2.5,0) -- ++(5,0); \ No newline at end of file diff --git a/examples/snippets/speed_signal_backward.tikz b/examples/snippets/speed_signal_backward.tikz index b57eb83..efdd071 100644 --- a/examples/snippets/speed_signal_backward.tikz +++ b/examples/snippets/speed_signal_backward.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {speed_signal_backward=S}; % replace the S with desired speed or remove \ No newline at end of file diff --git a/examples/snippets/speed_signal_forward.tikz b/examples/snippets/speed_signal_forward.tikz index f710f18..436c689 100644 --- a/examples/snippets/speed_signal_forward.tikz +++ b/examples/snippets/speed_signal_forward.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {speed_signal_forward=S}; % replace the S with desired speed or remove \ No newline at end of file diff --git a/examples/snippets/train.tikz b/examples/snippets/train.tikz index 2aff6d8..85587f6 100644 --- a/examples/snippets/train.tikz +++ b/examples/snippets/train.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\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 diff --git a/examples/snippets/train_berth.tikz b/examples/snippets/train_berth.tikz index 6c88913..6d480cd 100644 --- a/examples/snippets/train_berth.tikz +++ b/examples/snippets/train_berth.tikz @@ -4,7 +4,7 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (-2,0) {train_berth_sign_backward}; \pic at (-2,0) {train_berth_shape}; \pic at ( 2,0) {train_berth_sign_forward}; \ No newline at end of file diff --git a/examples/snippets/train_berth_shape.tikz b/examples/snippets/train_berth_shape.tikz index 2803917..8531fe7 100644 --- a/examples/snippets/train_berth_shape.tikz +++ b/examples/snippets/train_berth_shape.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (-2,0) {train_berth_shape_forward=4}; \pic at (-1,0) {train_berth_shape_backward=3}; \ No newline at end of file diff --git a/examples/snippets/train_berth_shape_bidirectional.tikz b/examples/snippets/train_berth_shape_bidirectional.tikz index 840fcf1..3f2b392 100644 --- a/examples/snippets/train_berth_shape_bidirectional.tikz +++ b/examples/snippets/train_berth_shape_bidirectional.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (-2,0) {train_berth_shape=4}; % change the 4 to desired length \ No newline at end of file diff --git a/examples/snippets/train_berth_sign_backward.tikz b/examples/snippets/train_berth_sign_backward.tikz index 1df89a8..3b18d12 100644 --- a/examples/snippets/train_berth_sign_backward.tikz +++ b/examples/snippets/train_berth_sign_backward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {train_berth_sign_backward}; \ No newline at end of file diff --git a/examples/snippets/train_berth_sign_forward.tikz b/examples/snippets/train_berth_sign_forward.tikz index a592db6..f266e14 100644 --- a/examples/snippets/train_berth_sign_forward.tikz +++ b/examples/snippets/train_berth_sign_forward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {train_berth_sign_forward}; \ No newline at end of file diff --git a/examples/snippets/train_direction_backward.tikz b/examples/snippets/train_direction_backward.tikz new file mode 100644 index 0000000..8d03e03 --- /dev/null +++ b/examples/snippets/train_direction_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_direction_backward}; \ No newline at end of file diff --git a/examples/snippets/train_direction_forward.tikz b/examples/snippets/train_direction_forward.tikz new file mode 100644 index 0000000..ccb6feb --- /dev/null +++ b/examples/snippets/train_direction_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_direction_forward}; \ No newline at end of file diff --git a/examples/snippets/train_drive_automatic.tikz b/examples/snippets/train_drive_automatic.tikz new file mode 100644 index 0000000..5b18fba --- /dev/null +++ b/examples/snippets/train_drive_automatic.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[MainTrack] (-2.5,0) -- ++(5,0); +\pic at (2,0) {train_direction_forward}; % train +\pic at (2,0) {train_automatic_forward}; % triangle \ No newline at end of file diff --git a/examples/snippets/train_drive_human.tikz b/examples/snippets/train_drive_human.tikz new file mode 100644 index 0000000..e33b884 --- /dev/null +++ b/examples/snippets/train_drive_human.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[MainTrack] (-2.5,0) -- ++(5,0); +\pic at (2,0) {train_direction_forward}; % train +\pic at (2,0) {train_human_forward}; % dot \ No newline at end of file diff --git a/examples/snippets/train_moving_backward.tikz b/examples/snippets/train_moving_backward.tikz index 1015e57..197b6b5 100644 --- a/examples/snippets/train_moving_backward.tikz +++ b/examples/snippets/train_moving_backward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (-2,0) {train_moving_backward}; \ No newline at end of file diff --git a/examples/snippets/train_moving_forward.tikz b/examples/snippets/train_moving_forward.tikz index b67dbf5..f8f57c4 100644 --- a/examples/snippets/train_moving_forward.tikz +++ b/examples/snippets/train_moving_forward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (2,0) {train_moving_forward}; \ No newline at end of file diff --git a/examples/snippets/transmitter.tikz b/examples/snippets/transmitter.tikz index 480edb9..f4831c1 100644 --- a/examples/snippets/transmitter.tikz +++ b/examples/snippets/transmitter.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (-1,0) {transmitter_below}; \pic at ( 1,0) {transmitter_above}; \ No newline at end of file diff --git a/examples/snippets/transmitter_backward.tikz b/examples/snippets/transmitter_backward.tikz index cd2d72a..696703d 100644 --- a/examples/snippets/transmitter_backward.tikz +++ b/examples/snippets/transmitter_backward.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (-1,0) {transmitter_below_backward}; \pic at ( 1,0) {transmitter_above_backward}; \ No newline at end of file diff --git a/examples/snippets/transmitter_below_with_signal.tikz b/examples/snippets/transmitter_below_with_signal.tikz index f58b799..9847bcf 100644 --- a/examples/snippets/transmitter_below_with_signal.tikz +++ b/examples/snippets/transmitter_below_with_signal.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {route_signal_forward}; \pic at (0,0) {transmitter_below}; \ No newline at end of file diff --git a/examples/snippets/transmitter_bidirectional.tikz b/examples/snippets/transmitter_bidirectional.tikz index 533ef23..260554c 100644 --- a/examples/snippets/transmitter_bidirectional.tikz +++ b/examples/snippets/transmitter_bidirectional.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (-1,0) {transmitter_below_bidirectional}; \pic at ( 1,0) {transmitter_above_bidirectional}; \ No newline at end of file diff --git a/examples/snippets/transmitter_forward.tikz b/examples/snippets/transmitter_forward.tikz index ad7a7f2..196b182 100644 --- a/examples/snippets/transmitter_forward.tikz +++ b/examples/snippets/transmitter_forward.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (-1,0) {transmitter_below_forward}; \pic at ( 1,0) {transmitter_above_forward}; \ No newline at end of file diff --git a/examples/snippets/turnout_left_backward.tikz b/examples/snippets/turnout_left_backward.tikz index 3f3b23c..3a9253a 100644 --- a/examples/snippets/turnout_left_backward.tikz +++ b/examples/snippets/turnout_left_backward.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++( 5, 0); -\draw[line width=2pt] ( 0,0) -- ++(-1,-1); +\draw[MainTrack] (-2.5,0) -- ++( 5, 0); +\draw[MainTrack] ( 0,0) -- ++(-1,-1); \pic at (0,0) {turnout_left_backward}; \ No newline at end of file diff --git a/examples/snippets/turnout_left_forward.tikz b/examples/snippets/turnout_left_forward.tikz index 5f77403..7cc1fcd 100644 --- a/examples/snippets/turnout_left_forward.tikz +++ b/examples/snippets/turnout_left_forward.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); -\draw[line width=2pt] ( 0,0) -- ++(1,1); +\draw[MainTrack] (-2.5,0) -- ++(5,0); +\draw[MainTrack] ( 0,0) -- ++(1,1); \pic at (0,0) {turnout_left_forward}; \ No newline at end of file diff --git a/examples/snippets/turnout_right_backward.tikz b/examples/snippets/turnout_right_backward.tikz index 67384e1..7579b30 100644 --- a/examples/snippets/turnout_right_backward.tikz +++ b/examples/snippets/turnout_right_backward.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++( 5,0); -\draw[line width=2pt] ( 0,0) -- ++(-1,1); +\draw[MainTrack] (-2.5,0) -- ++( 5,0); +\draw[MainTrack] ( 0,0) -- ++(-1,1); \pic at (0,0) {turnout_right_backward}; \ No newline at end of file diff --git a/examples/snippets/turnout_right_forward.tikz b/examples/snippets/turnout_right_forward.tikz index 72e7ad5..5bdb73d 100644 --- a/examples/snippets/turnout_right_forward.tikz +++ b/examples/snippets/turnout_right_forward.tikz @@ -4,6 +4,6 @@ % 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[line width=2pt] (-2.5,0) -- ++(5, 0); -\draw[line width=2pt] ( 0,0) -- ++(1,-1); +\draw[MainTrack] (-2.5,0) -- ++(5, 0); +\draw[MainTrack] ( 0,0) -- ++(1,-1); \pic at (0,0) {turnout_right_forward}; \ No newline at end of file diff --git a/examples/snippets/turnout_with_fouling_left_backward.tikz b/examples/snippets/turnout_with_fouling_left_backward.tikz index 00563bf..1f40e43 100644 --- a/examples/snippets/turnout_with_fouling_left_backward.tikz +++ b/examples/snippets/turnout_with_fouling_left_backward.tikz @@ -4,7 +4,7 @@ % 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[line width=2pt] (-2.5,0) -- ++( 5, 0); -\draw[line width=2pt] ( 0,0) -- ++(-1,-1); +\draw[MainTrack] (-2.5,0) -- ++( 5, 0); +\draw[MainTrack] ( 0,0) -- ++(-1,-1); \pic at (0,0) {turnout_left_backward}; \pic at (0,0) {fouling_point_left_backward}; \ No newline at end of file diff --git a/examples/snippets/turnout_with_fouling_left_forward.tikz b/examples/snippets/turnout_with_fouling_left_forward.tikz index c500716..e35da2c 100644 --- a/examples/snippets/turnout_with_fouling_left_forward.tikz +++ b/examples/snippets/turnout_with_fouling_left_forward.tikz @@ -4,7 +4,7 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); -\draw[line width=2pt] ( 0,0) -- ++(1,1); +\draw[MainTrack] (-2.5,0) -- ++(5,0); +\draw[MainTrack] ( 0,0) -- ++(1,1); \pic at (0,0) {turnout_left_forward}; \pic at (0,0) {fouling_point_left_forward}; \ No newline at end of file diff --git a/examples/snippets/turnout_with_fouling_right_backward.tikz b/examples/snippets/turnout_with_fouling_right_backward.tikz index 59f6a17..1beeb54 100644 --- a/examples/snippets/turnout_with_fouling_right_backward.tikz +++ b/examples/snippets/turnout_with_fouling_right_backward.tikz @@ -4,7 +4,7 @@ % 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[line width=2pt] (-2.5,0) -- ++( 5,0); -\draw[line width=2pt] ( 0,0) -- ++(-1,1); +\draw[MainTrack] (-2.5,0) -- ++( 5,0); +\draw[MainTrack] ( 0,0) -- ++(-1,1); \pic at (0,0) {turnout_right_backward}; \pic at (0,0) {fouling_point_right_backward}; \ No newline at end of file diff --git a/examples/snippets/turnout_with_fouling_right_forward.tikz b/examples/snippets/turnout_with_fouling_right_forward.tikz index e9f59a1..376e8ca 100644 --- a/examples/snippets/turnout_with_fouling_right_forward.tikz +++ b/examples/snippets/turnout_with_fouling_right_forward.tikz @@ -4,7 +4,7 @@ % 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[line width=2pt] (-2.5,0) -- ++(5, 0); -\draw[line width=2pt] ( 0,0) -- ++(1,-1); +\draw[MainTrack] (-2.5,0) -- ++(5, 0); +\draw[MainTrack] ( 0,0) -- ++(1,-1); \pic at (0,0) {turnout_right_forward}; \pic at (0,0) {fouling_point_right_forward}; \ No newline at end of file diff --git a/examples/snippets/view_point_backward.tikz b/examples/snippets/view_point_backward.tikz index e11dcde..3a41c4a 100644 --- a/examples/snippets/view_point_backward.tikz +++ b/examples/snippets/view_point_backward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {view_point_backward}; \ No newline at end of file diff --git a/examples/snippets/view_point_forward.tikz b/examples/snippets/view_point_forward.tikz index 1b782a2..a7bca53 100644 --- a/examples/snippets/view_point_forward.tikz +++ b/examples/snippets/view_point_forward.tikz @@ -4,5 +4,5 @@ % 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[line width=2pt] (-2.5,0) -- ++(5,0); +\draw[MainTrack] (-2.5,0) -- ++(5,0); \pic at (0,0) {view_point_forward}; \ No newline at end of file diff --git a/examples/station_berg.tex b/examples/station_berg.tex index 4cb967b..230f0d4 100644 --- a/examples/station_berg.tex +++ b/examples/station_berg.tex @@ -25,11 +25,11 @@ \node[left,align=right] at (38,1.3) {to and from\\ Chamstadt}; } { % tracks - \draw[line width=2pt] ( 1.5, 0) -- ++(37,0); - \draw[line width=2pt] (15 , 0) -- ++( 1,1) -- ++(10,0) -- ++(1,-1); - \draw[line width=1pt] (11 ,-1) -- ++( 2,0) -- ++( 1,1); - \draw[line width=1pt] ( 9 , 1) -- ++( 7,0); - \draw[line width=1pt] (14 , 1) -- ++( 1,1) -- ++(10,0); + \draw[MainTrack] ( 1.5, 0) -- ++(37,0); + \draw[MainTrack] (15 , 0) -- ++( 1,1) -- ++(10,0) -- ++(1,-1); + \draw[SideTrack] (11 ,-1) -- ++( 2,0) -- ++( 1,1); + \draw[SideTrack] ( 9 , 1) -- ++( 7,0); + \draw[SideTrack] (14 , 1) -- ++( 1,1) -- ++(10,0); % track numbers \node[fill=white] at (11.7, 1) {12}; \node[fill=white] at (11.7,-1) {10}; diff --git a/examples/station_rebenau.tex b/examples/station_rebenau.tex index f91d5e4..74969bc 100644 --- a/examples/station_rebenau.tex +++ b/examples/station_rebenau.tex @@ -16,207 +16,6 @@ \begin{document} \begin{tikzpicture}[font=\sffamily] - { % stations - \tikzset{every node/.style={base00}}; - \node[right,align=left] at ( 0,2) {to and from\\ Wenden}; - \node[left,align=right] at ( 8,4.0) {Sidings}; - \node at (22.5,6.3) {{\LARGE Rebenau}}; - \node[left,align=right] at (42,2) {to and from\\ Okerbach}; - \node[left,align=right] at (42,5) {to and from\\ Pockelsdorf}; - } - { % tracks - \draw[line width=2pt] ( 0, 0) -- ++(42, 0); % track 1 - \draw[line width=2pt] ( 5, 0) -- ++( 1, 1); - \draw[line width=2pt] ( 0, 1) -- ++( 8, 0) -- ++(2,2) -- ++(26,0) -- ++(2,-2) -- ++(4,0); % track 3 - \draw[line width=1pt] ( 9, 1) -- ++( 6, 0); % track 21 - \draw[line width=1pt] ( 8, 4) -- ++( 7, 0); % track 41 - \draw[line width=1pt] (12, 4) -- ++( 1,-1); - \draw[line width=2pt] (14, 3) -- (15, 4) -- ++(27,0); % track 4 - \draw[line width=2pt] (14, 0) -- ++( 1, 1) -- ++(18, 0); % track 2 - \draw[line width=2pt] (15, 3) -- ++( 2,-2); - \draw[line width=2pt] (16, 4) -- (17, 5) -- (29, 5) -- ++(5,-5); % track 5 - \draw[line width=2pt] (28, 1) -- ++( 1, 1) -- ++(5,0) -- ++ (2,2); - \draw[line width=1pt] (26, 5) -- ++( 1, 1) -- ++(3,0); % track 51 - - % track numbers - \node[fill=white] at ( 9.0, 4) {41}; - \node[fill=white] at (10.0, 1) {21}; - \node[fill=white] at (22.5, 0) { 1}; - \node[fill=white] at (22.5, 1) { 2}; - \node[fill=white] at (22.5, 3) { 3}; - \node[fill=white] at (22.5, 4) { 4}; - \node[fill=white] at (22.5, 5) { 5}; - \node[fill=white] at (29.0, 6) {51}; - % % bufferstops - \pic at ( 9, 1) {bufferstop_backward}; - \pic at (30, 6) {bufferstop_forward}; - % turnouts - \pic at ( 5,0) {turnout_left_forward}; - \node at ( 5,-0.2) {\footnotesize W1}; - % \pic at ( 5,0) {fouling_point_left_forward}; - \pic at ( 6,1) {turnout_left_backward}; - \node at ( 6,1.2) {\footnotesize W2}; - % \pic at ( 6,1) {fouling_point_left_backward}; - \pic at (11,4) {derailer_left_forward}; - \node[left,align=right] at (11.1,4.2) {\footnotesize Gs41}; - \pic at (12,4) {turnout_right_forward}; - \node at (12,4.2) {\footnotesize W3}; - % \pic at (12,4) {fouling_point_right_forward}; - \pic at (13,3) {turnout_right_backward}; - \node at (13,2.8) {\footnotesize W4}; - % \pic at (13,3) {fouling_point_right_backward}; - \pic at (14,3) {turnout_left_forward}; - \node at (14,2.8) {\footnotesize W5}; - % \pic at (14,3) {fouling_point_left_forward}; - \pic at (15,4) {turnout_left_backward}; - \node at (15,4.2) {\footnotesize W6}; - % \pic at (15,4) {fouling_point_left_backward}; - \pic at (14,0) {turnout_left_forward}; - \node at (14,-0.2) {\footnotesize W10}; - % \pic at (14.0,0) {fouling_point_left_forward}; - \pic at (15,1) {turnout_left_backward}; - \node at (15,1.2) {\footnotesize W11}; - % \pic at (15,1) {fouling_point_left_backward}; - \pic at (14,1) {derailer_left_forward}; - \node[left,align=right] at (14.1,1.2) {\footnotesize Gs21}; - \pic at (15,3) {turnout_right_forward}; - \node at (15,3.2) {\footnotesize W8}; - % \pic at (15,3) {fouling_point_right_forward}; - \pic at (16,4) {turnout_left_forward}; - \node at (16,3.8) {\footnotesize W7}; - % \pic at (16,4) {fouling_point_left_forward}; - \pic at (17,1) {turnout_right_backward}; - \node at (17,0.8) {\footnotesize W9}; - % \pic at (17,1) {fouling_point_right_backward}; - - \pic at (28,1) {turnout_left_forward}; - \node at (28,0.8) {\footnotesize W15}; - % \pic at (28,1) {fouling_point_left_forward}; - \pic at (26,5) {turnout_left_forward}; - \node at (26,4.8) {\footnotesize W12}; - % \pic at (28,5) {fouling_point_right_forward}; - \pic [rotate=45] at (26.7,5.7) {derailer_right_backward}; - \node[right,align=left] at (26.8,5.6) {\footnotesize Gs51}; - \pic at (30,4) {turnout_right_forward}; - \pic at (30,4) {turnout_right_backward}; - \pic at (30,4) {slip_right_forward}; - \pic at (30,4) {slip_right_backward}; - \node[left,align=right] at (29.7,4.2) {\footnotesize W13ab}; - \node[right,align=left] at (30.3,3.8) {\footnotesize W13cd}; - % \pic at (30,4) {fouling_point_right_backward}; - % \pic at (30,4) {fouling_point_right_forward}; - \pic at (31,3) {turnout_right_forward}; - \pic at (31,3) {turnout_right_backward}; - \pic at (31,3) {slip_right_forward}; - \pic at (31,3) {slip_right_backward}; - \node[left,align=right] at (30.7,3.2) {\footnotesize W14ab}; - \node[right,align=left] at (31.3,2.8) {\footnotesize W14cd}; - % \pic at (31,3) {fouling_point_right_backward}; - % \pic at (31,3) {fouling_point_right_forward}; - \pic at (32,2) {turnout_right_forward=none}; - \pic at (32,2) {turnout_right_backward=none}; - \node[right,align=left] at (31.9,2.2) {\footnotesize K16}; - % \pic at (32,2) {fouling_point_right_backward}; - % \pic at (32,2) {fouling_point_right_forward}; - \pic at (33,1) {turnout_right_backward}; - \node[right,align=left] at (32.9,1.2) {\footnotesize W17}; - % \pic at (33,1) {fouling_point_right_backward}; - \pic at (34,0) {turnout_right_backward}; - \node at (34,-0.2) {\footnotesize W18}; - % \pic at (34,0) {fouling_point_right_backward}; - \pic at (35,3) {turnout_left_forward}; - \pic at (35,3) {turnout_left_backward}; - \pic at (35,3) {slip_left_forward}; - \pic at (35,3) {slip_left_backward}; - \node[left,align=right] at (34.7,2.8) {\footnotesize W19ab}; - \node[right,align=left] at (35.3,3.2) {\footnotesize W19cd}; - % \pic at (35,3) {fouling_point_left_backward}; - % \pic at (35,3) {fouling_point_left_forward}; - \pic at (36,4) {turnout_left_backward}; - \node at (36,4.2) {\footnotesize W20}; - % \pic at (36,4) {fouling_point_left_backward}; - - % % platforms - \pic at (19.5,0) {platform_right=6}; - \pic at (19.5,1) {platform_left=6}; - \pic at (19.5,3) {platform_right=6}; - } - { % signals - \pic at ( 1,0) {route_signal_forward}; - \node[left] at (1,-0.4) {A}; - \pic at ( 1,1) {route_signal_forward}; - \node[left] at (1, 0.6) {AA}; - \pic at ( 3,0) {shunt_limit_backward}; - \pic at ( 4,0) {shunt_signal_forward}; - \node[left] at ( 4,-0.4) {W1X}; - \pic at ( 7,1) {shunt_signal_backward}; - \node[right] at ( 7, 1.4) {W2Y}; - \pic at ( 7,0) {shunt_signal_backward}; - \node[right] at ( 7, 0.4) {W1Y}; - \pic at (11,3) {shunt_signal_forward}; - \node[left] at (11, 2.6) {W4X}; - \pic at (10,4) {shunt_signal_forward}; - \node[left] at (10, 3.6) {41X}; - \pic at (13,0) {shunt_signal_forward}; - \node[left] at (13,-0.4) {W10X}; - \pic at (13,1) {shunt_signal_forward}; - \node[left] at (13, 0.6) {21X}; - \pic at (18.5,0) {route_signal_backward}; - \node[right] at (18.5, 0.4) {P1}; - \pic at (18.5,1) {route_signal_backward}; - \node[right] at (18.5, 1.4) {P2}; - \pic at (18.5,3) {route_signal_backward}; - \node[right] at (18.5, 3.4) {P3}; - \pic at (18.5,4) {route_signal_backward}; - \node[right] at (18.5, 4.4) {P4}; - \pic at (18.5,5) {route_signal_backward}; - \node[right] at (18.5, 5.4) {P5}; - - \pic at (24.5,5) {route_signal_forward}; - \node[left] at (24.5, 4.6) {N5}; - \pic at (26.5,1) {route_signal_forward}; - \node[left] at (26.5, 0.6) {N2}; - \pic at (26.5,3) {route_signal_forward}; - \node[left] at (26.5, 2.6) {N3}; - \pic at (26.5,4) {route_signal_forward}; - \node[left] at (26.5, 3.6) {N4}; - \pic at (27.5,6) {shunt_signal_backward}; - \node[right] at ( 27.5, 6.4) {51Y}; - \pic at (30.0,0) {route_signal_forward}; - \node[left] at (30.0,-0.4) {N1}; - \pic at (35.0,0) {shunt_signal_backward}; - \node[right] at ( 35, 0.4) {W18Y}; - \pic[rotate=-45] at (36.8,2.2) {shunt_signal_backward}; - \node[right,rotate=-45] at ( 37.0, 2.5) {W19Y}; - \pic at (37.0,4) {shunt_signal_backward}; - \node[right] at ( 37, 4.4) {W20Y}; - \pic at (39.0,1) {shunt_limit_forward}; - \pic at (39.0,4) {shunt_limit_forward}; - \pic at (41.0,0) {route_signal_backward}; - \node[right] at (41.0, 0.4) {FF}; - \pic at (41.0,1) {route_signal_backward}; - \node[right] at (41.0, 1.4) {F}; - \pic at (41.0,4) {route_signal_backward}; - \node[right] at (41.0, 4.4) {G}; - } - { % hectometer posts - \tikzset{every node/.style={base00,rotate=-90},every path/.style={base00,dashed}}; - \draw (01.0,-0.85) -- ++(0,-0.7) node [right,align= left] {15.000}; - \draw (14.5,-0.85) -- ++(0,-0.7) node [right,align= left] {15.800}; - \draw (14.5, 4.35) -- ++(0, 1.2) node [ left,align=right] {15.800}; - \draw (15.8,-0.35) -- ++(0,-1.2) node [right,align= left] {15.900}; - \draw (15.8, 4.35) -- ++(0, 1.2) node [ left,align=right] {15.900}; - \draw (18.5,-0.35) -- ++(0,-1.2) node [right,align= left] {16.000}; - \draw (22.5,-0.85) -- ++(0,-0.7) node [right,align= left] {16.300}; - \draw (24.5, 5.35) -- ++(0, 0.7) node [ left,align=right] {16.400}; - \draw (26.5,-0.35) -- ++(0,-1.2) node [right,align= left] {16.500}; - \draw (30.0,-0.85) -- ++(0,-0.7) node [right,align= left] {16.600}; - \draw (30.0, 6.35) -- ++(0, 0.3) node [ left,align=right] {16.600}; - \draw (30.0, 4.75) -- ++(0, 0.7); - \draw (31.5,-0.85) -- ++(0,-0.7) node [right,align= left] {16.700}; - \draw (31.5, 4.35) -- ++(0, 0.7) node [ left,align=right] {16.700}; - \draw (33.3,-0.35) -- ++(0,-1.2) node [right,align= left] {16.800}; - \draw (41.0,-0.35) -- ++(0,-1.2) node [right,align= left] {17.200}; - } + \input{station_rebenau.tikz} \end{tikzpicture} \end{document} \ No newline at end of file diff --git a/overview.pdf b/overview.pdf index ee10844..36a71b8 100644 Binary files a/overview.pdf and b/overview.pdf differ diff --git a/overview.tex b/overview.tex index a40bbe3..fd5d355 100644 --- a/overview.tex +++ b/overview.tex @@ -5,7 +5,8 @@ \documentclass[a4paper,landscape]{article} -\usepackage{fullpage} +\usepackage[margin=0pt]{geometry} +\pagestyle{empty} \usepackage{longtable} \usepackage{tikz} \usepackage{listings} @@ -47,11 +48,11 @@ No. & Name & Symbol & Code & File \\ \endhead \hline - \No & main track & \symbol{main_track.tikz} & \code{main_track.tikz} & \emph{none} \\ + \No & main track & \symbol{main_track.tikz} & \code{main_track.tikz} & \texttt{topology.tikz} \\ \hline - \No & main line (double track) & \symbol{main_line.tikz} & \code{main_line.tikz} & \emph{none} \\ + \No & main line (double track) & \symbol{main_line.tikz} & \code{main_line.tikz} & \texttt{topology.tikz} \\ \hline - \No & side track & \symbol{side_track.tikz} & \code{side_track.tikz} & \emph{none} \\ + \No & side track & \symbol{side_track.tikz} & \code{side_track.tikz} & \texttt{topology.tikz} \\ \hline \No & turnout left (forward) & \symbol{turnout_left_forward.tikz} & \code{turnout_left_forward.tikz} & \texttt{topology.tikz} \\ \hline @@ -93,17 +94,27 @@ \hline \No & bufferstop (backward) & \symbol{bufferstop_backward.tikz} & \code{bufferstop_backward.tikz} & \texttt{topology.tikz} \\ \hline - \No & train (not moving) & \symbol{train.tikz} & \code{train.tikz} & \texttt{vehicles.tikz} \\ + \No & train (parked) & \symbol{train.tikz} & \code{train.tikz} & \texttt{vehicles.tikz} \\ \hline - \No & short train (not moving) & \symbol{short_train.tikz} & \code{short_train.tikz} & \texttt{vehicles.tikz} \\ + \No & short train (parked) & \symbol{short_train.tikz} & \code{short_train.tikz} & \texttt{vehicles.tikz} \\ + \hline + \No & train (direction forward) & \symbol{train_direction_forward.tikz} & \code{train_direction_forward.tikz} & \texttt{vehicles.tikz} \\ + \hline + \No & train (direction backward) & \symbol{train_direction_backward.tikz} & \code{train_direction_backward.tikz} & \texttt{vehicles.tikz} \\ + \hline + \No & ghost train (direction forward) & \symbol{ghost_train_direction_forward.tikz} & \code{ghost_train_direction_forward.tikz} & \texttt{vehicles.tikz} \\ + \hline + \No & ghost train (direction backward)& \symbol{ghost_train_direction_backward.tikz} & \code{ghost_train_direction_backward.tikz} & \texttt{vehicles.tikz} \\ \hline \No & train moving (forward) & \symbol{train_moving_forward.tikz} & \code{train_moving_forward.tikz} & \texttt{vehicles.tikz} \\ \hline \No & train moving (backward) & \symbol{train_moving_backward.tikz} & \code{train_moving_backward.tikz} & \texttt{vehicles.tikz} \\ \hline - \No & ghost train moving (forward) & \symbol{ghost_train_moving_forward.tikz} & \code{ghost_train_moving_forward.tikz} & \texttt{vehicles.tikz} \\ + \No & \parbox[c]{4cm}{train drives automatic\\(direction forward)} + & \symbol{train_drive_automatic.tikz} & \code{train_drive_automatic.tikz} & \texttt{vehicles.tikz} \\ \hline - \No & ghost train moving (backward) & \symbol{ghost_train_moving_backward.tikz} & \code{ghost_train_moving_backward.tikz} & \texttt{vehicles.tikz} \\ + \No & \parbox[c]{4cm}{train drives by human\\(direction forward)} + & \symbol{train_drive_human.tikz} & \code{train_drive_human.tikz} & \texttt{vehicles.tikz} \\ \hline \No & train berth sign (forward) & \symbol{train_berth_sign_forward.tikz} & \code{train_berth_sign_forward.tikz} & \texttt{trafficControl.tikz} \\ \hline diff --git a/src/layoutSymbols_DE.tikz b/src/layoutSymbols_DE.tikz index 5f0d3ba..f1f104a 100644 --- a/src/layoutSymbols_DE.tikz +++ b/src/layoutSymbols_DE.tikz @@ -55,13 +55,25 @@ }; } \tikzset{ - route_forward/.pic={ - \fill (0,-0.15) -- ++(0,0.3) -- ++ (0.35,-0.15) -- cycle; + route_passanger_forward/.pic={ + \fill (-0.175,-0.15) -- ++(0,0.3) -- ++ (0.35,-0.15) -- cycle; }; } \tikzset{ - route_backward/.pic={ - \fill (0,-0.15) -- ++(0,0.3) -- ++ (-0.35,-0.15) -- cycle; + route_passanger_backward/.pic={ + \fill (0.175,-0.15) -- ++(0,0.3) -- ++ (-0.35,-0.15) -- cycle; + }; +} +\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; + }; +} +\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{ @@ -108,3 +120,9 @@ \path[draw,->,>=latex,line width=1pt] (-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 + }; +} diff --git a/src/timeDistanceDiagram_test.tikz b/src/timeDistanceDiagram_test.tikz new file mode 100644 index 0000000..d1a7c0f --- /dev/null +++ b/src/timeDistanceDiagram_test.tikz @@ -0,0 +1,59 @@ +%!TEX TS-program = pdflatexmk +%!TEX root = timeDistanceDiagram_test.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. + +% infrastructure +\def\BkOne{7.5} +\def\BkTwo{12} +\def\BkTre{16.5} +% +% space-time-grid +% visual and layout +\def\Blocks{\BkOne,\BkTwo,\BkTre} +\def\timetableHeight{14.5} +\setcounter{stationNum}{0} +\setcounter{blockNum}{9} +% infrastructure +\def\SightingDistance{2} +\def\ApproachDistance{3} +\def\ClearingDistance{2} +\def\InterlockingTime{0.5} +\def\Latency{0.5} + +\begin{scope}[shift={(0,0)}] + % + \toggletrue{DEBUG} + \toggletrue{blockingTimeParts} + % \togglefalse{blockingTimeFill} + \def\Segments{\BkOne/\BkTwo/\mCoast,\BkTwo/\BkTre/\mCoast} + \pic at (0,-0.0) {train_path}; + \def\Segments{\BkOne/\BkTwo/\mAcc,\BkTwo/\BkTre/\mDec} + \pic at (0,-6.5) {train_path}; + % + \foreach \BKx in \Blocks { + \node [above=0.25cm] at (\BKx, 0) {\tiny \BlockNum}; + \draw (\BKx, 0) -- ++(0,-\timetableHeight); + \pic [above=0.2cm] at (\BKx, 0) {block}; + } + % +\end{scope} + +\begin{scope}[shift={(12,0)}] + % + \toggletrue{DEBUG} + \toggletrue{blockingTimeParts} + % \togglefalse{blockingTimeFill} + \def\Segments{\BkTre/\BkTwo/\mCoast, \BkTwo/\BkOne/\mCoast} + \pic at (0, -6.0) {train_path}; + \def\Segments{\BkTre/\BkTwo/\mAcc,\BkTwo/\BkOne/\mDec} + \pic at (0,-12.5) {train_path}; + % + \foreach \BKx in \Blocks { + \node [above=0.25cm] at (\BKx, 0) {\tiny \BlockNum}; + \draw (\BKx, 0) -- ++(0,-\timetableHeight); + \pic [above=0.2cm] at (\BKx, 0) {block}; + } + % +\end{scope} \ No newline at end of file diff --git a/src/topology.tikz b/src/topology.tikz index 91c6376..dc6ff6b 100644 --- a/src/topology.tikz +++ b/src/topology.tikz @@ -4,6 +4,9 @@ % 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=1pt}} + \tikzset{ pics/turnout_left_forward/.style args={#1}{ code={ diff --git a/src/vehicles.tikz b/src/vehicles.tikz index 6d073ae..c01d5d5 100644 --- a/src/vehicles.tikz +++ b/src/vehicles.tikz @@ -17,6 +17,8 @@ pics/train_moving_forward/.style args={#1}{ code={ \path[draw, line width=1pt, fill=white] (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 % \node at (-2,0) {\emph{#2}}; %label of train } }, @@ -26,26 +28,66 @@ pics/train_moving_backward/.style args={#1}{ code={ \path[draw, line width=1pt, fill=white] (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 % \node at (-2,0) {\emph{#2}}; %label of train } }, pics/train_moving_backward/.default=4, } \tikzset{ - pics/ghost_train_moving_forward/.style args={#1}{ + pics/train_direction_forward/.style args={#1}{ + code={ + \path[draw, line width=1pt, fill=white] (0,0) -- +(-0.3,0.3) -- +(-#1,0.3) -- +(-#1,-0.3) -- +(-0.3,-0.3) -- cycle; % train shape + % \node at (-2,0) {\emph{#2}}; %label of train + } + }, + pics/train_direction_forward/.default=4, +} +\tikzset{ + pics/train_direction_backward/.style args={#1}{ + code={ + \path[draw, line width=1pt, fill=white] (0,0) -- +(0.3,-0.3) -- +(#1,-0.3) -- +(#1,0.3) -- +(0.3,0.3) -- cycle; % train shape + % \node at (-2,0) {\emph{#2}}; %label of train + } + }, + pics/train_direction_backward/.default=4, +} +\tikzset{ + pics/ghost_train_direction_forward/.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 % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/ghost_train_moving_forward/.default=4, + pics/ghost_train_direction_forward/.default=4, } \tikzset{ - pics/ghost_train_moving_backward/.style args={#1}{ + 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 % \node at (-2,0) {\emph{#2}}; %label of train } }, - pics/ghost_train_moving_backward/.default=4, + pics/ghost_train_direction_backward/.default=4, +} +\tikzset{ + train_automatic_forward/.pic={ + \path[draw, fill=black] (-0.15,0) -- ++(-0.15,0.15) -- ++(0,-0.3) -- cycle; % triangle + }; +} +\tikzset{ + train_automatic_backward/.pic={ + \path[draw, fill=black] (0.15,0) -- ++(0.15,0.15) -- ++(0,-0.3) -- cycle; % triangle + }; +} +\tikzset{ + train_human_forward/.pic={ + \path[draw, fill=black] (-0.4,0) circle (0.15); % dot + }; +} +\tikzset{ + train_human_backward/.pic={ + \path[draw, fill=black] (0.4,0) circle (0.15); % dot + }; } \ No newline at end of file