edugame-railway-operation/material/turnout_base.tex

58 lines
2.7 KiB
TeX
Raw Permalink Normal View History

%!TEX TS-program = pdflatexmk
% Copyright 2019 Martin Scheidt (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{beamer}
\usepackage[
size=a4,
]{beamerposter}
\beamertemplatenavigationsymbolsempty
\def\ROOT{./..}
\input{\ROOT/src/material_header.tex}
\input{\ROOT/src/colors.tex}
\newlength{\spacewidth}\setlength{\spacewidth}{4.2cm}
\newlength{\spacelength}\setlength{\spacelength}{8cm}
\tikzset{
pics/flank_protection_symbol/.style = {
code={
\draw[dashed,fill=white] (-1,-1) rectangle (1,1);
\draw[<-> ,>=latex] (-0.65,-0.1) -- (0.65,-0.1);
\draw[->|,>=latex,red] ( 0 , 0.4) -- (0 ,0 );
}
},
}
\begin{document}
\selectlanguage{ngerman} % currently supported: english, ngerman
\tikzset{every path/.style={ultra thick}}
\begin{frame}
\begin{tikzpicture}[remember picture,overlay,font=\sffamily]
\path (current page.north west) rectangle (current page.south west); % rectangle for background to unify orientation
\begin{scope}[shift={(1.55,5.45)}]
% \begin{scope}[shift={(1.2,4.65)}]
\draw[fill=base2] (0,0) -- (24.5,0) -- (24.5,-5) -- (2.5,-14) -- (0,-14) -- cycle;
\draw[fill=white] (23.0,-2.5) circle (0.2);
\pic[rotate=270] at ( 2 , -2.5) {flank_protection_symbol};
\pic[rotate=292] at ( 3.7,-10.5) {flank_protection_symbol};
\draw (0,-0.4) -- ++ (24.5,0) -- ++(0,-\spacewidth) -- (23.8,-4.6) -- (2.99,-13.1) -- (0,-13.1) -- (0,-9.1)-- (1.4,-9.1) -- (12.6,-4.6) -- (0,-4.6) -- cycle;
\end{scope}
\end{tikzpicture}
\end{frame}
\begin{frame}
\begin{tikzpicture}[remember picture,overlay,font=\sffamily]
\path (current page.north west) rectangle (current page.south west); % rectangle for background to unify orientation
\begin{scope}[shift={(1.2,4.65)}]
% \begin{scope}[shift={(0.9,18)}]
\draw[fill=base2] (0,0) -- (0,-14) -- (24.5,-14) -- (24.5,-9) -- (2.5,0) -- cycle;
\draw[fill=white] (23.0,-11.5) circle (0.2);
\pic[rotate=248] at ( 3.5, -3.5) {flank_protection_symbol};
\pic[rotate=270] at ( 2 ,-11.5) {flank_protection_symbol};
\draw (0,-13.6) -- (24.5,-13.6) -- (24.5,-9.4) -- (23.8,-9.4) -- (2.9,-0.9) -- (0,-0.9) -- (0,-4.9) -- (1.4,-4.9) -- (12.6,-9.4) -- (0,-9.4) -- cycle;
\end{scope}
\end{tikzpicture}
\end{frame}
\end{document}