I'm looking to recreate this title environment below.
I think the person used
mdframed
so I choose to use that as well. I get stuck when I try implementing the course name, professor name or week number. I thought about using fancyhdr
for this but I'm not sure if it can be done or if it's the best option.
What do you guys this? Here's the code I've written so far.
\documentclass[a4paper]{article}
\usepackage{ragged2e}
\usepackage{mdframed}
\newcommand{\createtitle}{
\begin{mdframed}
[nobreak=true, % prevents page breaking
outerlinewidth=0.5pt,
innertopmargin=0.5\baselineskip,
innerbottommargin=0.75\baselineskip,
innerrightmargin=11pt,
innerleftmargin=11pt]
\begin{center}
\Huge\textsc{This is the Title}
\end{center}
\end{mdframed}}
\hfill
; as inWeek 4 \hfill UCSB 2015
.\noindent\rlap{left}\hfill center\hfill\llap{right}\par
Note that it is possible to overlap the text.