I'm creating a simple template to be used by my students in their assignments. It consists of "article" document class but with an aditional content on top of first page. The content is declared in the \newcommand
below:
\documentclass{article}
\usepackage{graphicx}
\usepackage{wrapfig}
\newcommand\makeheader{
\begin{wrapfigure}{l}{4\baselineskip}
\includegraphics[height=4\baselineskip]{figures/logo.jpg}
\end{wrapfigure}
University name \\
Institute name \\
Graduation course \\
Course name}
\title{My assignment}
\author{An student }
\date{April 2020}
\begin{document}
\makeheader
\maketitle
Here goes my doc...
\end{document}
Three undesired things happens:
The custom
\makeheader
forces\maketitle
move to a second page, that is undesired.The first sentence (University name) in my custom "header" wrongly skips horizontaly to right. That is also undesired.
The title in
\maketitle
also skips horizontaly to right. Very undesired.
How can I fix these 3 undesired behaviors?
Best regards.