2019-07-21 19:28:30 +02:00
%% symbol library for TikZ track schematics
%
2022-01-06 20:17:51 +01:00
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
2019-07-21 19:28:30 +02:00
%
2019-07-21 14:32:44 +02:00
% 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.
2020-01-14 17:11:10 +01:00
%
\ProvidesFileRCS { tikzlibrarytrackschematic.code.tex} %
%
2021-09-30 12:37:31 +02:00
\RequirePackage { tikz,etoolbox} %
2020-01-14 17:11:10 +01:00
%
2019-09-30 15:16:20 +02:00
%%%%%%%%%%%%%%%
2021-01-02 14:04:05 +01:00
% loading sublibraries
2019-09-30 15:16:20 +02:00
%%%%%%%%%%%%%%%
2021-01-02 14:04:05 +01:00
% \usetikzlibrary{trackschematic.topology}%
% \usetikzlibrary{trackschematic.trafficcontrol}%
% \usetikzlibrary{trackschematic.vehicles}%
% \usetikzlibrary{trackschematic.constructions}%
% \usetikzlibrary{trackschematic.electrics}%
% \usetikzlibrary{trackschematic.measures}%
2021-09-30 12:37:31 +02:00
% \usetikzlibrary{trackschematic.symbology}%
2021-01-02 14:04:05 +01:00
%%%%%%%%%%%%%%%
%% template for new symbol definitions
%%%%%%%%%%%%%%%
% %
% \newcommand\XXXX{}% just for safety
% \def\XXXX[#1]#2(#3)#4(#5){% \XXXX[options] at (coord) label (name);
% \pic[#1] at (#3) {XXXX={#2/#4/#5}}% symbol
% }%
% % tikz keys
% \pgfkeys{%
% /tikz/trackschematic/.is family,%
% /tikz/trackschematic//.cd,%
% }%
% % symbol definition
% \tikzset{%
% pics/XXXX/.default=,%
% pics/XXXX/.style args={#1/#2/#3}{code={%
% %% settings
% \def\coordcommand{#1}% beware of leading and tailing spaces!
% \def\labelcommand{#2}% beware of leading and tailing spaces!
% \def\labelcontent{#3}%
% %% symbol marker
% %
% %% label
% \ifdefstring{\labelcontent}{}{}{% label NOT empty
% \coordinate (label-coord) at (coord);%
% \ifdefstring{\labelcoord}{(none)}{}{% initialize if NOT default
% \gettikzxy{\labelcoord}{\labelcoordX}{\labelcoordY}%
% \coordinate (label-coord) at ($(label-coord)+(\labelcoordX,\labelcoordY)$);%
% }%
% \node at (label-coord) {\footnotesize \labelcontent};%
% }%
% }},% END of pics/XXXX/.style args={#1/#2/#3}
% % symbology entry
% symbology_XXXX/.pic = {%
% \maintrack (0,0) -- (6,0);%
% \XXXX at (3,0);%
% },%
% }%
% %
2020-01-14 17:11:10 +01:00
%%%%%%%%%%%%%%%
\endinput %
%