2021-01-02 14:04:05 +01:00
%% symbol library for TikZ track schematics
%
% Copyright (c) 2018 - 2021, 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.
%
\NeedsTeXFormat{LaTeX2e}%
2021-01-02 16:00:56 +01:00
\ProvidesPackage{tikz-trackschematic}[2021/01/02 tikz-trackschematic]%
2021-01-02 14:04:05 +01:00
%
%%%%%%%%%%%%%%%
% Package options
%%%%%%%%%%%%%%%
2021-09-30 12:37:31 +02:00
\RequirePackage{tikz,xkeyval,etoolbox}%
2021-01-02 14:04:05 +01:00
\newtoggle{development}%
\DeclareOptionX{dev}[\settoggle{development}{false}]{\settoggle{development}{true}}
\ProcessOptionsX
%
2021-09-30 12:37:31 +02:00
\settoggle{development}{true}
2021-01-02 14:04:05 +01:00
\iftoggle{development}{%
\PackageInfo{tikz-trackschematic}{development mode}%
%
\IfFileExists{tikz-trackschematic-dev.sty}{%
\usetikzlibrary{trackschematic-dev.topology}%
\usetikzlibrary{trackschematic-dev.trafficcontrol}%
\usetikzlibrary{trackschematic-dev.vehicles}%
\usetikzlibrary{trackschematic-dev.constructions}%
\usetikzlibrary{trackschematic-dev.electrics}%
\usetikzlibrary{trackschematic-dev.measures}%
2021-09-30 12:37:31 +02:00
\usetikzlibrary{trackschematic-dev.symbology}%
2021-01-02 14:04:05 +01:00
\usetikzlibrary{trackschematic-dev}%
}{%
\PackageError{tikz-trackschematic}{development mode not available}{execute the dev-install.sh script provided by the package repository}%
}%
}{%
\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
}%
%
%%%%%%%%%%%%%%%
\endinput%
%