diff --git a/README.md b/README.md index 9bcd0c2..38899d2 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,8 @@ results in: ![train on a track](https://raw.githubusercontent.com/railtoolkit/tikz-trackschematic/master/doc/symbology/symbols_png/train_direction_forward.png "train on a track") +The library can also be used in [Overleaf](https://www.overleaf.com/read/crrxfcdzbhbd). + ------------ # Symbology and meaning diff --git a/doc/examples/minimal_working_example.pdf b/doc/examples/minimal_working_example.pdf new file mode 100644 index 0000000..fd1d562 Binary files /dev/null and b/doc/examples/minimal_working_example.pdf differ diff --git a/doc/examples/minimal_working_example.tex b/doc/examples/minimal_working_example.tex new file mode 100644 index 0000000..bd542a3 --- /dev/null +++ b/doc/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/doc/examples/station_berg.tex b/doc/examples/station_berg.tex index 435c194..5a30541 100644 --- a/doc/examples/station_berg.tex +++ b/doc/examples/station_berg.tex @@ -4,7 +4,7 @@ % Permission to use, copy, modify, and/or distribute this file 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/doc/examples/station_chamstadt.tex b/doc/examples/station_chamstadt.tex index 7ae5557..80193fb 100644 --- a/doc/examples/station_chamstadt.tex +++ b/doc/examples/station_chamstadt.tex @@ -4,7 +4,7 @@ % Permission to use, copy, modify, and/or distribute this file 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]