0

I have gone through all the questions and none seem to work or are the same as mine.

I am using LaTeX for my math degree assignments.

My code is this

\documentclass[fleqn]{article}

\title{\Large{\textbf{Course ID - Module Name}}}
\subtitle{Module Number}
\author{Name -  {\text{ID}}}
\date{}

Anyone with any ideas. I keep getting undefined control sequence

1 Answers1

1

With the titling package, I could insert a \subtitle command for \maketitle:

\documentclass[fleqn]{article}
\usepackage[showframe]{geometry}
\usepackage{titling}

\makeatletter
\def\@subtitle{\@latex@warning@no@line{No \noexpand\subtitle given}}
\def\subtitle#1{\gdef\@subtitle{#1}}
\title{Course ID - Module Name}
\subtitle{Module Number}
\author{Name - {ID}}
\date{}

\pretitle{\begin{center}\Large\bfseries}
\posttitle{\par
       \mdseries \@subtitle
      \par\end{center}\vskip 0.5em}%\@subtitle\par
\preauthor{\begin{center}%
\large \lineskip 0.5em%
\begin{tabular}[t]{c}}
\postauthor{\end{tabular}\par\end{center}}
\predate{\begin{center}\large}
\postdate{\par\end{center}}
\makeatother

\begin{document}

\maketitle

\end{document} 

enter image description here

Bernard
  • 271,350