%#######################################################################################################################
% LICENSE
%
% "commoncmd.tex" (C) 2025 by Jakob Harden (Graz University of Technology) is licensed under a Creative Commons Attribution 4.0 International license.
%
% License deed: https://creativecommons.org/licenses/by/4.0/
% Author email: jakob.harden@tugraz.at, jakob.harden@student.tugraz.at, office@jakobharden.at
% Author website: https://jakobharden.at/wordpress/
% Author ORCID: https://orcid.org/0000-0002-5752-1785
%
%#######################################################################################################################
	\newenvironment{itemizenarrow}%
{%
	\begin{itemize}[leftmargin=1em]%
		\setlength{\itemsep}{-3pt}%
		\small%
	}
	{%
	\end{itemize}%
}
\newenvironment{tableinplace}%
{\noindent%
	\begin{minipage}{\textwidth}%
		\vspace{1em}%
		\centering%
	}%
	{%
		\vspace{1em}%
	\end{minipage}%
}
\newcommand{\doctitle}{%
	\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
	{Grundlagen der zerstörungsfreien Prüfverfahren für technische Anwendungen}%
	{Basics of non-destructive testing methods for technical applications}}
\newcommand{\docsubject}{%
	\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
	{Zerstörungsfreien Prüfverfahren}%
	{Non-destructive testing methods}}
\newcommand{\docsubtitlesyllabus}{%
	\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
	{Lehrplan für ein Microcredential (Entwurf)}%
	{Syllabus for a microcredential (draft)}}
\newcommand{\docsubtitledidacticconcept}{%
	\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
	{Didaktisches Konzept für ein Microcredential (Entwurf)}%
	{Didactic concept for a microcredential (draft)}}
\newcommand{\docsubtitleimplconcept}{%
	\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
	{Umsetzungskonzept für ein Microcredential (Entwurf)}%
	{Implementation concept for a microcredential (draft)}}
\newcommand{\dockeywordI}{%
	\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
	{zerstörungsfrei}{non-destructive}}
\newcommand{\dockeywordII}{%
	\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
	{Prüfverfahren}{testing methods}}
\newcommand{\dockeywordIII}{%
	\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
	{Microcredential}{Microcredential}}
\newcommand{\dockeywordsyllabus}{%
	\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
	{Lehrplan}{Syllabus}}
\newcommand{\dockeywordimplconcept}{%
	\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
	{Umsetzungskonzept}{Implementation concept}}
\newcommand{\dockeyworddidacticconcept}{%
	\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
	{Didaktisches Konzept}{Didactic concept}}
\newcommand{\docautfirstname}{Jakob}
\newcommand{\docautsurename}{Harden}
\newcommand{\docautfullname}{\docautfirstname{} \docautsurename{}}
\newcommand{\docautorcid}{https://orcid.org/0000-0002-5752-1785}
\newcommand{\docauturl}{https://jakobharden.at/wordpress/}
\newcommand{\docautemailI}{jakob.harden@tugraz.at}
\newcommand{\docautemailII}{jakob.harden@student.tugraz.at}
\newcommand{\docautemailIII}{office@jakobharden.at}
\newcommand{\docautaffil}{%
	\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
	{Technische Universität Graz (Graz, Österreich)}%
	{Graz University of Technology (Graz, Austria)}}
\newcommand{\doccorrauthtag}{%
	\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
	{E-Mail des korrespondierenden Autors}%
	{Corresponding author email}}
\newcommand{\doccorrauthemail}{jakob.harden@tugraz.at}
\newcommand{\sectionref}[1]{\ref{#1} \nameref{#1}, Seite\>\pageref{#1}}
\newcommand{\MSPLANbase}[1]{%
	\newcommand{\lblc}{\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
		{Wochen}{Weeks}}
	\draw[gray,ultra thick] (0,0) -- (#1,0)%
		node[black,right,xshift=.5em] {\lblc};
}
\newcommand{\MSPLANnode}[5]{%
	\def\ccol{#1}%
	\def\crad{#2mm}%
	\def\cx{#3}%
	\draw[draw=none,fill=\ccol] (\cx,0) circle (\crad)%
		node[right,rotate=45,xshift=.75em] {#4} node[below,yshift=-.5em] {#5};
}
\newcommand{\GANTTheader}[3]{%
	\newcommand{\lbla}{\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
		{Start}{Start}}
	\newcommand{\lblb}{\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
		{Dauer}{Duration}}
	\newcommand{\lblc}{\expandafter\ifstrequal\expandafter{\languagename}{ngerman}%
		{Wochen}{Weeks}}
	\def\cy{#1}%
	\def\xnum{0}%
	\def\xdstart{1}%
	\def\xdend{\xdstart+2}%
	\def\xbarstart{\xdend+2}%
	\def\xbarend{#3+\xdend+2}%
	\node[above right] at (\xnum,\cy) {\#};
	\node[above right] at (\xdstart,\cy) {\lbla};
	\node[above right] at (\xdend,\cy) {\lblb};
	\node[above] at (0.5*\xbarstart+0.0*\xbarend,\cy) {\lblc};
	\draw[black,thick] (0,\cy+1.5em) -- (\xbarend,\cy+1.5em);
	\draw[black] (0,\cy) -- (\xbarend,\cy);
}
\newcommand{\GANTTbar}[7]{%
	\def\cy{#2}%
	\def\xnum{0}%
	\def\xdstart{1}%
	\def\xdend{\xdstart+2}%
	\def\xbarstart{#6+\xdend+2}%
	\def\xbarend{#7+\xdend+2}%
	\node[right] at (\xnum,\cy) {#3};
	\node[right] at (\xdstart,\cy) {#4};
	\node[right] at (\xdend,\cy) {#5};
	\draw[#1,fill=#1!25] (\xbarstart,\cy-0.2) rectangle (\xbarend,\cy+0.2);
}
\newcommand{\GANTTms}[5]{%
	\def\cy{#2}%
	\def\xnum{0}%
	\def\xdstart{1}%
	\def\xdend{\xdstart+2}%
	\def\xbsymbol{#5+\xdend+2}%
	\node[right] at (\xnum,\cy) {#3};
	\node[right] at (\xdstart,\cy) {#4};
	\node[right] at (\xdend,\cy) {\textemdash};
	\node[draw=none,fill=#1,shape=diamond] at (\xbsymbol,\cy) {};
}