MA0001/lib/titling.tex

61 lines
864 B
TeX
Raw Normal View History

2020-08-26 15:50:56 +02:00
\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
2020-08-26 17:20:59 +02:00
\includegraphics[scale=1.2]{../lib/ntnu_alt_versjon_uten_slagord.pdf}
2020-08-26 15:50:56 +02:00
\end{minipage}
\vspace*{2cm}
}