Debian Codegraph @

texmf-dist/tex/latex/tikz-trackschematic/tikzlibrarytrackschematic.symbology.code.tex

raw
1 %% symbol library for TikZ track schematics
2 %
3 % Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
4 %
5 % 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.
6 %
7 \ProvidesFileRCS{tikzlibrarytrackschematic.symbology.code.tex}%
8 %%%%%%%%%%%%%%%
9 % global settings
10 %%%%%%%%%%%%%%%
11 \RequirePackage{booktabs,xltabular,multicol,adjustbox}%
12 \usetikzlibrary{calc}%
13 %
14 %%%%%%%%%%%%%%%
15 % commands
16 %%%%%%%%%%%%%%%
17 %
18 \DeclareRobustCommand{\tsSymbol}[2][1]{%
19 \adjustbox{valign=c}{%
20 \begin{tikzpicture}%
21 \pic at (0,0) {symbology_#2};%
22 \path ($0.5*(-0.2,-#1)$) rectangle ($0.5*(12.2,#1)$);% background rectangle to unify every cell containing a symbol
23 \end{tikzpicture}%
24 }%
25 }%
26 %%%%%%%%%%%%%%%
27 % symbology table
28 %%%%%%%%%%%%%%%
29 %
30 %% TODO: replave with package glossaries
31 % \@ifpackageloaded{glossaries}{%
32 % \newglossaryentry{main_track}{name={main track},description={},symbol={\tsSymbol{main_track}}}%
33 % }{}%
34 %%
35 %% command
36 \DeclareRobustCommand\tsFullSymbology{%
37 \begin{xltabular}{\textwidth}{cX}%
38 \toprule%
39 \textbf{Notation} & \multicolumn{1}{c}{\textbf{Description}} \\%
40 \midrule%
41 \endfirsthead%
42 % -----------
43 \midrule%
44 \textbf{Notation} & \multicolumn{1}{c}{\textbf{Description}} \\%
45 \midrule%
46 \endhead%
47 % -----------
48 \midrule%
49 \multicolumn{2}{c}{\footnotesize -- continued on next page -- } \\%
50 \endfoot%
51 % -----------
52 \bottomrule%
53 \endlastfoot%
54 % -----------
55 \tsSymbol{main_track} & main track \\%
56 \tsSymbol{secondary_track} & secondary track \\%
57 \tsSymbol{track_label} & track label \\%
58 \tsSymbol{bufferstop} & bufferstop \\%
59 \tsSymbol{friction_bufferstop} & friction bufferstop \\%
60 \tsSymbol{track_closure} & track closure \\%
61 \tsSymbol{turnout} & turnout \\%
62 \tsSymbol{turnout_fouling} & turnout with fouling point indicator \\%
63 \tsSymbol{turnout_manually} & turnout operated manually \\%
64 \tsSymbol{diamond_crossing} & diamond crossing \\%
65 \tsSymbol{slip_turnout} & double-slip turnout \\%
66 \tsSymbol{turnout_points_right} & turnout with points in right position \\%
67 \tsSymbol{turnout_points_left} & turnout with points in left position \\%
68 \tsSymbol{turnout_points_moving} & turnout with moving points \\%
69 \tsSymbol{derailer} & derailer \\%
70 \tsSymbol{parked_vehicles} & parked vehicles \\%
71 \tsSymbol{train_shunt_mode} & train in shunting mode \\%
72 \tsSymbol{train_shunting} & train shunting \\%
73 \tsSymbol{train} & train \\%
74 \tsSymbol{train_moving_slow} & train moving slow \\%
75 \tsSymbol{train_moving} & train moving \\%
76 \tsSymbol{train_moving_fast} & train moving fast \\%
77 \tsSymbol{train_ghost} & train ghost \\%
78 \tsSymbol{train_drive_automatic} & train operated automatic \\%
79 \tsSymbol{train_drive_human} & train operated by human \\%
80 \tsSymbol[1.4]{distant_signal} & distant signal \\%
81 \tsSymbol[1.4]{distant_speed_signal}& distant signal with speed indicator \\%
82 \tsSymbol[1.4]{speed_signal} & speed signal \\%
83 \tsSymbol[1.4]{block_signal} & block signal \\%
84 \tsSymbol[1.4]{route_signal} & route signal \\%
85 \tsSymbol[1.4]{combined_signal} & combined signal (distant, block and route signal) \\%
86 \tsSymbol[1.4]{shunt_signal} & shunt signal \\%
87 \tsSymbol[1.4]{locked_shunt_signal} & shunt signal locked \\%
88 \tsSymbol[1.4]{shunt_limit} & shunt limit \\%
89 \tsSymbol[1.4]{train_berth_sign} & train berth sign \\%
90 \tsSymbol[1.4]{view_point} & view point \\%
91 \tsSymbol[1.4]{braking_point} & braking point \\%
92 \tsSymbol[1.4]{end_of_authority} & end of movement authority \\%
93 \tsSymbol[1.4]{danger_point} & danger point \\%
94 \tsSymbol{clearing_point} & clearing point \\%
95 \tsSymbol{block_clearing_point} & block clearing point \\%
96 \tsSymbol{route_clearing_point} & route clearing point \\%
97 \tsSymbol{balise_group} & unenumerated balise group (switchable) \\%
98 \tsSymbol{balise_individual} & individual balises (switchable) \\%
99 \tsSymbol{trackloop} & track loop transmitter \\%
100 \tsSymbol{route} & route \\%
101 \tsSymbol{direction_control} & direction control \\%
102 \tsSymbol{platform} & platform \\%
103 \tsSymbol{level_crossing} & level crossing \\%
104 \tsSymbol[2.0]{bridge} & bridge \\%
105 \tsSymbol[1.4]{hump} & hump \\%
106 \tsSymbol{pylon} & pylons \\%
107 \tsSymbol{interlocking} & interlocking \\%
108 \tsSymbol[1.4]{distant_power_off} & distant power off \\%
109 \tsSymbol[1.4]{power_off} & power off \\%
110 \tsSymbol[1.4]{power_on} & power on \\%
111 \tsSymbol[1.4]{distant_pantograph_down}& distant pantograph down \\%
112 \tsSymbol[1.4]{pantograph_down} & pantograph down \\%
113 \tsSymbol[1.4]{pantograph_up} & pantograph up \\%
114 \tsSymbol[1.4]{wire_limit} & wire limit \\%
115 \tsSymbol[2.0]{track_distance} & track distance \\%
116 \tsSymbol{train_berth} & train berth \\%
117 \tsSymbol{measure_line} & measure line \\%
118 \tsSymbol{hectometer} & hectometer \\%
119 \tsSymbol{track_marking} & track marking \\%
120 \end{xltabular}%
121 }%
122 %%%%%%%%%%%%%%%
123 \endinput