tikz-trackschematic/src/tikzlibrarytrackschematic.c...

63 lines
2.0 KiB
TeX
Raw Normal View History

%% symbol library for TikZ track schematics
%
2022-01-06 20:17:51 +01:00
% 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.
%
\ProvidesFileRCS{tikzlibrarytrackschematic.code.tex}%
%
\RequirePackage{tikz,etoolbox}%
%
%%%%%%%%%%%%%%%
% loading sublibraries
%%%%%%%%%%%%%%%
% \usetikzlibrary{trackschematic.topology}%
% \usetikzlibrary{trackschematic.trafficcontrol}%
% \usetikzlibrary{trackschematic.vehicles}%
% \usetikzlibrary{trackschematic.constructions}%
% \usetikzlibrary{trackschematic.electrics}%
% \usetikzlibrary{trackschematic.measures}%
% \usetikzlibrary{trackschematic.symbology}%
%%%%%%%%%%%%%%%
%% 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);%
% },%
% }%
% %
%%%%%%%%%%%%%%%
\endinput%
%