| 1 |
%!TEX TS-program = pdflatexmk |
| 2 |
%!TEX root = ../snippets.tex |
| 3 |
|
| 4 |
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license) |
| 5 |
% 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. |
| 6 |
|
| 7 |
\coordinate (A) at (0,0); |
| 8 |
\coordinate (X1) at (3,0); |
| 9 |
\coordinate (X2) at (3.5,0); |
| 10 |
\coordinate (B) at (6,0); |
| 11 |
|
| 12 |
\coordinate (hb) at (0,-2); |
| 13 |
|
| 14 |
\maintrack (A) -- (B); |
| 15 |
|
| 16 |
\tikzset{hectometer base={(hb)},orientation=right} |
| 17 |
\hectometer[] at (A) mileage (0.000); |
| 18 |
\hectometer[] at (X1) mileage (4.000); |
| 19 |
\hectometer[shift label={(0.3,0)}] at (X2) mileage (4.500); |
| 20 |
\hectometer[] at (B) mileage (6.000); |