remove package requirement lmodern, minor corrections, added citing information
parent
24f0bcfec5
commit
48419928e4
|
@ -0,0 +1,22 @@
|
|||
# YAML 1.2
|
||||
---
|
||||
cff-version: 1.2.0
|
||||
message: If you use this software, please cite it using these metadata.
|
||||
title: TikZ-trackschematics
|
||||
abstract: A TikZ library for creating track diagrams in railways.
|
||||
authors:
|
||||
- family-names: Scheidt
|
||||
given-names: Martin
|
||||
orcid: "https://orcid.org/0000-0002-9384-8945"
|
||||
version: 0.6.1
|
||||
date-released: "2021-09-30"
|
||||
identifiers:
|
||||
- description: This is the collection of archived snapshots of all versions of My Research Software
|
||||
type: doi
|
||||
value: "10.5281/zenodo.5539845"
|
||||
- description: Package at Comprehensive TeX Archive Network (CTAN)
|
||||
type: url
|
||||
value: "https://ctan.org/pkg/tikz-trackschematic"
|
||||
license: ISC License
|
||||
repository-code: "https://repository.ivev.bau.tu-bs.de/martin/tikz-trackschematic"
|
||||
...
|
|
@ -0,0 +1,74 @@
|
|||
# Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
In the interest of fostering an open and welcoming environment, we as
|
||||
contributors and maintainers pledge to making participation in our project and
|
||||
our community a harassment-free experience for everyone, regardless of age, body
|
||||
size, disability, ethnicity, gender identity and expression, level of experience,
|
||||
nationality, personal appearance, race, religion, or sexual identity and
|
||||
orientation.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to creating a positive environment
|
||||
include:
|
||||
|
||||
* Using welcoming and inclusive language
|
||||
* Being respectful of differing viewpoints and experiences
|
||||
* Gracefully accepting constructive criticism
|
||||
* Focusing on what is best for the community
|
||||
* Showing empathy towards other community members
|
||||
|
||||
Examples of unacceptable behavior by participants include:
|
||||
|
||||
* The use of sexualized language or imagery and unwelcome sexual attention or
|
||||
advances
|
||||
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or electronic
|
||||
address, without explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Our Responsibilities
|
||||
|
||||
Project maintainers are responsible for clarifying the standards of acceptable
|
||||
behavior and are expected to take appropriate and fair corrective action in
|
||||
response to any instances of unacceptable behavior.
|
||||
|
||||
Project maintainers have the right and responsibility to remove, edit, or
|
||||
reject comments, commits, code, wiki edits, issues, and other contributions
|
||||
that are not aligned to this Code of Conduct, or to ban temporarily or
|
||||
permanently any contributor for other behaviors that they deem inappropriate,
|
||||
threatening, offensive, or harmful.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies both within project spaces and in public spaces
|
||||
when an individual is representing the project or its community. Examples of
|
||||
representing a project or community include using an official project e-mail
|
||||
address, posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event. Representation of a project may be
|
||||
further defined and clarified by project maintainers.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
|
||||
complaints will be reviewed and investigated and will result in a response that
|
||||
is deemed necessary and appropriate to the circumstances. The project team is
|
||||
obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||
Further details of specific enforcement policies may be posted separately.
|
||||
|
||||
Project maintainers who do not follow or enforce the Code of Conduct in good
|
||||
faith may face temporary or permanent repercussions as determined by other
|
||||
members of the project's leadership.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
||||
available at [http://contributor-covenant.org/version/1/4][version]
|
||||
|
||||
[homepage]: http://contributor-covenant.org
|
||||
[version]: http://contributor-covenant.org/version/1/4/
|
|
@ -0,0 +1,17 @@
|
|||
# Contributing
|
||||
|
||||
When contributing to this repository, please first discuss the change you wish to make via issue,
|
||||
email, or any other method with the owners of this repository before making a change.
|
||||
|
||||
Please note we have a code of conduct, please follow it in all your interactions with the project.
|
||||
|
||||
# Pull Request Process
|
||||
|
||||
1. Ensure any install or build dependencies are removed before the end of the layer when doing a
|
||||
build.
|
||||
2. Update the README.md with details of changes to the interface, this includes new environment
|
||||
variables, exposed ports, useful file locations and container parameters.
|
||||
3. Increase the version numbers in any examples files and the README.md to the new version that this
|
||||
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
|
||||
4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you
|
||||
do not have permission to do that, you may request the second reviewer to merge it for you.
|
22
README.md
22
README.md
|
@ -26,21 +26,24 @@ in any LaTeX file.
|
|||
# Minimal working example
|
||||
|
||||
```TeX
|
||||
\documentclass{standalone}
|
||||
\usepackage{tikz-trackschematic}
|
||||
\begin{document}
|
||||
\documentclass{standalone} % LaTeX
|
||||
\usepackage{tikz-trackschematic} % loading the library
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
|
||||
% TikZ command: specify coordinates
|
||||
\coordinate (A) at (0,0);
|
||||
\coordinate (B) at (6,0);
|
||||
\coordinate (T) at (5,0);
|
||||
|
||||
% draw a track
|
||||
\maintrack (A) -- (B);
|
||||
\train[forward] at (T) label (train);
|
||||
|
||||
% place a train on the track
|
||||
\train[forward] at (T) label ();
|
||||
|
||||
\end{tikzpicture}
|
||||
|
||||
\end{document}
|
||||
```
|
||||
results in:
|
||||
|
@ -58,6 +61,12 @@ A [glossary](https://glossary.ivev.bau.tu-bs.de/tiki-index.php?page=_Symbology)
|
|||
|
||||
# History
|
||||
|
||||
## Version 0.6.1
|
||||
|
||||
* removed package requirement lmodern
|
||||
* minor correction in manual
|
||||
* added citation information
|
||||
|
||||
## Version 0.6
|
||||
|
||||
* created an encapsulating package for future flexibility
|
||||
|
@ -108,6 +117,7 @@ A [glossary](https://glossary.ivev.bau.tu-bs.de/tiki-index.php?page=_Symbology)
|
|||
* provide option for internationalziation (i18n)
|
||||
* replace "\gettikzxy" with "\path let" syntax
|
||||
* rewrite library with better coding skills
|
||||
* include support for glossaries package
|
||||
|
||||
------------
|
||||
|
||||
|
@ -119,7 +129,7 @@ A [glossary](https://glossary.ivev.bau.tu-bs.de/tiki-index.php?page=_Symbology)
|
|||
|
||||
# License
|
||||
|
||||
[![Open Source Initiative Approved License logo](https://opensource.org/files/OSIApproved_100X125.png)](https://opensource.org)
|
||||
[![Open Source Initiative Approved License logo](https://opensource.org/files/OSIApproved_100X125.png "Open Source Initiative Approved License logo")](https://opensource.org)
|
||||
|
||||
Copyright (c) 2018 - 2021, Martin Scheidt \<m.scheidt@tu-bs.de\> (ISC License)
|
||||
|
||||
|
|
|
@ -110,5 +110,6 @@ $rootrun ln -sfn $PROJECTDIR/src/tikzlibrarytrackschematic.measures.code.tex $TE
|
|||
$rootrun ln -sfn $PROJECTDIR/src/tikzlibrarytrackschematic.topology.code.tex $TEXMFLOCAL/tex/latex/$DEVDIR/tikzlibrarytrackschematic-dev.topology.code.tex
|
||||
$rootrun ln -sfn $PROJECTDIR/src/tikzlibrarytrackschematic.trafficcontrol.code.tex $TEXMFLOCAL/tex/latex/$DEVDIR/tikzlibrarytrackschematic-dev.trafficcontrol.code.tex
|
||||
$rootrun ln -sfn $PROJECTDIR/src/tikzlibrarytrackschematic.vehicles.code.tex $TEXMFLOCAL/tex/latex/$DEVDIR/tikzlibrarytrackschematic-dev.vehicles.code.tex
|
||||
$rootrun ln -sfn $PROJECTDIR/src/tikzlibrarytrackschematic.symbology.code.tex $TEXMFLOCAL/tex/latex/$DEVDIR/tikzlibrarytrackschematic-dev.symbology.code.tex
|
||||
|
||||
$rootrun $TEXlsr --quiet
|
||||
|
|
BIN
doc/manual.pdf
BIN
doc/manual.pdf
Binary file not shown.
|
@ -64,6 +64,8 @@
|
|||
\subsection{Acknowledgement}
|
||||
|
||||
This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No. 826347.
|
||||
If you want to cite this project please use the follwoing informations:\\
|
||||
Scheidt, M. (2021). TikZ-trackschematics (Version \vhCurrentVersion) DOI: 10.5281/zenodo.5539845
|
||||
|
||||
\subsection{Requirements}\label{sec:require}
|
||||
|
||||
|
@ -146,7 +148,7 @@
|
|||
\subsection{Orientation system}\label{sec:orientationsystem}
|
||||
|
||||
The orientation is controlled via given Ti\emph{k}Z options or pgfkey.
|
||||
The orientation options/pgfkeys are named in relation to orientation-based coordinates, which inhibate thier meaning from reading left to right beeing \texttt{forward} and relate \texttt{left}/\texttt{right} to that movement.
|
||||
The orientation options/pgfkeys inhibit their meaning from reading left to right as \texttt{forward} and relate \texttt{left}/\texttt{right} to that movement.
|
||||
\begin{center}
|
||||
\begin{tikzpicture}[font=\ttfamily]
|
||||
\draw[<->] (-0.5,0) node[left] {backward} -- (0.5,0) node[right] {forward};
|
||||
|
@ -326,9 +328,9 @@
|
|||
\end{lstlisting}
|
||||
|
||||
Each symbol provides a reference name fo a symbology entry if there is the need to create an own table with the symbols.
|
||||
It can be used in a normal \TeX~ environment and will show the named symbol with a length of \SI{6.2}{\cm} and a width of \SI{1}{\cm}.
|
||||
It can be used in a normal \TeX~ environment and will show the named symbol with a length of \SI{6.2}{\cm} and a height of \SI{1}{\cm}.
|
||||
\begin{lstlisting}[gobble=6]
|
||||
\tsSymbol[width]{main_track}
|
||||
\tsSymbol[height]{symbol_name}
|
||||
\end{lstlisting}
|
||||
|
||||
There is also a table with snippets for various situations.
|
||||
|
@ -1566,7 +1568,7 @@
|
|||
\hline
|
||||
\No & train ghost & \tsSymbol{train_ghost} & \ref{sym:trains} \\
|
||||
\hline
|
||||
\No & train operated automatic & \tsSymbol{train_drive_automatic} & \ref{sym:trains} \\
|
||||
\No & train operated automatically & \tsSymbol{train_drive_automatic} & \ref{sym:trains} \\
|
||||
\hline
|
||||
\No & train operated by human & \tsSymbol{train_drive_human} & \ref{sym:trains} \\
|
||||
\hline
|
||||
|
|
|
@ -27,4 +27,7 @@
|
|||
\vhEntry{0.6}{2021-01-02}{MS}{
|
||||
Added symbols for "direction control", "track marking", "pylons" and electric wiring; changed symbol for "friction bufferstop"; created an encapsulating package for future flexibility - changed load command for library to \textbackslash usepackage\{tikz-trackschematic\}.
|
||||
}
|
||||
\vhEntry{0.6.1}{2021-09-30}{MS}{
|
||||
removed package requirement lmodern, minor correction in manual, added citation information
|
||||
}
|
||||
\end{versionhistory}
|
||||
|
|
|
@ -7,17 +7,16 @@
|
|||
\NeedsTeXFormat{LaTeX2e}%
|
||||
\ProvidesPackage{tikz-trackschematic}[2021/01/02 tikz-trackschematic]%
|
||||
%
|
||||
% Required Packages for tikz-trackschematic
|
||||
\RequirePackage{tikz,etoolbox,lmodern}%
|
||||
%
|
||||
%%%%%%%%%%%%%%%
|
||||
% Package options
|
||||
%%%%%%%%%%%%%%%
|
||||
\RequirePackage{xkeyval,etoolbox}%
|
||||
\RequirePackage{tikz,xkeyval,etoolbox}%
|
||||
\newtoggle{development}%
|
||||
\DeclareOptionX{dev}[\settoggle{development}{false}]{\settoggle{development}{true}}
|
||||
\ProcessOptionsX
|
||||
%
|
||||
\settoggle{development}{true}
|
||||
|
||||
\iftoggle{development}{%
|
||||
\PackageInfo{tikz-trackschematic}{development mode}%
|
||||
%
|
||||
|
@ -28,6 +27,7 @@
|
|||
\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}%
|
||||
|
@ -39,120 +39,9 @@
|
|||
\usetikzlibrary{trackschematic.constructions}%
|
||||
\usetikzlibrary{trackschematic.electrics}%
|
||||
\usetikzlibrary{trackschematic.measures}%
|
||||
\usetikzlibrary{trackschematic.symbology}%
|
||||
}%
|
||||
%
|
||||
%%%%%%%%%%%%%%%
|
||||
% commands
|
||||
%%%%%%%%%%%%%%%
|
||||
\RequirePackage{adjustbox}%
|
||||
\usetikzlibrary{calc}%
|
||||
%
|
||||
\DeclareRobustCommand{\tsSymbol}[2][1]{%
|
||||
\adjustbox{valign=c}{%
|
||||
\begin{tikzpicture}]%
|
||||
\pic at (0,0) {symbology_#2};%
|
||||
\path ($0.5*(-0.2,-#1)$) rectangle ($0.5*(12.2,#1)$);% background rectangle to unify every cell containing a symbol
|
||||
\end{tikzpicture}%
|
||||
}%
|
||||
}%
|
||||
%%%%%%%%%%%%%%%
|
||||
% symbology table
|
||||
%%%%%%%%%%%%%%%
|
||||
%
|
||||
%% TODO: replave with package glossaries
|
||||
% \@ifpackageloaded{glossaries}{%
|
||||
% \newglossaryentry{main_track}{name={main track},description={},symbol={\tsSymbol{main_track}}}%
|
||||
% }{}%
|
||||
%%
|
||||
\RequirePackage{booktabs,xltabular,multicol}%
|
||||
%% command
|
||||
\DeclareRobustCommand\tsFullSymbology{%
|
||||
\begin{xltabular}{\textwidth}{cX}%
|
||||
\toprule%
|
||||
\textbf{Notation} & \multicolumn{1}{c}{\textbf{Description}} \\%
|
||||
\midrule%
|
||||
\endfirsthead%
|
||||
% -----------
|
||||
\midrule%
|
||||
\textbf{Notation} & \multicolumn{1}{c}{\textbf{Description}} \\%
|
||||
\midrule%
|
||||
\endhead%
|
||||
% -----------
|
||||
\midrule%
|
||||
\multicolumn{2}{c}{\footnotesize -- continued on next page -- } \\%
|
||||
\endfoot%
|
||||
% -----------
|
||||
\bottomrule%
|
||||
\endlastfoot%
|
||||
% -----------
|
||||
\tsSymbol{main_track} & main track \\%
|
||||
\tsSymbol{secondary_track} & secondary track \\%
|
||||
\tsSymbol{track_label} & track label \\%
|
||||
\tsSymbol{bufferstop} & bufferstop \\%
|
||||
\tsSymbol{friction_bufferstop} & friction bufferstop \\%
|
||||
\tsSymbol{track_closure} & track closure \\%
|
||||
\tsSymbol{turnout} & turnout \\%
|
||||
\tsSymbol{turnout_fouling} & turnout with fouling point indicator \\%
|
||||
\tsSymbol{turnout_manually} & turnout operated manually \\%
|
||||
\tsSymbol{diamond_crossing} & diamond crossing \\%
|
||||
\tsSymbol{slip_turnout} & double-slip turnout \\%
|
||||
\tsSymbol{turnout_points_right} & turnout with points in right position \\%
|
||||
\tsSymbol{turnout_points_left} & turnout with points in left position \\%
|
||||
\tsSymbol{turnout_points_moving} & turnout with moving points \\%
|
||||
\tsSymbol{derailer} & derailer \\%
|
||||
\tsSymbol{parked_vehicles} & parked vehicles \\%
|
||||
\tsSymbol{train_shunt_mode} & train in shunting mode \\%
|
||||
\tsSymbol{train_shunting} & train shunting \\%
|
||||
\tsSymbol{train} & train \\%
|
||||
\tsSymbol{train_moving_slow} & train moving slow \\%
|
||||
\tsSymbol{train_moving} & train moving \\%
|
||||
\tsSymbol{train_moving_fast} & train moving fast \\%
|
||||
\tsSymbol{train_ghost} & train ghost \\%
|
||||
\tsSymbol{train_drive_automatic} & train operated automatic \\%
|
||||
\tsSymbol{train_drive_human} & train operated by human \\%
|
||||
\tsSymbol[1.4]{distant_signal} & distant signal \\%
|
||||
\tsSymbol[1.4]{distant_speed_signal}& distant signal with speed indicator \\%
|
||||
\tsSymbol[1.4]{speed_signal} & speed signal \\%
|
||||
\tsSymbol[1.4]{block_signal} & block signal \\%
|
||||
\tsSymbol[1.4]{route_signal} & route signal \\%
|
||||
\tsSymbol[1.4]{combined_signal} & combined signal (distant, block and route signal) \\%
|
||||
\tsSymbol[1.4]{shunt_signal} & shunt signal \\%
|
||||
\tsSymbol[1.4]{locked_shunt_signal} & shunt signal locked \\%
|
||||
\tsSymbol[1.4]{shunt_limit} & shunt limit \\%
|
||||
\tsSymbol[1.4]{train_berth_sign} & train berth sign \\%
|
||||
\tsSymbol[1.4]{view_point} & view point \\%
|
||||
\tsSymbol[1.4]{braking_point} & braking point \\%
|
||||
\tsSymbol[1.4]{end_of_authority} & end of movement authority \\%
|
||||
\tsSymbol[1.4]{danger_point} & danger point \\%
|
||||
\tsSymbol{clearing_point} & clearing point \\%
|
||||
\tsSymbol{block_clearing_point} & block clearing point \\%
|
||||
\tsSymbol{route_clearing_point} & route clearing point \\%
|
||||
\tsSymbol{transmitter} & transmitter \\%
|
||||
\tsSymbol{transmitter_forward} & transmitter effective forward \\%
|
||||
\tsSymbol{transmitter_bidirectional}& transmitter bidirectional \\%
|
||||
\tsSymbol{loop_transmitter} & loop transmitter \\%
|
||||
\tsSymbol{route} & route \\%
|
||||
\tsSymbol{direction_control} & direction control \\%
|
||||
\tsSymbol{platform} & platform \\%
|
||||
\tsSymbol{level_crossing} & level crossing \\%
|
||||
\tsSymbol[2.0]{bridge} & bridge \\%
|
||||
\tsSymbol[1.4]{hump} & hump \\%
|
||||
\tsSymbol{pylon} & pylons \\%
|
||||
\tsSymbol{interlocking} & interlocking \\%
|
||||
\tsSymbol[1.4]{distant_power_off} & distant power off \\%
|
||||
\tsSymbol[1.4]{power_off} & power off \\%
|
||||
\tsSymbol[1.4]{power_on} & power on \\%
|
||||
\tsSymbol[1.4]{distant_pantograph_down}& distant pantograph down \\%
|
||||
\tsSymbol[1.4]{pantograph_down} & pantograph down \\%
|
||||
\tsSymbol[1.4]{pantograph_up} & pantograph up \\%
|
||||
\tsSymbol[1.4]{wire_limit} & wire limit \\%
|
||||
\tsSymbol[2.0]{track_distance} & track distance \\%
|
||||
\tsSymbol{train_berth} & train berth \\%
|
||||
\tsSymbol{measure_line} & measure line \\%
|
||||
\tsSymbol{hectometer} & hectometer \\%
|
||||
\tsSymbol{track_marking} & track marking \\%
|
||||
\end{xltabular}%
|
||||
}%
|
||||
%%%%%%%%%%%%%%%
|
||||
\endinput%
|
||||
%
|
|
@ -6,7 +6,7 @@
|
|||
%
|
||||
\ProvidesFileRCS{tikzlibrarytrackschematic.code.tex}%
|
||||
%
|
||||
\RequirePackage{tikz,etoolbox,lmodern}%
|
||||
\RequirePackage{tikz,etoolbox}%
|
||||
%
|
||||
%%%%%%%%%%%%%%%
|
||||
% loading sublibraries
|
||||
|
@ -17,6 +17,7 @@
|
|||
% \usetikzlibrary{trackschematic.constructions}%
|
||||
% \usetikzlibrary{trackschematic.electrics}%
|
||||
% \usetikzlibrary{trackschematic.measures}%
|
||||
% \usetikzlibrary{trackschematic.symbology}%
|
||||
%%%%%%%%%%%%%%%
|
||||
%% template for new symbol definitions
|
||||
%%%%%%%%%%%%%%%
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
%%%%%%%%%%%%%%%
|
||||
% global settings
|
||||
%%%%%%%%%%%%%%%
|
||||
\RequirePackage{tikz,etoolbox,lmodern}%
|
||||
\RequirePackage{tikz,etoolbox}%
|
||||
\usetikzlibrary{calc}%
|
||||
%
|
||||
\ifdeflength{\objectlength}{}{% Not defined, so define it!
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
%%%%%%%%%%%%%%%
|
||||
% global settings
|
||||
%%%%%%%%%%%%%%%
|
||||
\RequirePackage{tikz,etoolbox,lmodern}%
|
||||
\RequirePackage{tikz,etoolbox}%
|
||||
\usetikzlibrary{calc,intersections,arrows.meta}%
|
||||
%
|
||||
% https://tex.stackexchange.com/questions/56353/extract-x-y-coordinate-of-an-arbitrary-point-on-curve-in-tikz
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
%%%%%%%%%%%%%%%
|
||||
% global settings
|
||||
%%%%%%%%%%%%%%%
|
||||
\RequirePackage{tikz,etoolbox,lmodern}%
|
||||
\RequirePackage{tikz,etoolbox}%
|
||||
\usetikzlibrary{calc,intersections,arrows.meta}%
|
||||
%
|
||||
% https://tex.stackexchange.com/questions/56353/extract-x-y-coordinate-of-an-arbitrary-point-on-curve-in-tikz
|
||||
|
|
|
@ -0,0 +1,125 @@
|
|||
%!TEX TS-program = pdflatexmk
|
||||
%!TEX root = ../test/test.tex
|
||||
%
|
||||
%% 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.
|
||||
%
|
||||
\ProvidesFileRCS{tikzlibrarytrackschematic.symbology.code.tex}%
|
||||
%
|
||||
%%%%%%%%%%%%%%%
|
||||
% commands
|
||||
%%%%%%%%%%%%%%%
|
||||
\RequirePackage{adjustbox}%
|
||||
\usetikzlibrary{calc}%
|
||||
%
|
||||
\DeclareRobustCommand{\tsSymbol}[2][1]{%
|
||||
\adjustbox{valign=c}{%
|
||||
\begin{tikzpicture}]%
|
||||
\pic at (0,0) {symbology_#2};%
|
||||
\path ($0.5*(-0.2,-#1)$) rectangle ($0.5*(12.2,#1)$);% background rectangle to unify every cell containing a symbol
|
||||
\end{tikzpicture}%
|
||||
}%
|
||||
}%
|
||||
%%%%%%%%%%%%%%%
|
||||
% symbology table
|
||||
%%%%%%%%%%%%%%%
|
||||
%
|
||||
%% TODO: replave with package glossaries
|
||||
% \@ifpackageloaded{glossaries}{%
|
||||
% \newglossaryentry{main_track}{name={main track},description={},symbol={\tsSymbol{main_track}}}%
|
||||
% }{}%
|
||||
%%
|
||||
\RequirePackage{booktabs,xltabular,multicol}%
|
||||
%% command
|
||||
\DeclareRobustCommand\tsFullSymbology{%
|
||||
\begin{xltabular}{\textwidth}{cX}%
|
||||
\toprule%
|
||||
\textbf{Notation} & \multicolumn{1}{c}{\textbf{Description}} \\%
|
||||
\midrule%
|
||||
\endfirsthead%
|
||||
% -----------
|
||||
\midrule%
|
||||
\textbf{Notation} & \multicolumn{1}{c}{\textbf{Description}} \\%
|
||||
\midrule%
|
||||
\endhead%
|
||||
% -----------
|
||||
\midrule%
|
||||
\multicolumn{2}{c}{\footnotesize -- continued on next page -- } \\%
|
||||
\endfoot%
|
||||
% -----------
|
||||
\bottomrule%
|
||||
\endlastfoot%
|
||||
% -----------
|
||||
\tsSymbol{main_track} & main track \\%
|
||||
\tsSymbol{secondary_track} & secondary track \\%
|
||||
\tsSymbol{track_label} & track label \\%
|
||||
\tsSymbol{bufferstop} & bufferstop \\%
|
||||
\tsSymbol{friction_bufferstop} & friction bufferstop \\%
|
||||
\tsSymbol{track_closure} & track closure \\%
|
||||
\tsSymbol{turnout} & turnout \\%
|
||||
\tsSymbol{turnout_fouling} & turnout with fouling point indicator \\%
|
||||
\tsSymbol{turnout_manually} & turnout operated manually \\%
|
||||
\tsSymbol{diamond_crossing} & diamond crossing \\%
|
||||
\tsSymbol{slip_turnout} & double-slip turnout \\%
|
||||
\tsSymbol{turnout_points_right} & turnout with points in right position \\%
|
||||
\tsSymbol{turnout_points_left} & turnout with points in left position \\%
|
||||
\tsSymbol{turnout_points_moving} & turnout with moving points \\%
|
||||
\tsSymbol{derailer} & derailer \\%
|
||||
\tsSymbol{parked_vehicles} & parked vehicles \\%
|
||||
\tsSymbol{train_shunt_mode} & train in shunting mode \\%
|
||||
\tsSymbol{train_shunting} & train shunting \\%
|
||||
\tsSymbol{train} & train \\%
|
||||
\tsSymbol{train_moving_slow} & train moving slow \\%
|
||||
\tsSymbol{train_moving} & train moving \\%
|
||||
\tsSymbol{train_moving_fast} & train moving fast \\%
|
||||
\tsSymbol{train_ghost} & train ghost \\%
|
||||
\tsSymbol{train_drive_automatic} & train operated automatic \\%
|
||||
\tsSymbol{train_drive_human} & train operated by human \\%
|
||||
\tsSymbol[1.4]{distant_signal} & distant signal \\%
|
||||
\tsSymbol[1.4]{distant_speed_signal}& distant signal with speed indicator \\%
|
||||
\tsSymbol[1.4]{speed_signal} & speed signal \\%
|
||||
\tsSymbol[1.4]{block_signal} & block signal \\%
|
||||
\tsSymbol[1.4]{route_signal} & route signal \\%
|
||||
\tsSymbol[1.4]{combined_signal} & combined signal (distant, block and route signal) \\%
|
||||
\tsSymbol[1.4]{shunt_signal} & shunt signal \\%
|
||||
\tsSymbol[1.4]{locked_shunt_signal} & shunt signal locked \\%
|
||||
\tsSymbol[1.4]{shunt_limit} & shunt limit \\%
|
||||
\tsSymbol[1.4]{train_berth_sign} & train berth sign \\%
|
||||
\tsSymbol[1.4]{view_point} & view point \\%
|
||||
\tsSymbol[1.4]{braking_point} & braking point \\%
|
||||
\tsSymbol[1.4]{end_of_authority} & end of movement authority \\%
|
||||
\tsSymbol[1.4]{danger_point} & danger point \\%
|
||||
\tsSymbol{clearing_point} & clearing point \\%
|
||||
\tsSymbol{block_clearing_point} & block clearing point \\%
|
||||
\tsSymbol{route_clearing_point} & route clearing point \\%
|
||||
\tsSymbol{transmitter} & transmitter \\%
|
||||
\tsSymbol{transmitter_forward} & transmitter effective forward \\%
|
||||
\tsSymbol{transmitter_bidirectional}& transmitter bidirectional \\%
|
||||
\tsSymbol{loop_transmitter} & loop transmitter \\%
|
||||
\tsSymbol{route} & route \\%
|
||||
\tsSymbol{direction_control} & direction control \\%
|
||||
\tsSymbol{platform} & platform \\%
|
||||
\tsSymbol{level_crossing} & level crossing \\%
|
||||
\tsSymbol[2.0]{bridge} & bridge \\%
|
||||
\tsSymbol[1.4]{hump} & hump \\%
|
||||
\tsSymbol{pylon} & pylons \\%
|
||||
\tsSymbol{interlocking} & interlocking \\%
|
||||
\tsSymbol[1.4]{distant_power_off} & distant power off \\%
|
||||
\tsSymbol[1.4]{power_off} & power off \\%
|
||||
\tsSymbol[1.4]{power_on} & power on \\%
|
||||
\tsSymbol[1.4]{distant_pantograph_down}& distant pantograph down \\%
|
||||
\tsSymbol[1.4]{pantograph_down} & pantograph down \\%
|
||||
\tsSymbol[1.4]{pantograph_up} & pantograph up \\%
|
||||
\tsSymbol[1.4]{wire_limit} & wire limit \\%
|
||||
\tsSymbol[2.0]{track_distance} & track distance \\%
|
||||
\tsSymbol{train_berth} & train berth \\%
|
||||
\tsSymbol{measure_line} & measure line \\%
|
||||
\tsSymbol{hectometer} & hectometer \\%
|
||||
\tsSymbol{track_marking} & track marking \\%
|
||||
\end{xltabular}%
|
||||
}%
|
||||
%%%%%%%%%%%%%%%
|
||||
\end
|
|
@ -12,7 +12,7 @@
|
|||
%%%%%%%%%%%%%%%
|
||||
% Requirements
|
||||
%%%%%%%%%%%%%%%
|
||||
\RequirePackage{tikz,etoolbox,lmodern}%
|
||||
\RequirePackage{tikz,etoolbox}%
|
||||
\usetikzlibrary{calc,patterns}%
|
||||
%
|
||||
% https://tex.stackexchange.com/questions/56353/extract-x-y-coordinate-of-an-arbitrary-point-on-curve-in-tikz
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
%%%%%%%%%%%%%%%
|
||||
% Requirements
|
||||
%%%%%%%%%%%%%%%
|
||||
\RequirePackage{tikz,etoolbox,lmodern}%
|
||||
\RequirePackage{tikz,etoolbox}%
|
||||
\usetikzlibrary{calc}%
|
||||
%
|
||||
% https://tex.stackexchange.com/questions/56353/extract-x-y-coordinate-of-an-arbitrary-point-on-curve-in-tikz
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
%%%%%%%%%%%%%%%
|
||||
% Requirements
|
||||
%%%%%%%%%%%%%%%
|
||||
\RequirePackage{tikz,etoolbox,lmodern}%
|
||||
\RequirePackage{tikz,etoolbox}%
|
||||
\usetikzlibrary{calc}%
|
||||
%
|
||||
% https://tex.stackexchange.com/questions/56353/extract-x-y-coordinate-of-an-arbitrary-point-on-curve-in-tikz
|
||||
|
|
Loading…
Reference in New Issue