MA0001/Task 1/lib/titling.tex

61 lines
861 B
TeX

\usepackage{titling}
\pretitle{
\begin{flushleft}
\LARGE
}
\posttitle{
\par
\end{flushleft}
}
\preauthor{
\begin{flushleft}
\large
}
\postauthor{
\par
\end{flushleft}
}
\predate{
\begin{flushleft}
\large
}
\postdate{
\par
\end{flushleft}
}
%---------------------------------------%
\newtcolorbox{headerbox}{
% tikznode,
% tcbox width=auto limited,
% capture=hbox,
enhanced,
colback=ntnublue,
coltext=white,
arc=0pt,
boxrule=0pt,
parbox=false,
top=5mm,
bottom=5mm
}
\newcommand{\tittel}{
\begin{minipage}{0.80\textwidth}
\begin{headerbox}
\Huge\thetitle
\LARGE\theauthor
\end{headerbox}
\end{minipage}
\hfill
\begin{minipage}{0.10\textwidth}
\vspace*{2mm}
\centering
\includegraphics[scale=1.2]{lib/ntnu_alt_versjon_uten_slagord.pdf}
\end{minipage}
\vspace*{2cm}
}