From 28f7c5f02bfba22a797cce5b0e0772fddfb3cb7b Mon Sep 17 00:00:00 2001 From: Martin Scheidt Date: Thu, 9 Dec 2021 09:58:32 +0100 Subject: [PATCH] added Overleaf and corrected examples --- README.md | 2 ++ doc/examples/minimal_working_example.pdf | Bin 0 -> 1161 bytes doc/examples/minimal_working_example.tex | 19 +++++++++++++++++++ doc/examples/station_berg.tex | 2 +- doc/examples/station_chamstadt.tex | 2 +- 5 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 doc/examples/minimal_working_example.pdf create mode 100644 doc/examples/minimal_working_example.tex 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 0000000000000000000000000000000000000000..fd1d562edf58acf8369acd994c23ae578af48afb GIT binary patch literal 1161 zcmY!laBR8|4K6bU1BLvgEG`=xE`6WWy!4U`1w%7S1qk5McgxHvNi9;) zcgsmENp(q0&QD3@va{nVE-6Y)%;l=MHFcsb-ys8@*6(v3#WI{Otedq)XRe@oLPMjH zVPUPzWigeg(5aKAKY7{xcag!mgfD&OVe3x?ER8bOGUV24u6F8_YqMMy;C+bu?6tyQ z!O454O-PZM9Cp=m#qF2N3Qnfod3f&f(yd9=Uxl|koqlQ7?`b#N9h9UvT7}&8r>R!G za(ZHs`ZK7VGrDwXK*!G0)@L@Ju8B($`~7c*`HsbVOXT=3ukEj8p0qjMfh#pH1?pxX z3*=uz10;_J6y>LsCIkJcQIL`rk{SUF9}@#TBV$c2eP^IYOY(s-Kw%g+Ge6G-7#s>3 zE>=bcMuvt)29^evrl!Wm+6IQ|1_tUtb-wv2gp`C7B^DHF{e0{OFtmQHA2s= zG$$u1F)t6~mXM6hVg(?AxJgGLEVZZ@Xtjc|o}r1Msil#bsj;q+o*B%sU?(d0WR|5W z09|FIpORXpsgPZeSdvkkny63))oi9`tY-q21H~gWFwBv{BBZh)RYBiBDJ!@nmrLJI z!5owbii%4Vj4k0Q#K_oy=oI4Hf6(u+fq={Ve_cPDZW-oI@(Sh8UC7?jB9s@%rxv@& zBUI*QbjZJXrOZ=Kd&#}uGc)#JLT70oPh?_Zs#t|XSk#ma*AjSVM{m8U@%Njl;Fr~} zJzwsXpXt_j;%K~PY~Yva7Xn3Y_*N{u{GjY#*Rc+T7pu2 zzj0pe3iay~O(yh<9P>$>61DyLG?4{g1o~tHVvP zBrijZAdLu0P242AFf@wg(htt8N(HjG^uraR4Hb+O41r=n`S~RZmO$-6 zAk}I43gDy);xd8CtrSo7*W6RsysH zn$=BApz)|cIIHuX*vZSFAaKOt{l`|7D<1!48=5ETFt3kTx@=v?22a^H3upeg^_1E2 d0pmN&;3zIhEGnre0tSGExdE4|s;j>n7XUp8rE35H literal 0 HcmV?d00001 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]