blob: f9f2505d8f318f8343fcc94e4e34fd3e83ea97b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
%% 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}%
\ProvidesPackage{tikz-trackschematic}[2021/10/15 tikz-trackschematic]%
%
%%%%%%%%%%%%%%%
% Package options
%%%%%%%%%%%%%%%
\RequirePackage{tikz,xkeyval,etoolbox}%
\newtoggle{development}%
\DeclareOptionX{dev}[\settoggle{development}{false}]{\settoggle{development}{true}}
\ProcessOptionsX
%
\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}%
\usetikzlibrary{trackschematic-dev.symbology}%
\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}%
\usetikzlibrary{trackschematic.symbology}%
}%
%
%%%%%%%%%%%%%%%
\endinput%
%
|