added template for protocols

master
Martin Scheidt 2019-03-25 15:48:15 +01:00 committed by Martin Scheidt
parent 53f3909c7a
commit a9e2e317bf
9 changed files with 149 additions and 15 deletions

1
.gitignore vendored
View File

@ -243,6 +243,7 @@ TSWLatexianTemp*
# sublime text with LaTeX
Output
.tex
# OS X temporary files that should never be committed
#

Binary file not shown.

18
handbook.tex Executable file → Normal file
View File

@ -4,7 +4,7 @@
% You are free to copy and redistribute the material in any medium or format. You are free to remix, transform, and build upon the material for any purpose, even commercially. You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits. No warranties are given.
\documentclass[
draft,
% draft,
paper=a4,
version=3.25,
pagesize=pdftex,
@ -15,27 +15,29 @@
toc=listof,
]{scrbook}
\input{header.tex}
\def\ROOT{.}
\input{\ROOT/header.tex}
\begin{document}
\selectlanguage{english} % currently supported: english, ngerman
\selectlanguage{ngerman} % currently supported: english, ngerman
\input{frontmatter/titlepage.tex}
\input{\ROOT/frontmatter/titlepage.tex}
\tableofcontents
\cleardoublepage
\input{frontmatter/preambel.tex}
\input{\ROOT/frontmatter/preambel.tex}
\cleardoublepage
\input{mainmatter/manual.tex}
\input{\ROOT/mainmatter/manual.tex}
\input{mainmatter/challenges.tex}
\setcounter{chapter}{0}
\input{\ROOT/mainmatter/challenges.tex}
\cleardoublepage
\appendix
\input{backmatter/versionhistory.tex}
\input{\ROOT/backmatter/versionhistory.tex}
\end{document}

View File

@ -97,7 +97,6 @@
\setkeys{Gin}{draft=false} % disable draft for graphicx to see pictures in draft-mode
\usepackage{booktabs,longtable,tabularx,ltxtable}
% \usepackage{multirow}
\usepackage{enumerate}
\usepackage{enumitem} % change numbering
@ -117,7 +116,7 @@
\DeclareRobustCommand{\tikzfigure}[2][\textwidth]{
\begin{adjustbox}{width=#1}
\begin{tikzpicture}[font=\sffamily]
\input{figures/#2}
\input{\ROOT/figures/#2}
\end{tikzpicture}
\end{adjustbox}
}

View File

@ -12,7 +12,7 @@
\begin{itemize}
\IfLanguage{english}{
\item A single train,
\item Line with fields $-2$ to $37$,
\item Line with fields $-2$ to $37$,
\item Platform A at field $-2$ to $0$,
\item Platform B at field $14$ to $16$,
\item Platform C at field $35$ to $37$.
@ -44,7 +44,7 @@
\IfLanguage{english}{Example for a protocol:}
\IfLanguage{ngerman}{Beispiel für ein Protokoll:}
\\
\input{tables/example_protocol.tex}
\input{\ROOT/tables/example_protocol.tex}
\end{center}
\task
\IfLanguage{english}{ The train (on field $0$ towards $37$) just passes through the first station and has its shift lever on maximum speed.}
@ -65,7 +65,7 @@
\IfLanguage{english}{Unknown line with different visibility conditions:}
\IfLanguage{ngerman}{Unbekannte Strecke mit verschiedenen Sichtverhältnissen:}
\\[0.5cm]
\input{tables/visibility_conditions.tex}
\input{\ROOT/tables/visibility_conditions.tex}
\task
\begin{enumerate}[label=\alph*)]
\IfLanguage{english}{

View File

@ -20,7 +20,7 @@
\IfLanguage{ngerman}{Das Hauptsignal darf nur Fahrt zeigen, wenn im nachfolgenden Blockabschnitt (von Gleisfreimeldegrenze zu Gleisfreimeldegrenze) kein Zug ist.
Das Vorsignal steht im Bremswegabstand vor dem Hauptsignal und spiegelt den Signalbegriff vom Hauptsignal.}
\begin{center}
\input{tables/signal_aspects.tex}
\input{\ROOT/tables/signal_aspects.tex}
\end{center}
\chapter{\IfLanguage{english}{Simulation of Driving Dynamics}\IfLanguage{ngerman}{Simulation der Fahrdynamik}}\label{sec:Simulation_Driving_Dynamics}
@ -74,6 +74,6 @@
Der Schalthebel kann wieder weiterbewegt werden und die Runde ist damit beendet.
Und so weiter, bis man auf der Position auf \SI{120}{\kilo\metre\per\hour} angekommen ist und der Zug sich gleichmäßig mit drei Felder pro Runde weiter bewegt.}
\\[0.5cm]
\input{tables/example_movement.tex}
\input{\ROOT/tables/example_movement.tex}

BIN
material/protocol.pdf Normal file

Binary file not shown.

32
material/protocol.tex Normal file
View File

@ -0,0 +1,32 @@
%!TEX TS-program = pdflatexmk
% Copyright 2018 RailToolKit (Attribution 4.0 International, CC-BY 4.0)
% You are free to copy and redistribute the material in any medium or format. You are free to remix, transform, and build upon the material for any purpose, even commercially. You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits. No warranties are given.
\documentclass[
% draft,
paper=a4,
version=3.25,
pagesize=pdftex,
twoside=false,
DIV=12,
headinclude=true,
footinclude=false,
toc=listof,
]{scrartcl}
\def\ROOT{./..}
\input{\ROOT/header.tex}
\begin{document}
\selectlanguage{ngerman} % currently supported: english, ngerman
\thispagestyle{empty}
\begin{center}
\IfLanguage{english}{\Large protocol}
\IfLanguage{ngerman}{\Large Protokoll}
\\
\vfil\normalsize
\input{\ROOT/tables/protocol.tex}
\end{center}
\end{document}

100
tables/protocol.tex Normal file
View File

@ -0,0 +1,100 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../material/protocol.tex
% Copyright 2018 RailToolKit (Attribution 4.0 International, CC-BY 4.0)
% You are free to copy and redistribute the material in any medium or format. You are free to remix, transform, and build upon the material for any purpose, even commercially. You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits. No warranties are given.
\begin{tabularx}{0.99\textwidth}{c|X|X|X|X}
\toprule
\IfLanguage{english}{
Round & curent & (1. Step) & current position & (2. Step) \\
& speed & Move by & head of train & shift lever at \\
}
\IfLanguage{ngerman}{
Runde & aktuelle & (1. Schritt)& aktuelle & (2. Schritt) \\
& Geschwindigkeit & Bewegen um & Position Zugspitze& Schalthebel auf \\
}
\hline
\IfLanguage{english}{
$1$ & \SI{0}{\kilo\metre\per\hour}& $0$ fields & field $0$ & \SI{40}{\kilo\metre\per\hour} \\
}
\IfLanguage{ngerman}{
$1$ & \SI{0}{\kilo\metre\per\hour}& $0$ Felder & Feld $0$ & \SI{40}{\kilo\metre\per\hour} \\
}
\hline
$2$ & & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\hline
& & & & \\
\bottomrule
\end{tabularx}