added Overleaf and corrected examples

master
Martin Scheidt 2021-12-09 09:58:32 +01:00
parent ee87caa44f
commit 28f7c5f02b
5 changed files with 23 additions and 2 deletions

View File

@ -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

Binary file not shown.

View File

@ -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}

View File

@ -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]

View File

@ -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]