blob: 77822d409f685248cd466b717defe22edf2cf38c (
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
47
48
49
50
51
52
53
54
|
%% symbol library for TikZ track schematics
%
% 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.
%
\NeedsTeXFormat{LaTeX2e}%
\ProvidesPackage{tikz-trackschematic}[2022-04-02 v0.7.0 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}%
}{%
\PackageWarning{tikz-trackschematic}{development mode not available}%
\PackageWarning{tikz-trackschematic}{execute the script './build.sh --install-dev' provided by the package repository}%
\PackageWarning{tikz-trackschematic}{continuing in normal mode}%
\usetikzlibrary{trackschematic.topology}%
\usetikzlibrary{trackschematic.trafficcontrol}%
\usetikzlibrary{trackschematic.vehicles}%
\usetikzlibrary{trackschematic.constructions}%
\usetikzlibrary{trackschematic.electrics}%
\usetikzlibrary{trackschematic.measures}%
\usetikzlibrary{trackschematic.symbology}%
}%
}{%
\usetikzlibrary{trackschematic.topology}%
\usetikzlibrary{trackschematic.trafficcontrol}%
\usetikzlibrary{trackschematic.vehicles}%
\usetikzlibrary{trackschematic.constructions}%
\usetikzlibrary{trackschematic.electrics}%
\usetikzlibrary{trackschematic.measures}%
\usetikzlibrary{trackschematic.symbology}%
}%
%
%%%%%%%%%%%%%%%
\endinput%
%
|