tikz-trackschematic/doc/snippets/individual_balises_mixed.tikz

27 lines
705 B
Plaintext

%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% 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.
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (T1) at (2,0);
\coordinate (T2) at (4,0);
\maintrack (A) -- (B);
\balise[
forward,
along={0,1,3},
along switched={2},
oppose={0,2},
] at (T1) label (A);
\balise[
backward,
along={0,1,3},
along switched={2},
oppose={0,2,3},
oppose switched={1},
index % show index number
] at (T2) label (B);