I have a few problems whilst creating my title page.
-
How would italicize just the email, course, supervisor etc., and not the actual text itself?
-
How would I shift the
Email: <myemail>
,Course: <course name>
,Supervisor: <supervisor name>
etc. to the left? I tried using theflushleft
command but it can't seem to work. -
How would I shift the date right below my name? It does not work when I move the
\date
command below my name.
I'm trying to follow the style in this:
Currently my code is as follows:
\documentclass[11pt,a4paper]{report}
\usepackage{amsmath,amsfonts}
\begin{document}
\title{\bf TitleTitleTitleTitleTitleTitleTitle}
\author{My nameMy nameMy nameMy name\\
\\
\it {Email}: \texttt{123@myemail.com}\\
\it {Course}: Course Name\\
\it {Supervisor}: Professor Name\\
\\
Department of engineering
}
\date{\today}
\maketitle
\end{document}
Best Answer
The reason you're getting the italics with the wrong scope is that you are using
\it
incorrectly, since it is a switch and not a command that takes an argument. Independently, however, you shouldn't use such commands at all, as they are deprecated and have been replaced with better commands. See Will two-letter font style commands (\bf , \it , …) ever be resurrected in LaTeX? for some discussion.Here's a solution to your problem using the
titling
package, and defining a command to set the variable information in the title page.