summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples')
-rw-r--r--graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/minimal_working_example.pdfbin0 -> 1161 bytes
-rw-r--r--graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/minimal_working_example.pngbin0 -> 3776 bytes
-rw-r--r--graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/minimal_working_example.tex19
-rw-r--r--graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/station_berg.tex4
-rw-r--r--graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/station_chamstadt.tex4
5 files changed, 23 insertions, 4 deletions
diff --git a/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/minimal_working_example.pdf b/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/minimal_working_example.pdf
new file mode 100644
index 0000000000..fd1d562edf
--- /dev/null
+++ b/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/minimal_working_example.pdf
Binary files differ
diff --git a/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/minimal_working_example.png b/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/minimal_working_example.png
new file mode 100644
index 0000000000..68c6374939
--- /dev/null
+++ b/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/minimal_working_example.png
Binary files differ
diff --git a/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/minimal_working_example.tex b/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/minimal_working_example.tex
new file mode 100644
index 0000000000..bd542a3005
--- /dev/null
+++ b/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/minimal_working_example.tex
@@ -0,0 +1,19 @@
+\documentclass{standalone} % LaTeX
+\usepackage{tikz-trackschematic} % loading the library
+
+\begin{document}
+ \begin{tikzpicture}
+
+ % TikZ command: specify coordinates
+ \coordinate (A) at (0,0);
+ \coordinate (B) at (6,0);
+ \coordinate (T) at (5,0);
+
+ % draw a track
+ \maintrack (A) -- (B);
+
+ % place a train on the track
+ \train[forward] at (T) label ();
+
+ \end{tikzpicture}
+\end{document}
diff --git a/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/station_berg.tex b/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/station_berg.tex
index dbb7b333b2..f6d00d85ee 100644
--- a/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/station_berg.tex
+++ b/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/station_berg.tex
@@ -1,10 +1,10 @@
%!TEX TS-program = pdflatexmk
-% Copyright (c) 2018 - 2021, Martin Scheidt (ISC license)
+% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\documentclass[tikz,border=2]{standalone}
-\usetikzlibrary{trackschematic}
+\usepackage{tikz-trackschematic} % loading the library
\begin{document}
\begin{tikzpicture}[font=\sffamily]
diff --git a/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/station_chamstadt.tex b/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/station_chamstadt.tex
index 11b3a1fb92..66a020bf7b 100644
--- a/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/station_chamstadt.tex
+++ b/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic-examples/station_chamstadt.tex
@@ -1,10 +1,10 @@
%!TEX TS-program = pdflatexmk
-% Copyright (c) 2018 - 2021, Martin Scheidt (ISC license)
+% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\documentclass[tikz,border=2]{standalone}
-\usetikzlibrary{trackschematic}
+\usepackage{tikz-trackschematic} % loading the library
\begin{document}
\begin{tikzpicture}[font=\sffamily]