Skip to content

Commit

Permalink
first commit of basic conept for a railway topology library in tikz
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Scheidt authored and Martin Scheidt committed Sep 14, 2018
1 parent 59bf596 commit 47037c6
Show file tree
Hide file tree
Showing 77 changed files with 1,811 additions and 28 deletions.
33 changes: 32 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ acs-*.bib
# knitr
*-concordance.tex
# TODO Comment the next line if you want to keep your tikz graphics files
*.tikz
*-tikzDictionary

# listings
Expand Down Expand Up @@ -240,3 +239,35 @@ TSWLatexianTemp*

# generated if using elsarticle.cls
*.spl

# LaTeXing & Sublime Text
Output

## -- macOS ignore
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
30 changes: 4 additions & 26 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,29 +1,7 @@
BSD 3-Clause License
ISC License

Copyright (c) 2018, railtoolkit
All rights reserved.
Copyright (c) 2018, Martin Scheidt \<m.scheidt@tu-bs.de\>

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
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.

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# tikz-trackschematic
tikz-trackschematic
======

Version 0.1
------

Basic concept of a library with railway topology symbols and some examples.

Roadmap
------

* encapsulation of symbols in package for tex infrastructure
* provide option for internationalziation (i18n)
* write usefull documantion
* re-think syntax
8 changes: 8 additions & 0 deletions examples/snippets/block_clearing_point_backward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {block_clearing_point_backward};
8 changes: 8 additions & 0 deletions examples/snippets/block_clearing_point_forward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {block_clearing_point_forward};
8 changes: 8 additions & 0 deletions examples/snippets/block_end_marker_backward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {block_end_marker_backward};
8 changes: 8 additions & 0 deletions examples/snippets/block_end_marker_forward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {block_end_marker_forward};
9 changes: 9 additions & 0 deletions examples/snippets/block_signal_backward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {block_signal_backward=S};
% replace the S with desired speed or remove
9 changes: 9 additions & 0 deletions examples/snippets/block_signal_forward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {block_signal_forward=S};
% replace the S with desired speed or remove
9 changes: 9 additions & 0 deletions examples/snippets/bridge.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (-2,0) {bridge_left=4};
\pic at (-2,0) {bridge_right=4};
11 changes: 11 additions & 0 deletions examples/snippets/bridge_track_beneath.tikz
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
%!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[line width=2pt] (-1,-1) -- ++(2,2);
\fill[white] (-1,-0.4) rectangle (1,0.4);
\draw[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (-1,0) {bridge_left=3};
\pic at (-2,0) {bridge_right=3};
8 changes: 8 additions & 0 deletions examples/snippets/bufferstop_backward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (0,0) -- ++(2.5,0);
\pic at (0,0) {bufferstop_backward};
8 changes: 8 additions & 0 deletions examples/snippets/bufferstop_forward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(2.5,0);
\pic at (0,0) {bufferstop_forward};
8 changes: 8 additions & 0 deletions examples/snippets/clearing_point.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {clearing_point};
8 changes: 8 additions & 0 deletions examples/snippets/derailer_left_backward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=1pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {derailer_left_backward};
8 changes: 8 additions & 0 deletions examples/snippets/derailer_left_forward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=1pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {derailer_left_forward};
8 changes: 8 additions & 0 deletions examples/snippets/derailer_right_backward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=1pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {derailer_right_backward};
8 changes: 8 additions & 0 deletions examples/snippets/derailer_right_forward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=1pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {derailer_right_forward};
10 changes: 10 additions & 0 deletions examples/snippets/diamond_crossing_left.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5, 0) -- ++(5,0);
\draw[line width=2pt] (-1 ,-1) -- ++(2,2);
\pic at (0,0) {turnout_left_forward=none};
\pic at (0,0) {turnout_left_backward=none};
10 changes: 10 additions & 0 deletions examples/snippets/diamond_crossing_right.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5, 0);
\draw[line width=2pt] (-1 ,1) -- ++(2,-2);
\pic at (0,0) {turnout_right_forward=none};
\pic at (0,0) {turnout_right_backward=none};
8 changes: 8 additions & 0 deletions examples/snippets/distant_signal_backward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {distant_signal_backward};
8 changes: 8 additions & 0 deletions examples/snippets/distant_signal_forward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {distant_signal_forward};
9 changes: 9 additions & 0 deletions examples/snippets/distant_speed_signal_backward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {distant_signal_backward=S};
% replace the S with desired speed or remove
9 changes: 9 additions & 0 deletions examples/snippets/distant_speed_signal_forward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (0,0) {distant_signal_forward=S};
% replace the S with desired speed or remove
12 changes: 12 additions & 0 deletions examples/snippets/double-slip_turnout_left.tikz
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
%!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[line width=2pt] (-2.5, 0) -- ++(5,0);
\draw[line width=2pt] (-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};
\pic at (0,0) {slip_left_backward};
12 changes: 12 additions & 0 deletions examples/snippets/double-slip_turnout_right.tikz
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
%!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[line width=2pt] (-2.5,0) -- ++(5, 0);
\draw[line width=2pt] (-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};
\pic at (0,0) {slip_right_backward};
8 changes: 8 additions & 0 deletions examples/snippets/ghost_train_moving_backward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (-2,0) {ghost_train_moving_backward};
8 changes: 8 additions & 0 deletions examples/snippets/ghost_train_moving_forward.tikz
Original file line number Diff line number Diff line change
@@ -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[line width=2pt] (-2.5,0) -- ++(5,0);
\pic at (2,0) {ghost_train_moving_forward};
11 changes: 11 additions & 0 deletions examples/snippets/level_crossing_double.tikz
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
%!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[line width=2pt] (-2.5,-0.5) -- ++(5,0);
\draw[line width=2pt] (-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};
13 changes: 13 additions & 0 deletions examples/snippets/level_crossing_double_full_closure.tikz
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
%!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[line width=2pt] (-2.5,-0.5) -- ++(5,0);
\draw[line width=2pt] (-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};
\pic at (0,-0.5) {level_crossing_barrier_right};
\pic at (0,-1.5) {level_crossing_barrier_left};

0 comments on commit 47037c6

Please sign in to comment.