Skip to content
Snippets Groups Projects
Commit cfe41c75 authored by Mark Pascal Sanders's avatar Mark Pascal Sanders
Browse files

Harvey balls

parent 1a8d21a8
Branches
No related tags found
1 merge request!3Cleanup, merge different versions, magic
Pipeline #540242 passed
......@@ -31,9 +31,11 @@ Build:
- tlmgr install `cat texlive_packages.txt`
- ls -al
- latexmk -synctex=1 --shell-escape --interaction=nonstopmode -file-line-error -xelatex main
- latexmk -synctex=1 --shell-escape --interaction=nonstopmode -file-line-error -xelatex 02_documents/topic_description.tex
tags:
- docker
- amd64
artifacts:
paths:
- ./main.pdf
- ./topic_description.pdf
......@@ -40,6 +40,7 @@ The "label"-command is for referencing the table or graphic in your text: Table
\begin{table}[H]
\caption{Comparison of different desserts.}
\label{desserts}
\center
\begin{tblrrwth}{}
hier soll was stehen & gut & neutral & schlecht & k.A. \\
Käsekuchen & & & & \\
......@@ -48,6 +49,16 @@ The "label"-command is for referencing the table or graphic in your text: Table
\end{tblrrwth}
\end{table}
\begin{table}[H]
\caption{Here are Harvey Balls}
\label{harveyballs}
\center
\begin{tblrrwth}{cccccc}
Description & full & 3/4 & 1/2 & 1/4 & 0 & custom \\
Harvey ball & \harveyBallFull & \harveyBallThreeQuarter & \harveyBallHalf & \harveyBallQuarter & \harveyBallNone & \harveyBallCustom{225}{pink} \\
\end{tblrrwth}
\end{table}
\section{Citation}
......
% !TeX root = main.tex
\documentclass[
a4paper, % a4paper/a5paper
11pt, % 11pt for A4, 8pt for A5
en, % Language [DE|EN]
usefiramath, % use fira math for equations
sans, % Font without serif (like Arial),
% twoside,
openright
]{format/WZLTemplate}
\begin{document}
\graphicspath{{./03_figures/}}
% Themenstellung / Topic short description
\pagestyle{empty}
\addtocounter{page}{-1}
......@@ -60,3 +71,6 @@ In detail, the following subtasks have to be solved:\\
Prof. Dr.-Ing. Robert Schmitt
\end{document}
\ No newline at end of file
\def\harveyBallsSize{0.85ex}%size of the harvey balls
\def\harveyBallsAngle{120}%size of the harvey balls
\def\harveyBallsLineWidth{0.2pt}%line width of the harvey balls
\def\harveyBallsColor{RWTHBlau100}
\def\harveyBallsLineColor{RWTHBlau100}
\DeclareRobustCommand{\harveyBallNone}[1][\harveyBallsSize]{%
\begin{tikzpicture}%
\draw[draw=black,line width=\harveyBallsLineWidth] (0,0) circle (#1);%
\end{tikzpicture}\xspace%
}%
\DeclareRobustCommand{\harveyBallQuarter}[1][\harveyBallsSize]{%
\begin{tikzpicture}%
\draw[draw=RWTHBordeaux100,line width=\harveyBallsLineWidth](0,0) circle (#1);%
\fill[fill=RWTHBordeaux100] (0,0) -- (#1,0mm) arc (0:90:#1) -- cycle;%
\end{tikzpicture}\xspace%
}%
\DeclareRobustCommand{\harveyBallHalf}[1][\harveyBallsSize]{%
\begin{tikzpicture}%
\draw[draw=RWTHOrange100,line width=\harveyBallsLineWidth](0,0) circle (#1);%
\fill [fill=RWTHOrange100] (0,0) -- (0mm,#1) arc (90:-90:#1) -- cycle;%
\end{tikzpicture}\xspace%
}%
\DeclareRobustCommand{\harveyBallThreeQuarter}[1][\harveyBallsSize]{%
\begin{tikzpicture}%
\draw[draw=RWTHMaigruen100,line width=\harveyBallsLineWidth](0,0) circle (#1);%
\fill [fill=RWTHMaigruen100] (0,0) -- (0mm,#1) arc (90:-180:#1) -- cycle;%
\end{tikzpicture}\xspace%
}%
\DeclareRobustCommand{\harveyBallFull}[1][\harveyBallsSize]{%
\begin{tikzpicture}%
\filldraw[draw=RWTHGruen100,fill=RWTHGruen100,line width=\harveyBallsLineWidth] (0,0) circle (#1);%
\end{tikzpicture}\xspace%
}%
\DeclareRobustCommand{\harveyBallCustom}[3][\harveyBallsSize]{%
\begin{tikzpicture}%
\draw[draw=#3,line width=\harveyBallsLineWidth](0,0) circle (#1);%
\fill [fill=#3] (0,0) -- (0mm,#1) arc (90:-#2:#1) -- cycle;%
\end{tikzpicture}\xspace%
}%
\DeclareRobustCommand{\harveyBallCustomWhite}[3][\harveyBallsSize]{%
\begin{tikzpicture}%
\filldraw[draw=White,fill=White,line width=\harveyBallsLineWidth*2](0,0) circle (#1);%
\draw[draw=#3,line width=\harveyBallsLineWidth](0,0) circle (#1);%
\fill [fill=#3] (0,0) -- (0mm,#1) arc (90:-#2:#1) -- cycle;%
\end{tikzpicture}\xspace%
}%
......@@ -57,7 +57,7 @@
\\[\parskip]
\textbf{\color{black75}2\textsuperscript{nd} Examiner\color{black50}\ /\ 1. Prüfer}
\textbf{\color{black75}2\textsuperscript{nd} Examiner\color{black50}\ /\ 2. Prüfer}
\>\secondexaminer
\end{tabbing}
......
......@@ -40,6 +40,7 @@
%% Define own commands
\include{format/functions}
\include{format/harveyballs}
%% Set up glossary
% \input{glossary}
......@@ -65,10 +66,6 @@
% Titlepage
\include{format/titlepage}
% Themenstellung
%\includepdf[pages=1]{02_documents/deckblattundformularlogoverwendung.pdf}
\include{02_documents/Themenstellung}
% -- FRONTMATTER --
\include{frontmatter}
......
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment