tikz-trackschematic/doc/examples/minimal_working_example.tex

16 lines
320 B
TeX
Raw Normal View History

2022-02-22 23:13:40 +01:00
\documentclass{standalone}
2021-12-09 09:58:32 +01:00
2022-02-22 23:13:40 +01:00
% loading the library
\usepackage{tikz-trackschematic}
2021-12-09 09:58:32 +01:00
2022-02-22 23:13:40 +01:00
\begin{document} % LaTeX
\begin{tikzpicture} % TikZ
2021-12-09 09:58:32 +01:00
2022-02-22 23:13:40 +01:00
% draw a track with (x,y) coordinates
\maintrack (0,0) -- (6,0);
2021-12-09 09:58:32 +01:00
% place a train on the track
2022-03-22 19:09:33 +01:00
\train[forward] at (5,0) label ();
2021-12-09 09:58:32 +01:00
\end{tikzpicture}
2022-02-22 23:13:40 +01:00
\end{document}